How to give a higher value? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to give a higher value? (
/showthread.php?tid=435479)
How to give a higher value? -
Vytixz - 07.05.2013
fdsfdsfsdfsdfsdf
Re: How to give a higher value? -
mastermax7777 - 07.05.2013
PlayerInfo[playerid][Tickets] +=3;
Re: How to give a higher value? -
Goldilox - 07.05.2013
PlayerInfo[playerid][Tickets] =+3;
This might be wrong but that is what I came up with.
Or if it doesn't work. Make a variable and give it a value of getting the player tickets and increase it by three. Too complicated. :P
Re: How to give a higher value? -
RajatPawar - 07.05.2013
For further use, you really need to read the language guide for PAWN.
To increase the value of a variable "a" by 5:
pawn Код:
a = a + 5
#WHICH IS THE SAME AS
a += 5
The right hand side of the equal to sign gets operated on the LHS.