Is 'player[>0<32]' appose from playerid possible - 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: Is 'player[>0<32]' appose from playerid possible (
/showthread.php?tid=271318)
Is 'player[>0<32]' appose from playerid possible -
MWhite_005 - 23.07.2011
lol i know 'player[>0<32]' is not a script but the idea could be,is the idea possible?See im getting an id 0 problem and im still trying to fix it lol
Re: Is 'player[>0<32]' appose from playerid possible -
iPLEOMAX - 23.07.2011
Could you explain us a bit more please?
Re: Is 'player[>0<32]' appose from playerid possible -
MWhite_005 - 23.07.2011
ok what im asking is: is it possible to get a player function and automatically checks from id 0 to id 32,
AW: Is 'player[>0<32]' appose from playerid possible -
Nero_3D - 23.07.2011
This code below will asign at the 0 to the variable playerid
If the variable playerid is smaller or 32 the CODE will be executed
After each loop playerid gets pre incremented by one
pawn Код:
for(new playerid = 0; playerid <= 32; ++playerid) {
//CODE
}
Now go back to the sa-mp wiki and read the tutorials again