-- and ++
#2

-- means it will decrease the amount of something by 1

and ++ means it will increase the amount of something by 1.

here is an example:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
PlayerDeath[playerid] ++; // increase the player death by one
PlayerScore[playerid] --; //will decrease the player  score by one
return 1;
}
and its the same as:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
PlayerDeath[playerid] += 1; // increase the player death by one
PlayerScore[playerid] -= 1; //will decrease the player  score by one
return 1;
}
Reply


Messages In This Thread
-- and ++ - by BoU3A - 11.11.2014, 02:44
Re: -- and ++ - by Eth - 11.11.2014, 02:47
Re: -- and ++ - by dominik523 - 11.11.2014, 11:48

Forum Jump:


Users browsing this thread: 1 Guest(s)