26.02.2011, 03:12
pawn Код:
static const oldmoney;
oldmoney = GetPlayerMoneyEx(playerid); //Line 1258
SetPlayerMoneyEx(playerid, oldmoney);
pawn Код:
(1258) : error 022: must be lvalue (non-constant)
static const oldmoney;
oldmoney = GetPlayerMoneyEx(playerid); //Line 1258
SetPlayerMoneyEx(playerid, oldmoney);
(1258) : error 022: must be lvalue (non-constant)
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);
static const oldmoney = GetPlayerMoneyEx(playerid);