SA-MP Forums Archive
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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: error 022: must be lvalue (non-constant) (/showthread.php?tid=202769)



Delete - [SF]OutLawZ - 25.12.2010

This thread is too old to be displayed


Re: error 022: must be lvalue (non-constant) - Krx17 - 25.12.2010

Is pCash declared?
Which line is giving the error?


Re: error 022: must be lvalue (non-constant) - [SF]OutLawZ - 25.12.2010

line 4335 witch is pCash = GetPlayerMoney(playerid);


Re: error 022: must be lvalue (non-constant) - Krx17 - 25.12.2010

Do you declare pCash anywhere?

By declare I mean "new pCash;"


Re: error 022: must be lvalue (non-constant) - [SF]OutLawZ - 25.12.2010

yes i do


Re: error 022: must be lvalue (non-constant) - [SF]OutLawZ - 25.12.2010

dont worry i got it working