Player Array.. Set ALL! - 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: Player Array.. Set ALL! (
/showthread.php?tid=447304)
Player Array.. Set ALL! -
introzen - 29.06.2013
Hi.
Got a PlayerInfo enum looking like this:
pawn Код:
PlayerInfo[MAX_PLAYERS][pInfo]
How do I set all information at once in it? I tried this:
pawn Код:
PlayerInfo[playerid][pInfo] = 0;
But it doesn't work.
Re: Player Array.. Set ALL! -
Scenario - 29.06.2013
pawn Код:
for(new i = 0; NAME_OF_ENUM:i < NAME_OF_ENUM; i++) PlayerInfo[playerid][NAME_OF_ENUM:i] = 0;
NAME_OF_ENUM is what is just directly after "enum".