View Single Post
  #1  
Old 11-17-2002, 10:15 PM
Com013 Com013 is offline
Registered User
Join Date: Aug 2002
Location: GMT+1
Posts: 381
Com013 is on a distinguished road
deletestring (serverside)

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.
__________________
Com013
Former Admin of the LAT on Graal The Adventure

e-mail: [email protected]
Reply With Quote