Player Score
#10

Quote:
Originally Posted by Criss_Angel
Quote:
Originally Posted by [GD59
Doberman™ [Styrna] ]
Ehhh, i tested, it doesn't work, can you just fix that code?:

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
  new playercash;
	if(killerid == INVALID_PLAYER_ID) {
    SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
    GivePlayerMoney(playerid, -500);
	} else {
	  	SendDeathMessage(killerid,playerid,reason);
			SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
			playercash = GetPlayerMoney(playerid);
			if (playercash > 0) {
				GivePlayerMoney(killerid, 500);
			}
			else
			{
			}
  	}
 	return 1;
}
try changing the } else {
to
pawn Код:
}
else
{
I don't think that would change something... :S
Reply


Messages In This Thread
Player Score - by eyndza - 24.07.2009, 13:38
Re: Player Score - by Nee - 24.07.2009, 14:11
Re: Player Score - by eyndza - 24.07.2009, 14:12
Re: Player Score - by servermania - 24.07.2009, 14:13
Re: Player Score - by eyndza - 24.07.2009, 14:15
Re: Player Score - by SiJ - 24.07.2009, 14:16
Re: Player Score - by eyndza - 24.07.2009, 14:28
Re: Player Score - by SiJ - 24.07.2009, 14:31
Re: Player Score - by Criss_Angel - 24.07.2009, 14:33
Re: Player Score - by SiJ - 24.07.2009, 14:34

Forum Jump:


Users browsing this thread: 4 Guest(s)