new PlayerDeaths[MAX_PLAYERS] rep ++
#4

@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:
Код:
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;
}
From these codes what if this line isn't there
Код:
new PlayerDeaths[MAX_PLAYERS];
new PlayerKills[MAX_PLAYERS]
Reply


Messages In This Thread
new PlayerDeaths[MAX_PLAYERS] rep ++ - by NviDa - 28.12.2014, 14:32
Re: new PlayerDeaths[MAX_PLAYERS] rep ++ - by UltraScripter - 28.12.2014, 14:36
Re: new PlayerDeaths[MAX_PLAYERS] rep ++ - by Facerafter - 28.12.2014, 14:37
Re: new PlayerDeaths[MAX_PLAYERS] rep ++ - by NviDa - 28.12.2014, 14:45
Re: new PlayerDeaths[MAX_PLAYERS] rep ++ - by Facerafter - 28.12.2014, 14:50
Re: new PlayerDeaths[MAX_PLAYERS] rep ++ - by NviDa - 28.12.2014, 14:56
Re: new PlayerDeaths[MAX_PLAYERS] rep ++ - by UltraScripter - 28.12.2014, 15:00
Re: new PlayerDeaths[MAX_PLAYERS] rep ++ - by Facerafter - 28.12.2014, 15:02

Forum Jump:


Users browsing this thread: 2 Guest(s)