Can someone explain? - 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: Can someone explain? (
/showthread.php?tid=73442)
Can someone explain? -
StrickenKid - 15.04.2009
for some reason, my server works fine when im the only one in (id 0) but when multiple people come in, the text draws stop working and the timers go all crazy and everything gets bugged.... why is this happening and how do i fix it?
edit: heres my script:
http://pawn.pastebin.com/m6ce2aa87
Re: Can someone explain? -
yezizhu - 15.04.2009
ur code,plz^^
Single-test really different from multi-test.
Re: Can someone explain? -
StrickenKid - 15.04.2009
ok code in edit, thanks for helping.
Re: Can someone explain? -
OmeRinG - 15.04.2009
Quote:
Originally Posted by Pastebin
Unknown post id, it may have expired or been deleted
|
Re: Can someone explain? -
MenaceX^ - 15.04.2009
In past when I had those problems with id 0, it was because a loop.
It's like you have players loop, loop that loops itself 200 times (MAX_PLAYERS = 200)
If you do like
pawn Код:
for(new i=0;i<MAX_PLAYERS;i++)
And in side the loop you do something with playerid, instead of i
Probably you were ID 0 and playerid = the player who writes the command.
So it's been looping on yourself. (id 0)
Re: Can someone explain? -
yezizhu - 15.04.2009
Sry for late..
Link error,cannot open ur paste...
Re: Can someone explain? -
LarzI - 15.04.2009
Quote:
Originally Posted by MenaceX^
In past when I had those problems with id 0, it was because a loop.
It's like you have players loop, loop that loops itself 200 times (MAX_PLAYERS = 200)
If you do like
pawn Код:
for(new i=0;i<MAX_PLAYERS;i++)
And in side the loop you do something with playerid, instead of i
Probably you were ID 0 and playerid = the player who writes the command.
So it's been looping on yourself. (id 0)
|
Uhm, by default yes...
But MAX_PLAYERS = whatever you set it as in a_samp.inc