28.12.2014, 14:45
@Facerafter
I understood what the ++ means now.Thanks!
So by MAX_PLAYER means it just connects each player to any playerid?Right?
What happens if I don't put 'new PlayerDeaths[MAX_PLAYERS]' before Public OnPlayerDeath?Like this:
From these codes what if this line isn't there
I understood what the ++ means now.Thanks!
So by MAX_PLAYER means it just connects each player to any playerid?Right?
What happens if I don't put 'new PlayerDeaths[MAX_PLAYERS]' before Public OnPlayerDeath?Like this:
Код:
new PlayerDeaths[MAX_PLAYERS]; new PlayerKills[MAX_PLAYERS] public OnPlayerDeath(playerid, killerid, reason) { PlayerDeaths[playerid] ++; PlayerKills[killerid] ++; // ++ means add 1 to the current value. return 1; }
Код:
new PlayerDeaths[MAX_PLAYERS]; new PlayerKills[MAX_PLAYERS]