Variable Not Increasing
#2

Try to change += to ++.

So, for example,
pawn Код:
FactionLeader[targetid] += 1;
would change to
pawn Код:
FactionLeader[targetid] ++;
All looks fine, but you can always try this.

EDIT: on second thought, why do you check if the players faction is less then or equal to 1? Shouldn't it be 0?

Also, why do you add onto the variable. Why not set it to a number, like 1 or something.
Reply


Messages In This Thread
Variable Not Increasing - by Mike97300 - 13.06.2012, 21:18
Re: Variable Not Increasing - by Kindred - 13.06.2012, 21:25
Re: Variable Not Increasing - by Chris1337 - 13.06.2012, 21:25
Re: Variable Not Increasing - by Mike97300 - 13.06.2012, 21:34
Re: Variable Not Increasing - by PrawkC - 13.06.2012, 22:16

Forum Jump:


Users browsing this thread: 2 Guest(s)