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=186792)
error 022: must be lvalue (non-constant) -
BLAbla93 - 30.10.2010
Code:
(723) : error 022: must be lvalue (non-constant)
pawn Code:
housepickupEnter = AddStaticPickup(1273, 19, hinfo[houseid][Enterx], hinfo[houseid][Entery], hinfo[houseid][Enterz], -1); // <---- Line 723
all help is appreciated as I am working on a house script and don't say go download one as I will not becuase I want to be dynamic with my server!
Re: error 022: must be lvalue (non-constant) -
pater - 30.10.2010
You can't create a pickup like this, if i'm right, you are trying to create a pickup in front of multiple houses, using only one single line. I'm not sure how to explain it in proper english, but maybe you should make something like
pawn Code:
housepickupEnter[MAX_HOUSES]
Hope you can do something with this.
regards
Re: error 022: must be lvalue (non-constant) -
BLAbla93 - 30.10.2010
i see what I did i had it a enum and forgot to add the front part of the array ups
Re : error 022: must be lvalue (non-constant) -
onvonv - 07.03.2012
Code:
C:\Documents and Settings\HP_Administrateur\Bureau\SAMP Server\pawno\new.pwn(57) : error 022: must be lvalue (non-constant)
C:\Documents and Settings\HP_Administrateur\Bureau\SAMP Server\pawno\new.pwn(58) : warning 213: tag mismatch
C:\Documents and Settings\HP_Administrateur\Bureau\SAMP Server\pawno\new.pwn(59) : warning 213: tag mismatch
C:\Documents and Settings\HP_Administrateur\Bureau\SAMP Server\pawno\new.pwn(60) : warning 213: tag mismatch
C:\Documents and Settings\HP_Administrateur\Bureau\SAMP Server\pawno\new.pwn(61) : warning 213: tag mismatch
C:\Documents and Settings\HP_Administrateur\Bureau\SAMP Server\pawno\new.pwn(62) : warning 213: tag mismatch
C:\Documents and Settings\HP_Administrateur\Bureau\SAMP Server\pawno\new.pwn(63) : warning 213: tag mismatch
C:\Documents and Settings\HP_Administrateur\Bureau\SAMP Server\pawno\new.pwn(65) : warning 213: tag mismatch
C:\Documents and Settings\HP_Administrateur\Bureau\SAMP Server\pawno\new.pwn(66) : warning 213: tag mismatch
C:\Documents and Settings\HP_Administrateur\Bureau\SAMP Server\pawno\new.pwn(67) : warning 213: tag mismatch
C:\Documents and Settings\HP_Administrateur\Bureau\SAMP Server\pawno\new.pwn(68) : warning 213: tag mismatch
C:\Documents and Settings\HP_Administrateur\Bureau\SAMP Server\pawno\new.pwn(69) : warning 213: tag mismatch
C:\Documents and Settings\HP_Administrateur\Bureau\SAMP Server\pawno\new.pwn(70) : warning 213: tag mismatch
C:\Documents and Settings\HP_Administrateur\Bureau\SAMP Server\pawno\new.pwn(152) : warning 213: tag mismatch
C:\Documents and Settings\HP_Administrateur\Bureau\SAMP Server\pawno\new.pwn(237) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
That's what i get after defining the teleportmenu.