A Problem in OnPlayerDeath
#2

Doesn't look like you have strings defined:


pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new string [128];
    new pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pName, sizeof(pName));

    SendClientMessage(killerid,0xFF9900AA,"You killed %s, Well Done");
    SendClientMessage(killerid,0xFF9900AA,"You Got A Wanted lvl And Some Money From The Victim!");
    SendClientMessage(playerid,0x4B00B0AA,"You been killed by %s");
    SendClientMessage(playerid,0x4B00B0AA,"You Been Healed By The Hospital, You Medicals Fees Are 4000.");
    SendClientMessage(playerid,0x4B00B0AA,"You Lost Some Money When %s Was Shooting You");
    SetPlayerWantedLevel(killerid,4);
    SetPlayerColor(killerid,0xf73219ff);
    GivePlayerMoney(playerid,-22653);
    GivePlayerMoney(killerid,18232);
    SendDeathMessage(killerid, playerid, reason);
    return 1;
}
I don't why this would only happen in a car though.
Reply


Messages In This Thread
A Problem in OnPlayerDeath - by [Bm]rap45 - 10.11.2009, 19:59
Re: A Problem in OnPlayerDeath - by BP13 - 10.11.2009, 20:02
Re: A Problem in OnPlayerDeath - by [Bm]rap45 - 10.11.2009, 20:28
Re: A Problem in OnPlayerDeath - by BP13 - 10.11.2009, 23:10
Re: A Problem in OnPlayerDeath - by Daren_Jacobson - 11.11.2009, 01:37
Re: A Problem in OnPlayerDeath - by [Bm]rap45 - 12.11.2009, 02:01
Re: A Problem in OnPlayerDeath - by Think - 12.11.2009, 07:44
Re: A Problem in OnPlayerDeath - by [Bm]rap45 - 13.11.2009, 02:11

Forum Jump:


Users browsing this thread: 1 Guest(s)