[HELP] Up to ID a bug - 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)
+--- Thread: [HELP] Up to ID a bug (
/showthread.php?tid=289171)
[HELP] Up to ID a bug -
cotonete - 10.10.2011
Hello, I begin to forgive the English, because I'm using the ****** translator.
My problem is: I have mapicons, timers, TextDraw rank in my mode, my only problem is that an ID buga everything up .. works only for 0 out, what could it be?
Re: [HELP] Up to ID a bug -
Dragony92 - 10.10.2011
You need to use foreach to show mapicons to everyone, same for timers, for TextDraws use need to use TextDrawShowForAll
Re: [HELP] Up to ID a bug -
aRoach - 10.10.2011
foreach or:
pawn Код:
for( new i = 0; i <= MAX_PLAYERS; i ++ )
Re: [HELP] Up to ID a bug -
Dragony92 - 10.10.2011
But it's better to use foreach because foreach is calling only for connected user ids...
Re: [HELP] Up to ID a bug -
Vince - 10.10.2011
Quote:
Originally Posted by aRoach
foreach or:
pawn Код:
for( new i = 0; i <= MAX_PLAYERS; i ++ )
|
That is wrong, it should be
pawn Код:
for( new i = 0; i < MAX_PLAYERS; i ++ )
Quote:
Originally Posted by Dragony92
But it's better to use foreach because foreach is calling only for connected user ids...
|
We're talking about mere nanoseconds here.