Kills ++;
#8

Quote:
Originally Posted by ToPhrESH
Quote:
Originally Posted by iLinx
Код:
TalibanKills++;
Rebelkills++;
Theres no space in between the variable and the operator if you want to use the postfix increment operator.
still errors
By the looks of things your editing my TDM? Anyway..

(By the textdraw thing & the kills ++)

Anyway try this:

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(IsPlayerConnected(killerid))
{
  if(GetPlayerTeam(killerid) == 1)
{
RebelKills ++;
}
else if (GetPlayerTeam(killerid) == 2)
{
  TalibanKills ++;
}
if (GetPlayerTeam(killerid) == GetPlayerTeam(playerid))
{
  SendClientMessage(playerid, 0x008000FF, "Do not spawnkill! You have been punished");
  GivePlayerMoney(killerid,-1000);
  SetPlayerHealth(killerid, 0.0);
  SetPlayerScore(killerid, GetPlayerScore(playerid) -1);
}
else
{
  GivePlayerMoney(killerid, 1500);
  SendClientMessage(killerid, 0x008000FF, "You killed an enemy! You earn +2 score and some ammo!");
  SetPlayerScore(killerid, GetPlayerScore(playerid) +2);
 }
}
return 1;
}
Reply


Messages In This Thread
Kills ++; - by ToPhrESH - 21.06.2010, 12:20
Re: Kills ++; - by Virtual1ty - 21.06.2010, 12:23
Re: Kills ++; - by ToPhrESH - 21.06.2010, 12:27
Re: Kills ++; - by Virtual1ty - 21.06.2010, 12:30
Re: Kills ++; - by ToPhrESH - 21.06.2010, 12:31
Re: Kills ++; - by iLinx - 21.06.2010, 12:33
Re: Kills ++; - by ToPhrESH - 21.06.2010, 12:40
Re: Kills ++; - by NewTorran - 21.06.2010, 12:54
Re: Kills ++; - by ToPhrESH - 21.06.2010, 13:01
Re: Kills ++; - by NewTorran - 21.06.2010, 13:21

Forum Jump:


Users browsing this thread: 1 Guest(s)