Must be lvalue (non-constant)
#8

Quote:

022 must be lvalue (non-constant)
The symbol that is altered (incremented, decremented, assigned
a value, etc.) must be a variable that can be modified (this kind
of variable is called an lvalue). Functions, string literals, arrays
and constants are no lvalues. Variables declared with the “const”
attribute are no lvalues either.

Код:
static const oldmoney;
oldmoney = GetPlayerMoneyEx(playerid);
Bad.

Код:
static const oldmoney = GetPlayerMoneyEx(playerid);
Good.
Reply


Messages In This Thread
Must be lvalue (non-constant) - by Th3Angel - 26.02.2011, 03:12
Re: Must be lvalue (non-constant) - by klk - 26.02.2011, 03:17
Re: Must be lvalue (non-constant) - by Th3Angel - 26.02.2011, 03:29
Re: Must be lvalue (non-constant) - by Antonio [G-RP] - 26.02.2011, 03:31
Re: Must be lvalue (non-constant) - by Th3Angel - 26.02.2011, 03:40
Re: Must be lvalue (non-constant) - by Antonio [G-RP] - 26.02.2011, 04:10
Re: Must be lvalue (non-constant) - by Th3Angel - 26.02.2011, 04:16
Re: Must be lvalue (non-constant) - by klk - 26.02.2011, 04:20
Re: Must be lvalue (non-constant) - by Th3Angel - 26.02.2011, 04:32
Re: Must be lvalue (non-constant) - by klk - 26.02.2011, 04:46

Forum Jump:


Users browsing this thread: 3 Guest(s)