[Ajuda] erro no onplayerdeath
#1

Da crash no a partir do 3, algumas dicas?

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    //new Arma[50];
    print("1");
    if(IsPlayerInAnyVehicle(playerid)) DestroyVehicle(GetPlayerVehicleID(playerid));
    print("2");
    UFO[playerid] = false;
    print("3");
    //GetWeaponName(reason, Arma, sizeof(Arma));
    if(killerid == INVALID_PLAYER_ID)
    {
        print("4");
        new string[500];
        print("5");
        format(string,sizeof(string),"[Kill:]{ffffff} O jogador {2CF52C}%s{ffffff} morreu.",GetPlayerNameEx(playerid));
        print("6");
        SendClientMessageToAll(COLOR_GREEN,string);
        print("7");
        PlayerInfo[playerid][Deaths]++;
        print("9");
    }
    return 1;
}
Reply


Messages In This Thread
erro no onplayerdeath - by iTzDemon - 22.10.2013, 18:16
Re: erro no onplayerdeath - by BielCOP - 22.10.2013, 18:20
Re: erro no onplayerdeath - by PT - 22.10.2013, 18:21
Re: erro no onplayerdeath - by iTzDemon - 22.10.2013, 18:23
Re: erro no onplayerdeath - by BielCOP - 22.10.2013, 18:26

Forum Jump:


Users browsing this thread: 1 Guest(s)