![]() |
array[i] in array
Okay, I was helping someone with a script and came across a problem.
I load all the levels from the gmap file into an array. Good, done. Then I have a set of levels the player has been in. Good, that works(sort of...). Now it's time to compare the levels the player has been in, with the levels of the gmap. Not good, it won't work and I have no idea why. This is part of the script, and variables that are loaded. Quote:
Quote:
PHP Code:
|
maybe try...
PHP Code:
|
Also, after some help we've deduced that reconnecting fixes it... BUT, I have to reconnect everytime client.mapviewed is updated to take effect, that doesn't make any sense.
And there's no reason that should work, but I'll try it. EDIT: no, that doesn't change a thing. |
Well, after a LONG time debugging, the problem was simple. Thanks to holysheepy for finding it.
It's not shown in the post, but I was using player.level. bzz, wrong. Should have used player.level.name... sucks. |
| All times are GMT +2. The time now is 09:59 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.