17.11.2018, 03:57
Error:
public OnPlayerDeath
PHP Code:
[debug] Run time error 4: "Array index out of bounds"
[00:53:59] [debug] AMX backtrace:
[00:53:59] [debug] #0 00040b8c in public OnPlayerDeath (0, 65535, 255) from TDM.amx
[00:53:59] [death] Spawe died 255
PHP Code:
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid, playerid, reason);
PlayerInfo[killerid][cDinero] += 400;
PlayerInfo[killerid][cKills] += 1;
{
SetPlayerScore(killerid,(GetPlayerScore(killerid))+1);
GivePlayerMoney(killerid, 400);
}
new string[50];
format(string, sizeof(string), "~g~+$400");
GameTextForPlayer(killerid, string, 3000, 1);
return 1;
}


