SA-MP Forums Archive
help include - 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 include (/showthread.php?tid=483321)



help include - count.php - 25.12.2013

Код:
includes\system\house.pwn(25) : fatal error 111: user error: "You need foreach.inc"


Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Код:
#if !defined _foreach_included
	#error "You need foreach.inc"
#endif
but I have in pawno >> includes folder foreach.inc and new one.


Re: help include - Aliassassin123456 - 25.12.2013

Use it on top of your script:
pawn Код:
#include <foreach>



Re: help include - count.php - 25.12.2013

When I place in on top I got error:

D:\Users\GEMX\Desktop\gammd\pawno\include\YSI\y_it erate.inc(217) : fatal error 111: user error: "Please include a_samp or a_npc before foreach"


Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.


Re: help include - Konstantinos - 25.12.2013

pawn Код:
#include <a_samp>
#include <foreach>



Re: help include - Aliassassin123456 - 25.12.2013

so use:
pawn Код:
#include <a_samp>
#include <foreach>



Re: help include - Verth - 25.12.2013

You probably have foreach placed first.
Place a_samp first in list.
pawn Код:
#include <a_samp>
#include <foreach>
this is what i have

pawn Код:
#include <a_samp>
#include <a_mysql>
#include <zcmd>
#include <sscanf2>
#include <foreach>
#include <streamer>
#include <bodyparts>
#include <easydialog>
#include <a_pause>
#include <mSelection>
#include <messagebox>
#include <serverobjects>
#include <progress>
#include <h_colors>
#include <OPSP>
#include <PlayerToPlayer>
#include <cuffs>
#include <strlib>
#include <YSI\y_va>



Re: help include - count.php - 25.12.2013

And then I got same error:

includes\system\house.pwn(25) : fatal error 111: user error: "You need foreach.inc"


Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.


Re: help include - Aliassassin123456 - 25.12.2013

Download last version of foreach from here and replace it with your last foreach.inc.


Re: help include - Verth - 25.12.2013

you have the include in the include folder?

(Foldername/Pawno/Include/Foreach.inc)


Re: help include - denom - 25.12.2013

Download the foreach or copy it from other scripts