SA-MP Forums Archive
Not able to read includes - 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: Not able to read includes (/showthread.php?tid=505240)



Not able to read includes - AndySedeyn - 07.04.2014

For some reason I keep getting a fatal error when I include files such as: y_ini or foreach.
I don't have the problem with zcmd and sscanf2 but these are the only ones that I don't have the problem with.

pawn Код:
(5) : fatal error 100: cannot read from file: "YSI\y_ini"
pawn Код:
#include <a_samp>
#include <zcmd>
#include <YSI\y_ini>
#include <sscanf2>
#include <foreach>
I've put my includes in:
pawn Код:
pawno/includes
If I open a new .pwn file and paste my whole code in it, it works but as soon as I close it and open it again it gives me the error.

I noticed that the includes are not inside the Function List.


Re: Not able to read includes - BroZeus - 07.04.2014

what version of YSI are u using?


Re: Not able to read includes - iThePunisher - 07.04.2014

download this YSI folder (the newest one) https://sampforum.blast.hk/showthread.php?tid=321092
And check if the error will be fixed


Re: Not able to read includes - AndySedeyn - 07.04.2014

The thing is, I have this with every include that is not listed in the function list on the right side.
(ZCMD and sscanf2 are listen, the rest isn't)


Re: Not able to read includes - xVIP3Rx - 07.04.2014

I think, You have two server folders, one has the required includes and one hasn't, Because I had this problem when I had two servers.
How do you create/open the scripts ? Using the same Pawno or different ones ??


Re: Not able to read includes - iBanner - 07.04.2014

Try to run pawn in Run as Administrator. Make sure you open the pawn.exe where you are going to compile the gamemode or fs. Usually people open the pawn.exe in different folder by mistake.


Re: Not able to read includes - AndySedeyn - 07.04.2014

Quote:
Originally Posted by xVIP3Rx
Посмотреть сообщение
I think, You have two server folders, one has the required includes and one hasn't, Because I had this problem when I had two servers.
How do you create/open the scripts ? Using the same Pawno or different ones ??
Thank you, mate.
Repped.



Re: Not able to read includes - AndySedeyn - 07.04.2014

I'm having this error now:

..\pawno\include\YSI\..\YSI_Storage\y_ini.inc(206) : fatal error 100: cannot read from file: "..\amx\os"


Re: Not able to read includes - AndySedeyn - 07.04.2014

Quote:
Originally Posted by ******
Посмотреть сообщение
You need Zeex's amx library.
FIXED, thanks ******