error 022: must be lvalue (non-constant)
#1

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!
Reply
#2

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
Reply
#3

i see what I did i had it a enum and forgot to add the front part of the array ups
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)