View Single Post
  #8  
Old 07-12-2002, 01:36 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by konidias
NPC Code:
 setarray this.items,sarraylen(client.invitems);
for (a=0;a<arraylen(this.items));a++ {
this.items[a] = a;
}



Okay, well isn't "set array this.items,..." setting the array length of this.items? So now that I have it comparing a to the arraylength of this.items, why is it still not working? The array length would be five, since I'm setting the arraylength of this.items to the client strings array length.

It's still not working, can someone tell me what I need to do
instead of what I'm not doing right?
NPC Code:

setarray this.items,4;
for (a=0;a<arraylen(this.items);a++) {
this.items[a] = a;
}


that worked for me, maybe yours didnt because you had a simple typo or client.invitems wasnt set yet, you had
a<arraylen(this.items));a++
should be
a<arraylen(this.items);a++)
Reply With Quote