Gamemode 4 Errors. - 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: Gamemode 4 Errors. (
/showthread.php?tid=451406)
Gamemode 4 Errors. -
xXHeathXx12 - 17.07.2013
im getting this new script for my server and it gives me those errors D: for some reason any idea why

?
Код:
C:\Users\heath_000\Desktop\Test Server\gamemodes\rp.pwn(49381) : error 017: undefined symbol "wheelmodels@YSII_Ag"
C:\Users\heath_000\Desktop\Test Server\gamemodes\rp.pwn(49381) : error 017: undefined symbol "wheelmodels@YSII_Ag"
C:\Users\heath_000\Desktop\Test Server\gamemodes\rp.pwn(49381) : error 029: invalid expression, assumed zero
C:\Users\heath_000\Desktop\Test Server\gamemodes\rp.pwn(49381) : fatal error 107: too many error messages on one line
Re: Gamemode 4 Errors. -
Red_Dragon. - 17.07.2013
Show us line 49381.
Re: Gamemode 4 Errors. -
xXHeathXx12 - 17.07.2013
AW: Gamemode 4 Errors. -
BigETI - 17.07.2013
Do not use "foreach" in this case. A default "for" loop can loop through constant data aswell.
For "foreach" you have to define
Where you have to insert every data first, and in this case it becomes slower than a default for loop.
Re: Gamemode 4 Errors. -
xXHeathXx12 - 17.07.2013
now i get
Код:
C:\Users\heath_000\Desktop\Test Server\gamemodes\rp.pwn(49381) : warning 221: label name "_Y_ITER_C3" shadows tag name
C:\Users\heath_000\Desktop\Test Server\gamemodes\rp.pwn(49381) : error 017: undefined symbol "wheelmodels@YSII_Cg"
C:\Users\heath_000\Desktop\Test Server\gamemodes\rp.pwn(49381) : warning 215: expression has no effect
C:\Users\heath_000\Desktop\Test Server\gamemodes\rp.pwn(49381) : error 001: expected token: ";", but found "]"
C:\Users\heath_000\Desktop\Test Server\gamemodes\rp.pwn(49381) : error 029: invalid expression, assumed zero
C:\Users\heath_000\Desktop\Test Server\gamemodes\rp.pwn(49381) : fatal error 107: too many error messages on one line
Re: Gamemode 4 Errors. -
Scenario - 17.07.2013
He said
NOT to use a foreach loop. Use a regular for loop for this. Example:
pawn Код:
for(new variable; variable < max_value; variable++)