Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
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
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:07 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.