How to increase enum by a specific number
#2

Quote:
Originally Posted by TheTerminator
Посмотреть сообщение
Hi.

I know that I can increase an enum with the 2 '+''s.

pawn Код:
PlayerInfo[playerid][pExperience2]++;
What do I write so that this increases by 100? Sort of like this:

pawn Код:
PlayerInfo[playerid][pExperience2]+ 100;
Thanks.
Hello.
Do you know anything about += -= *= /= operators, yet? Apparently - You should.

pawn Код:
PlayerInfo[playerid][pExperience2] += 100; // Increase pExperience2 by 100
Greetings.
Reply


Messages In This Thread
How to increase enum by a specific number - by TheTerminator - 02.07.2015, 11:56
Re: How to increase enum by a specific number - by LetsOWN[PL] - 02.07.2015, 12:07
Re: How to increase enum by a specific number - by TheTerminator - 02.07.2015, 12:19

Forum Jump:


Users browsing this thread: 1 Guest(s)