Quote:
Originally posted by Kaimetsu
We'll assume that the name to be removed is stored in the string "namestring".
startofname=indexof(#s(namestring),#s(server.jail) );
setstring server.jail,#e(0,startofname,server.jail)#e(starto fname+len(namestring),-1,server.jail);
That should do it, though it may grab one character too few or many. Test it and see what happens.
|
So this is the hole script?
setstring server.jail,#e(0,startofname,server.jail)#e(starto fname+len(namestring),-1,server.jail);