Expression has no effect
#1

Hey,
so let's say i want to add +1 kill to killerid stats.
pawn Код:
PlayerInfo[killerid][pKills]++;
what i have to do if i want to add more then +1 ?
pawn Код:
PlayerInfo[killerid][pKills]+3;
it gives me warning " warning 215: expression has no effect "

Thanks for help.
Reply
#2

Adding 3 like that won't do anything as a single statement, you can do:
PHP код:
PlayerInfo[killerid][pKills] += 3
This adds 3 to the current value. You can also do some other operations this way.
Reply
#3

You are the king my friend ! Thanks a lot !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)