Quote:
commands.rtf
deletestring list,index; deletes string list entry at position 'index'
|
It is not working correctly. I said it should delete index 1, but it removed index 0.
Now I have to use this:
NPC Code:
// deletestring clientr.hats,hatnum;
setstring temp,;
for (i=0; i<sarraylen(clientr.hats); i++) {
if (i != hatnum) addstring temp,#I(clientr.hats,i);
}
setstring clientr.hats,#s(temp);
setstring temp,;
I don't know whether it is working clientside/offline.