![]() |
Looping problems
1 Attachment(s)
Hi, I'm relatively new to GS2 and have been trying to get this player-sorting script to work...I'm getting closer, and I -think- I have an idea what the problem is, but I can't quite figure it out.
Basically, what is supposed to happen is the first 6 players are warped on a top level, 8 tiles apart from eachother, and the next 4 are warped below them...However, it only seems to sort the first 10. (I haven't had a chance to test it with 20+, so I don't know if it's only sorting the first 10, or in sets of 10) I included a picture in this post..the red squares are where people are being warped...just not everyone. PHP Code:
|
Could always do something like this:
PHP Code:
Formatting got messed up when I pasted it in, but I think I fixed it. |
Quote:
|
Scratch that while loop, you're over complicating things. Try something like this instead:
PHP Code:
|
Oh wow, I tend to overcomplicate things...I don't know why I didn't even think to do that z.z
Thanks a lot, I'll test it out now. |
Quote:
For your problem, maybe something like this: PHP Code:
|
Yea, I noticed that too, but I just checked for the "Convict" tag, and added a separate counter...works now, finally! Thanks for all your help.
|
All times are GMT +2. The time now is 08:42 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.