Gamemode 4 Errors.
#1

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

Show us line 49381.
Reply
#3

Reply
#4

Do not use "foreach" in this case. A default "for" loop can loop through constant data aswell.

For "foreach" you have to define
pawn Код:
Iterator:wheelmodels<17>
Where you have to insert every data first, and in this case it becomes slower than a default for loop.
Reply
#5

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

He said NOT to use a foreach loop. Use a regular for loop for this. Example:

pawn Код:
for(new variable; variable < max_value; variable++)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)