SA-MP Forums Archive
foreach.inc error - 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: foreach.inc error (/showthread.php?tid=437258)



foreach.inc error - Gecko75 - 14.05.2013

Trying to compile my gamemode, it's giving me an error related to foreach.inc

Код:
C:\Users\Scoot\Desktop\XMG RP files\pawno\include\foreach.inc(200) : fatal error 111: user error: "Please include a_samp or a_npc before foreach"


Compilation aborted.Pawn compiler 3.0.3367			Copyright © 1997-2005, ITB CompuPhase


1 Error.
Updated the foreach.inc file, still doesnt work.


AW: foreach.inc error - HurtLocker - 14.05.2013

I think the error message can not be more clearer.


Re : foreach.inc error - Rayan_black - 14.05.2013

Hmm, try to open PAWNO and then load your script from it then compile, if it doesn't work make sure you added foreach.inc to pawno/include.


Re: foreach.inc error - Red_Dragon. - 14.05.2013

Did you add
pawn Код:
#include <a_samp>
at the TOP of your script ?


Re: foreach.inc error - DanLore - 14.05.2013

Incase you truly don't understand what's wrong here...

Stick

pawn Код:
#include <a_samp>
#include <a_npc>
before

pawn Код:
#include <foreach>
So your end result should be
pawn Код:
#include <a_samp>
#include <a_npc>
#include <foreach>



Re: foreach.inc error - Gecko75 - 14.05.2013

This is what the includes looks like.

Still gives me the error.

Код:
#include <a_samp>
#include <foreach>
#include <zcmd>
#include <a_mysql>
#include <sscanf2>
#include <streamer>
#include <audio>



Re: foreach.inc error - Dopefull - 14.05.2013

Try like this mate

Код:
#include <a_samp>
#include <a_npc>
#include <foreach>
#include <zcmd>
#include <a_mysql>
#include <sscanf2>
#include <streamer>
#include <audio>



Re : foreach.inc error - Rayan_black - 14.05.2013

Try to do what I told you to, because the gamemode isn't reading those includes and they're not being included in your gamemode... try to open pawno and open your gamemode's file with it then compile, it always worked for me.