Whats wrong with this?
#1

suitsud[playerid] = +1;

Код:
 error 029: invalid expression, assumed zero

warning 215: expression has no effect
Reply
#2

pawn Код:
suitsud[playerid] = ++;
Reply
#3

error 022: must be lvalue (non-constant)

error029: invalid expression, assumed zero

when i add your thing
Reply
#4

Show me everywhere suitsud is used
Reply
#5

this is under onplayerdisconnect: dini_IntSet(udb_encode(playername), "suitsud", suitsud[playerid]);




this is under onplayerregister: dini_IntSet(udb_encode(playername), "suitsud", 0);
Reply
#6

Just try it like this:
pawn Код:
suitsud[playerid]++;
Reply
#7

works thnx
Reply
#8

Quote:
Originally Posted by hardstop
suitsud[playerid] = +1;

Код:
 error 029: invalid expression, assumed zero

warning 215: expression has no effect
There are two (and a half) ways to increment a value. You could do it how you wanted to originally:

Код:
iVar += 1
The other way is the increment modifier:

Код:
++iVar
iVar++
Both achieve the same result - but differently.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)