+1 to command
#1

how to do that it will get +1 every time when i use that
no to set it to 1 point, add 1 point
PHP код:
GermanyPoints[playerid] =1
Reply
#2

GermanyPoints[playerid]++;

?
Reply
#3

pawn Код:
GermanyPoints[playerid]++;//adds 1 point at a time
Reply
#4

and -1 point?
like that ??
Quote:

GermanyPoints[playerid]--;

Reply
#5

EDIT Nevermind.
Reply
#6

Yep, just like that.
If you want to add like 10 points to it, there is an easier way of doing that.
pawn Код:
GermanyPoints[playerid] += 10; // this will add 10 points to the variable
GermanyPoints[playerid] -= 10; // this will remove 10 points from the variable
Reply
#7

ok tnx!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)