![]() |
showimg error?
NPC Code: Does anyone know why this wont work? Both of there function are called when the npc gets created. The InitializeImageArrays function is called first. Then the ShowImages function. I I set the imageCount to 1 then it doesnt cause an error, but then that defeats the whole purpose of what I am trying to do. If it is an error in my script I just can't see what it is. What I believe is it is an error with the showimg command placed in a 'for loop'. I am just not sure so if anyone who knows what the problem is would post an answer I would greatly appreciate it. |
array elements aren't called using arrayname[elementnumber]
#I(arrayname,elementnumber) (wrong language :D) |
Quote:
Try a timeout loop. and intalize the arrays when created & playerenters thats all I can come up with at a glance. (you could also try using indicies of 200 or greater instead of 1 and 2, I duno if that would help, but it makes it clientside instead of showing it for all players) |
Quote:
Quote:
I didn't know indicies of 1 and 2 were clientside >.< . |
Note to self: Don't post in the NPC Scripting forum 10 minutes after I wake up, my brain isn't awake yet. :D
(Wow, do I feel stupid.) |
Quote:
Quote:
|
Quote:
|
No.... I sometimes don't take account for timezones.
|
Boil the problem down to the necessities if you want somebody to look at it.
|
I did. Those are the two functions I came down to. Then I removed all other set of arrays in the InitializeImageArrays besides two because it will work with one set, but starts to have problems with more than one.
|
Quote:
Also: 'It doesn't work' is not an error. Tell us what it does, what it doesn't do, what it's supposed to do. |
| All times are GMT +2. The time now is 04:31 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.