How To Add More Than One To A Variable?
#1

If I create a variable:
pawn Код:
new cookies[MAX_PLAYERS];
I know to add to the variable, you do this:
pawn Код:
cookies[playerid]++;
And to subtract, you do this:
pawn Код:
cookies[playerid]--;
But what do you do if you want to subtract more than one from the variable?

pawn Код:
cookies[playerid]+7;
Reply


Messages In This Thread
How To Add More Than One To A Variable? - by Tigerbeast11 - 09.08.2011, 13:03
Re: How To Add More Than One To A Variable? - by Sascha - 09.08.2011, 13:05
Re: How To Add More Than One To A Variable? - by Wesley221 - 09.08.2011, 13:05
Re: How To Add More Than One To A Variable? - by Tigerbeast11 - 09.08.2011, 13:16

Forum Jump:


Users browsing this thread: 1 Guest(s)