SA-MP Forums Archive
Runtime 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: Runtime Error (/showthread.php?tid=428067)



Runtime Error - Josh_Main - 04.04.2013

Hello, Im having problems with my gamemode script all of a sudden an I need some help.

I am getting one error

Код HTML:
C:\Users\Josh\Desktop\Server422 - Copy\gamemodes\NGRP2.pwn(11) : fatal error 100: cannot read from file: "foreach"

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


1 Error.
If I get rid of foreach I get another error

Код HTML:
C:\Users\Josh\Desktop\Server422 - Copy\gamemodes\NGRP2.pwn(11) : fatal error 100: cannot read from file: "yom_buttons"

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


1 Error.
Then I just keep getting errors from there on if I don't fix foreach.

Код HTML:
#include <a_samp>
#include <streamer>
#include <a_zones>
#include <foreach>
#include <yom_buttons>
#include <djson>
#include <progress>
#include <YSI\y_timers>
#include <ZCMD>
#include <sscanf2>
#include <audio>
Please help me


Re: Runtime Error - Josh_Main - 04.04.2013

Sorry for bumping, but I really need help


Re: Runtime Error - DaRk_RaiN - 04.04.2013

Am sure that you went to your script and double clicked to open it, well try this
Go to your pawno folder (the one that has the includes) open the pawno.exe, use it to open your script and then compile.


Re: Runtime Error - Josh_Main - 04.04.2013

Ill give it a try, thanks for the reply!


Re: Runtime Error - Josh_Main - 04.04.2013

That was it! Thank you alot! But I'm getting a runtime error now in my console

Script[Gamemode/NGRP2.amx]: Run time error 19 : "File or function is not found"


Re: Runtime Error - SilverKiller - 04.04.2013

Make sure your plugins are up to date.

And make sure you have this in your gamemode :

pawn Код:
main() {}



Re: Runtime Error - Josh_Main - 04.04.2013

Thanks, what should I put it under in the gamemode? and is there a way I can possibly upgrade my script so it's compatible with 0.3x?


Re: Runtime Error - SilverKiller - 04.04.2013

If you are missing main() {} put it Before OnGameModeInIt.


Re: Runtime Error - Josh_Main - 04.04.2013

Damn. It isn't it because I already have it


Re: Runtime Error - Josh_Main - 04.04.2013

Is it because my script is 0.3e not 0.3x?