Quote:
Originally Posted by Areax
PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid, playerid, reason);
if(killerid != INVALID_PLAYER_ID)
{
SetPlayerScore(killerid, GetPlayerScore(killerid)+1);
GivePlayerMoney(killerid, 100);
}
PLAYER_DEATHS[playerid]++;
PLAYER_MONEY[playerid] -= 100;
PLAYER_KILLS[killerid]++;
PLAYER_SCORE[killerid]++;
PLAYER_MONEY[killerid]++= 100;
return 1;
}
|
That's the implementation of the variables, not their declaration.
He means, show us where you define the variables (new PLAYER_DEATHS...)