SA-MP Forums Archive
My Server Says Cannot Read From File When Compiling? [FIX INSIDE] - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: My Server Says Cannot Read From File When Compiling? [FIX INSIDE] (/showthread.php?tid=82202)



My Server Says Cannot Read From File When Compiling? [FIX INSIDE] - BP13 - 16.06.2009

Hello. Recently after thousands of people saying they get this error (that it cannot read from file bla) here is some steps you have to take to get it working.

Firstly make sure you actually have the include file in your pawno/include folder.

Secondly here is what you need to do if your error persists:
_________________________________________________

First do not open your script by clicking on your file:

_________________________________________________
You must open pawno.exe first:

_________________________________________________
Then click new:

_________________________________________________
Delete all the lines in the new opened pawno.

Now Open your Original Gamemode:

_________________________________________________
Copy All of the lines, then paste it all into your new pawno file:

_________________________________________________
Then Compile your script while overwriting your old one.

- I hope this helps lots of people!


Re: My Server Says Cannot Read From File When Compiling? [FIX INSIDE] - Rac3r - 16.06.2009

This is bullshit, basically you're explaining how to load the right pawno.exe, cuz it sounds like this problem only happens if you have multiple server folder with the pawno.exe located inside the folder.

Come on, let's be honest it's obvious.


Re: My Server Says Cannot Read From File When Compiling? [FIX INSIDE] - BP13 - 16.06.2009

well I knew I was gonna get a negative rely from trying to help people. Seriously lots of people download a fresh GM that thousands have tried and for some reason they get this error when it seems it works for everyone else. This a topic people can link to if some one replies that it cannot read from the file. lately I have been helping people setup this servers and I have been getting asked why this is happening and how to fix it. People always post around saying "Its in there but it still won't compile". Ok? Good. If you do not need this help or no not have positive feedback don't even bother posting.

And no this is not from multiple server folders. This error is still possible to happen even though its a single server folder.

Example I found this reply in less than a minute:

Quote:
Originally Posted by TraNe15
Hey dude ı have a problem like this...

__________________________________________________ __________________________________________________ _______________________________

I:\Documents and Settings\TraNe\Desktop\Gta Sa-Mp Server\Istanblue Server\gamemodes\FreeRoam.pwn(12) : fatal error 100: cannot read from file: "YSI"

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


1 Error. => WTF!!
__________________________________________________ __________________________________________________ _______________________________

I added YSI to scriptfiles and include file.. What can I do?



Re: My Server Says Cannot Read From File When Compiling? [FIX INSIDE] - robanswe - 16.06.2009

This problem is when you put the include in wrong pawno folder! Here is a better guide!

1.
[img width=1024 height=640]http://www.ringmaster.se/nr1.jpg[/img]

2.
[img width=1024 height=640]http://www.ringmaster.se/nr2.jpg[/img]

3.
[img width=1024 height=640]http://www.ringmaster.se/nr3.jpg[/img]

4.
[img width=1024 height=640]http://www.ringmaster.se/nr4.jpg[/img]

if the problem persists, check if you have all the files in the include folder! If not Search on the filename on the forum...


_________________________________________________

Here is my post code if you wont to take it to your first post..
Код:
This problem is when you put the include in wrong pawno folder! Here is a better guide! 

1.
[img width=1024 height=640]http://www.ringmaster.se/nr1.jpg[/img]

2.
[img width=1024 height=640]http://www.ringmaster.se/nr2.jpg[/img]

3.
[img width=1024 height=640]http://www.ringmaster.se/nr3.jpg[/img]

4.
[img width=1024 height=640]http://www.ringmaster.se/nr4.jpg[/img]

if the problem persists, check if you have all the files in the include folder! If not Search on the filename on the forum...




Re: My Server Says Cannot Read From File When Compiling? [FIX INSIDE] - BP13 - 16.06.2009

Quote:
Originally Posted by Roban[swe
]
This problem is when you put the include in wrong pawno folder! Here is a better guide!

if the problem persists, check if you have all the files in the include folder! If not Search on the filename on the forum...
thanks for adding onto this topic!


Re: My Server Says Cannot Read From File When Compiling? [FIX INSIDE] - BP13 - 26.06.2009

//Delete Me


Re: My Server Says Cannot Read From File When Compiling? [FIX INSIDE] - Weirdosport - 26.06.2009

BP13 is right, this isn't just a case of having includes in the wrong folder. There is a "bug" whereby you must restart pawn without clicking a file to get the includes to "refresh". This is not bullshit..

Quote:
Originally Posted by [LSD
Rac3r ]
This is bullshit, basically you're explaining how to load the right pawno.exe, cuz it sounds like this problem only happens if you have multiple server folder with the pawno.exe located inside the folder.

Come on, let's be honest it's obvious.
That on the other hand...


Re: My Server Says Cannot Read From File When Compiling? [FIX INSIDE] - lilstuh - 28.06.2009

Thanks to Roban and Su Bp13 it helped me =)


Re: My Server Says Cannot Read From File When Compiling? [FIX INSIDE] - BP13 - 28.06.2009

Quote:
Originally Posted by lilstuh
Thanks to Roban and Su Bp13 it helped me =)
Glad it helped. I wish more people linked to this topic maybe it would get stickied?


Re: My Server Says Cannot Read From File When Compiling? [FIX INSIDE] - Danny_Costelo - 28.06.2009

Quote:
Originally Posted by [SU
BP13 ]
Quote:
Originally Posted by lilstuh
Thanks to Roban and Su Bp13 it helped me =)
Glad it helped. I wish more people linked to this topic maybe it would get stickied?
This will never get stickied .

Quote:
Originally Posted by [LSD
Rac3r ]
This is bullshit, basically you're explaining how to load the right pawno.exe, cuz it sounds like this problem only happens if you have multiple server folder with the pawno.exe located inside the folder.

Come on, let's be honest it's obvious.
Correcto'!