SA-MP Forums Archive
Help with 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: Help with foreach (/showthread.php?tid=591312)



Help with foreach - V1Su4L - 10.10.2015

Hello all the scripters of SA-MP,
I have some problem in my script.
After I didn't work on my script a lot of time I want to continue it and I tried to compile it.
I got that error:

Код:
C:\Users\Lior\Desktop\Olympous New RP\gamemodes\rp.pwn(81) : fatal error 100: cannot read from file: "foreach"
How can I fix this problem?
I tried to update the include and new YSI files.
Please help!


Re: Help with foreach - AbyssMorgan - 10.10.2015

include missing


Re: Help with foreach - J0sh... - 10.10.2015

Quote:
Originally Posted by AbyssMorgan
Посмотреть сообщение
include missing
You twit.

https://github.com/Kar2k/SAMP-foreach


Re: Help with foreach - Unte99 - 10.10.2015

If you have multiple server folders, pawno might be opening from the wrong folder and it could be reading the wrong includes folder. So what you should do is go to the server folder you are working with right now, open pawno folder and launch pawno. Then open the gamemode you are working on and then try to compile. I have encountered this problem several times in the past.