SA-MP Forums Archive
Cannot read from file 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: Cannot read from file error. (/showthread.php?tid=637202)



Cannot read from file error. - Crackerz - 10.07.2017

Error:
Код:
D:\gta\Egygame.Net.GTA.San.Andreas\GTA San Andreas\GTA San Andreas\server\gamemodes\WCRP.pwn(232) : fatal error 100: cannot read from file: "wcrp/utils.pwn"

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


1 Error.
Error Line:
Код:
#include "wcrp/utils.pwn"
Please guys help me, I have the file in my wcrp folder but still error


Re: Cannot read from file error. - Alex_T - 10.07.2017

Is the file located in "gamemodes\wcrp\utils.pwn"?


Re: Cannot read from file error. - Crackerz - 10.07.2017

No, its path is "pawno/wcrp/utils.pwn"


Re: Cannot read from file error. - Kaperstone - 10.07.2017

Ain't sure whether you can include .pwn files, but try flipping the slash `\`


Re: Cannot read from file error. - Crackerz - 10.07.2017

I did tried filipping the slash but nothing happened


Re: Cannot read from file error. - Kaperstone - 10.07.2017

then rename .pwn to .inc


Re: Cannot read from file error. - Meller - 10.07.2017

Quote:
Originally Posted by Kaperstone
Посмотреть сообщение
then rename .pwn to .inc
good joke

@op

CTRL + H
#include "wcrp/

to

#include "../wcrp/

+, dont fucking steal others scripts if you can't even fix this simple thing.


Re: Cannot read from file error. - Kaperstone - 10.07.2017

Quote:
Originally Posted by Meller
Посмотреть сообщение
good joke
If you have any better ideas you can go ahead and try.
Your reply isn't serving a use if you don't explain yourself.


Quote:
Originally Posted by Alex_T
Посмотреть сообщение
move the wcrp folder to your gamemode folder so its gamemode\wcrp\...
When using pawn, the compiler will include the files from /include folder that is inside the compiler's folder.
It will be weird if it moving to /gamemode will work.

Quote:
Originally Posted by Meller
Посмотреть сообщение
bullshit


@everoyne
stop fucking posting shit that u know wont help.
Well, somebody is having a bad day.



OT: Are you sure it's not a filterscript ?


Re: Cannot read from file error. - Meller - 10.07.2017

Quote:
Originally Posted by Kaperstone
Посмотреть сообщение
If you have any better ideas you can go ahead and try.
Your reply isn't serving a use if you don't explain yourself.



When using pawn, the compiler will include the files from /include folder that is inside the compiler's folder.
It will be weird if it moving to /gamemode will work.


Well, somebody is having a bad day.



OT: Are you sure it's not a filterscript ?
I edited this script not too long ago, had this same "issue", solved it instantly bcus I'm not stupid and renaming .pwn to .inc for no reason.


Re: Cannot read from file error. - Kaperstone - 10.07.2017

Quote:
Originally Posted by Meller
Посмотреть сообщение
I edited this script not too long ago, had this same "issue", solved it instantly bcus I'm not stupid and renaming .pwn to .inc for no reason.
So you knew the answer and didn't reply.



P.S. file ext. sometimes do matter, fyi.