How to give a higher value?
#1

fdsfdsfsdfsdfsdf
Reply
#2

PlayerInfo[playerid][Tickets] +=3;
Reply
#3

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
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)