SA-MP Forums Archive
errors while compiling - 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: errors while compiling (/showthread.php?tid=568111)



errors while compiling - hardiksingh5 - 19.03.2015

C:\Users\Dell\Desktop\pilot\gamemodes\pilot.pwn(65 6) : error 017: undefined symbol "foreach"
C:\Users\Dell\Desktop\pilot\gamemodes\pilot.pwn(65 9) : error 017: undefined symbol "i"
C:\Users\Dell\Desktop\pilot\gamemodes\pilot.pwn(65 9) : error 017: undefined symbol "i"
C:\Users\Dell\Desktop\pilot\gamemodes\pilot.pwn(66 0) : error 017: undefined symbol "i"
C:\Users\Dell\Desktop\pilot\gamemodes\pilot.pwn(66 1) : warning 217: loose indentation
C:\Users\Dell\Desktop\pilot\gamemodes\pilot.pwn(66 1) : error 017: undefined symbol "i"
C:\Users\Dell\Desktop\pilot\gamemodes\pilot.pwn(66 4) : error 017: undefined symbol "i"
C:\Users\Dell\Desktop\pilot\gamemodes\pilot.pwn(66 7) : error 017: undefined symbol "i"
C:\Users\Dell\Desktop\pilot\gamemodes\pilot.pwn(66 : error 017: undefined symbol "i"
C:\Users\Dell\Desktop\pilot\gamemodes\pilot.pwn(67 2) : warning 217: loose indentation
C:\Users\Dell\Desktop\pilot\gamemodes\pilot.pwn(67 2) : error 017: undefined symbol "i"
C:\Users\Dell\Desktop\pilot\gamemodes\pilot.pwn(67 3) : warning 217: loose indentation
C:\Users\Dell\Desktop\pilot\gamemodes\pilot.pwn(67 3) : error 017: undefined symbol "i"
C:\Users\Dell\Desktop\pilot\gamemodes\pilot.pwn(67 6) : error 017: undefined symbol "i"
C:\Users\Dell\Desktop\pilot\gamemodes\pilot.pwn(68 0) : error 017: undefined symbol "i"
C:\Users\Dell\Desktop\pilot\gamemodes\pilot.pwn(68 5) : warning 217: loose indentation
C:\Users\Dell\Desktop\pilot\gamemodes\pilot.pwn(68 5) : error 017: undefined symbol "i"
C:\Users\Dell\Desktop\pilot\gamemodes\pilot.pwn(68 6) : warning 217: loose indentation
C:\Users\Dell\Desktop\pilot\gamemodes\pilot.pwn(68 7) : error 017: undefined symbol "i"


AW: errors while compiling - Kaliber - 19.03.2015

Include YSF foreach or make a makro:

Код:
#define foreach(%0,%1) for(new %0; %0<%1; %0++) if(IsPlayerConnected(%0))
In this case write it like this:

Код:
foreach(i, MAX_PLAYERS)



Re: errors while compiling - hardiksingh5 - 19.03.2015

cant fix can u do it


Re: errors while compiling - CalvinC - 19.03.2015

Download foreach.
https://sampforum.blast.hk/showthread.php?tid=92679