errors while compiling
#1

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

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

cant fix can u do it
Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)