Errors in crashdetect "Array index out of bounds" HELP
#3

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
if(
killerid == INVALID_PLAYER_ID) return 1;
SendDeathMessage(killerid,playerid,reason);
//-----------------------------------------
new string[256];
KillingSpree[killerid] ++;
KillingSpree[playerid] = 0;
kills[playerid]=0;//nuevo
SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
format(string,sizeof(string), "~n~~w~HAS SIDO ASESINADO POR~n~~r~%s"Nombre(killerid));
GameTextForPlayer(playerid,string,2000,3);
format(string,sizeof(string),">> Recibido +1 score y +$200 por matar a '%s', Asesinatos seguidos: %d",Nombre(playerid), KillingSpree[killerid]);
SendClientMessage(killerid,0x00FF00FF,string);
GivePlayerCash(killerid,200);
//===================================================
if(KillingSpree[killerid] == 3
asi?
Reply


Messages In This Thread
Errors in crashdetect "Array index out of bounds" HELP - by tomasfernandez - 17.03.2017, 22:52
Re: Errors in crashdetect "Array index out of bounds" HELP - by Toroi - 17.03.2017, 23:13
Respuesta: Errors in crashdetect "Array index out of bounds" HELP - by tomasfernandez - 17.03.2017, 23:29
Re: Errors in crashdetect "Array index out of bounds" HELP - by Jelly23 - 17.03.2017, 23:30
Re: Errors in crashdetect "Array index out of bounds" HELP - by Toroi - 17.03.2017, 23:34

Forum Jump:


Users browsing this thread: 1 Guest(s)