Max Players - 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: Max Players (
/showthread.php?tid=394916)
Max Players -
HardBoy - 24.11.2012
hey guys....
when admin make moneybag it be
moneybag[playerid]=1;
when player find it it must make the admin moneybag=0; but how
?
the problem that playerid when player find it = the player who found it and i want to make for all players that have moneybag[playerid]=1; to be moneybag ===== 00000
when i make
moneybag[MAX_PLAYERS]=0; it give me error
how to make to set all players moneybag to 0?
Re: Max Players -
Mmartin - 24.11.2012
For cycle.
for(new i=0;i<MAX_PLAYERS;i++) moneybag[i]=false;
Re: Max Players -
HardBoy - 24.11.2012
Quote:
Originally Posted by Mmartin
For cycle.
for(new i=0;i<MAX_PLAYERS;i++) moneybag[i]=false;
|
thxx boss, how did that didnt come to my mind lol, <3