Bug with score
#7

Use this now.

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new msg[128],reasonMsg[32], pname[MAX_PLAYER_NAME], string[128], deathreason[20];
    SendDeathMessage(killerid,playerid,reason);
    GameTextForPlayer(playerid,"~r~~h~OWNED",10000,1);
    GetPlayerName(playerid, pname, sizeof(pname));
    GetWeaponName(reason, deathreason, 20);
    new pstring[128]; //player message
    new killer[MAX_PLAYER_NAME];
    GetPlayerName(killerid, killer, sizeof(killer));
    if(killerid != INVALID_PLAYER_ID) return SetPlayerScore(killerid, GetPlayerScore(killerid) + 1); //you can change the 1 to any number that will be added to the score!
    if(InDM[playerid]==1) return InDM[playerid]=0;
    SetPlayerWorldBounds(playerid,20000.0000,-20000.0000,20000.0000,-20000.0000);
    return 1;
}

If this doesnt work for you then give us the line where the warning comes.
Reply


Messages In This Thread
Bug with score - by Spike Cena - 16.05.2012, 16:59
AW: Bug with score - by EthanR - 16.05.2012, 17:01
Re: Bug with score - by Kirollos - 16.05.2012, 17:01
Re: Bug with score - by Spike Cena - 16.05.2012, 17:04
Re: Bug with score - by Kirollos - 16.05.2012, 17:06
Re: Bug with score - by Spike Cena - 16.05.2012, 17:09
Re: Bug with score - by Ballu Miaa - 16.05.2012, 17:11
Re: Bug with score - by MichaelProPlayer - 16.05.2012, 17:11
Re: Bug with score - by Kirollos - 16.05.2012, 17:12
Re: Bug with score - by Spike Cena - 16.05.2012, 17:17
Re: Bug with score - by Kirollos - 16.05.2012, 17:18
Re: Bug with score - by Spike Cena - 16.05.2012, 17:20
AW: Bug with score - by EthanR - 16.05.2012, 17:23
Re: Bug with score - by Kirollos - 16.05.2012, 17:24
Re: Bug with score - by Spike Cena - 16.05.2012, 17:35
Re: Bug with score - by Spike Cena - 16.05.2012, 18:27

Forum Jump:


Users browsing this thread: 1 Guest(s)