Counting Score for two players
#7

Quote:
Originally Posted by Don Correlli
Stop bumping.

pawn Код:
if(GetPlayerScore(_PLAYER_ONE_ID_) > GetPlayerScore(_PLAYER_TWO_ID_))
{
  // player with ID _ONE_ID_ has a bigger score than player with ID _TWO_ID_.
}
else if(GetPlayerScore(_PLAYER_ONE_ID_) < GetPlayerScore(_PLAYER_TWO_ID_))
{
  // player with ID _TWO_ID_ has a bigger score than player with ID _ONE_ID_.
}
else
{
  // the score is the same.
}
no.. i not needed your code.. i needed to example
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(In[killerid] == 1 && In[playerid] == 1)
	{
 		if(2 != Score[killerid])
        {
  	Score[killerid]++;
  	format(string, 256, "%s v %d :%d  %s !!!", pwName, Score, Score, vs);
   	SendClientMessageToAll(0x33AA33AA, string);
        }
   	else if(Score[killerid] == 2)
        	{
    	Score[killerid]++;
   	format(string, 256, "%s Win %s , Score: %d :%d !", winer, proigr, Score, Score);
   	SendClientMessageToAll(0x33AA33AA, string);
 	 }
Reply


Messages In This Thread
Counting Score for two players - by user226 - 24.09.2009, 15:06
Re: Counting Score for two players - by Peter_Corneile - 24.09.2009, 15:07
Re: Counting Score for two players - by user226 - 24.09.2009, 15:09
Re: Counting Score for two players - by user226 - 24.09.2009, 16:07
Re: Counting Score for two players - by user226 - 24.09.2009, 19:21
Re: Counting Score for two players - by Correlli - 24.09.2009, 20:28
Re: Counting Score for two players - by user226 - 24.09.2009, 20:49
Re: Counting Score for two players - by Correlli - 24.09.2009, 21:17

Forum Jump:


Users browsing this thread: 3 Guest(s)