Server Restarts On Death? [Rep+]
#1

My server restarts for some reason when someone dies. The code compiles fine, but ingame, when someone dies, the server restarts.
http://pastebin.com/BK16v3jP

Please reply fast.
Reply
#2

In server.log is writing something when is crashing?

Try changin OnPlayerDeath with this.
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));

    SendDeathMessage(playerid, killerid, reason);
    SendClientMessage(playerid, 0xFF0000FF, "You have died!");
    new string[32];
    format(string, sizeof(string), "%s has Died!",name);
    SendClientMessageToAll(0xFF0000FF, string);
    return 1;
}
Reply
#3

you forget to put string onplayerdeath
this cause the crash
SendClientMessageToAll(0xFF0000FF, "%s has Died!",name);
Reply
#4

Admin please lock + think TzAkS.

Rep+
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)