Error in OnPlayerDeath
#2

You must check if(killerid != INVALID_PLAYER_ID) to use killerid in MAX_PLAYERS arrays
Код:
	//=====[EVENT-MESSAGE]
    if(killerid != INVALID_PLAYER_ID) {
        if(AdminEventTickP[killerid] != 0)
        {
        new sstring[124];
   	    format(sstring, sizeof(sstring), "[ADMIN-EVENT]: "COL_WHITE"%s je ubio igraca: %s.", GetName(killerid), GetName(playerid));
   	    SendMessageToAEP(COLOR_BLUE, sstring);
   	    //
        new string2[124];
        format(string2, sizeof(string2), "[SERVER]: "COL_WHITE"Ubili ste igraca: %s.", GetName(playerid));
        SendClientMessage(killerid, COLOR_ORANGE, string2);
	}
    }
Reply


Messages In This Thread
Error in OnPlayerDeath - by Cr4nh - 15.09.2016, 11:54
Re: Error in OnPlayerDeath - by Shinja - 15.09.2016, 12:00
Re: Error in OnPlayerDeath - by Cr4nh - 15.09.2016, 12:07

Forum Jump:


Users browsing this thread: 1 Guest(s)