foreach.inc error
#1

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

I think the error message can not be more clearer.
Reply
#3

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.
Reply
#4

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

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

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

Try like this mate

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)