11.06.2012, 02:47
Hello guys i have a little problem here every time i try to implement this function into OnPlayerDeath i get
That is for the line:
Any idea how to fix it ? I took it from the wiki.
Код:
invalid subscript (not an array or too many subscripts): "pScore" expression has no effect expected token: ";", but found "]" invalid expression, assumed zero too many error messages on one line
Код:
pScore[killerid]++;
pawn Код:
SendDeathMessage(killerid, playerid, reason);
if(killerid != INVALID_PLAYER_ID)
{
pScore[killerid]++;
SetPlayerScore(killerid, pScore[killerid]);
pCash[killerid] += 100;
GivePlayerMoney(killerid, 100);
}
pDeaths[playerid]++;
pCash[playerid] -= 100;
pScore[playerid]--;
SetPlayerScore(playerid, pScore[playerid]);
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, pCash[playerid]);