SA-MP Forums Archive
ID 0 problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: ID 0 problem (/showthread.php?tid=99442)



ID 0 problem - [DFE]Roy - 27.09.2009

On my gamemode some scripts work only for id 0 but i have already defined
Код:
for (new i=0; i<MAX_PLAYERS; i++) { }
I have no idea what to do... Hope someony can help.

Greets


Re: ID 0 problem - dice7 - 27.09.2009

scripts using timers ?


Re: ID 0 problem - [DFE]Roy - 27.09.2009

Yes, the public function use 1 timer.


Re: ID 0 problem - Limex - 27.09.2009

Do not return inside that, like "return 1;" or "return 0;" or it will just end the whole loop.

If for some reason you want to skip to the next part, put "continue;", not return.


Re: ID 0 problem - Hiitch - 27.09.2009

for (new i=0; i<MAX_PLAYERS; i++) { }

did you try

for(new i; i<MAX_PLAYERS; i++) {

?