error 022: must be lvalue (non-constant) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error 022: must be lvalue (non-constant) (
/showthread.php?tid=361385)
error 022: must be lvalue (non-constant) -
Jstylezzz - 20.07.2012
Hi everyone,
I am getting this error when changing a few lines in my script...
this is the error:
Код:
error 022: must be lvalue (non-constant)
and below, is one of the lines that gives the error..
pawn Код:
if(GetPVarInt(playerid,"Rank") == 1) {SendClientMessage(playerid,COLOR_WHITE,"You have received your paycheck!") && format(paydaystring,sizeof(paydaystring),"Received money: 300$") && newmoney[playerid] = 300;}
Maybe i miss something, but what is not okay in my code?
I hope someone sees,
Thanks in advance
Re: error 022: must be lvalue (non-constant) -
FireCat - 20.07.2012
pawn Код:
f(GetPVarInt(playerid,"Rank") == 1) {SendClientMessage(playerid,COLOR_WHITE,"You have received your paycheck!");format(paydaystring,sizeof(paydaystring),"Received money: 300$") ;newmoney[playerid] = 300;}
Since you're using those functions in brackets, why use &&, and not ;?
Re: error 022: must be lvalue (non-constant) -
Jstylezzz - 20.07.2012
My mistake
let me try it that way
thanks
EDIT: it works, thanks alot
Re: error 022: must be lvalue (non-constant) -
FireCat - 20.07.2012
Quote:
Originally Posted by Jari_Johnson*
My mistake
let me try it that way
thanks
EDIT: it works, thanks alot
|
No problem! (: