Foreach - 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: Foreach (
/showthread.php?tid=646394)
Foreach -
NealPeteros - 16.12.2017
I'm kinda new to foreach
Код:
(829) : error 017: undefined symbol "Vehicle@YSII_Ag"
(829) : error 017: undefined symbol "Vehicle@YSII_Ag"
(829) : error 029: invalid expression, assumed zero
(829) : fatal error 107: too many error messages on one line
PHP код:
foreach( new c : Vehicle)
Re: Foreach -
Misiur - 16.12.2017
y_iterate/foreach included in YSI does in fact include vehicles. OP, are you using standalone foreach?
Re: Foreach -
NealPeteros - 16.12.2017
Sorry for the late response.
Yeah, I'm using the foreach include, not YSI
EDIT: What if I replace the line with
PHP код:
for(new c=0; c<MAX_VEHICLES; c++)