SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Tutorials

Reply
 
Thread Tools Display Modes
Old 16/10/2010, 07:47 PM   #1
[L3th4l]
Guest
 
Posts: n/a
Default How to avoid 'fatal error 100: cannot read from file'

Introduction:
I have seen MANY people that complain about a VERY SIMPLE mistake. 'Cannot read from file'

Even though they have the file in the correct place, it will spit out that error because they tend to conflict if you have more than 1 pawno in your pc.


How to fix it?
Very simple, follow this steps below:

1. Open pawno.exe ( Make sure you open the same pawno that contains all your stuff )
2. Click: File > Open > YOURSCRIPT ( The one that is showing errors )
3. Compile.


Some topics that i seen having this errors:
Code:
C:\DOCUME~1\CHRIST~1\Desktop\DEV'SM~1\FILTER~1\GarHouse.pwn(28) : fatal error 100: cannot read from file: "streamer"
Code:
C:\Documents and Settings\Vlado\Desktop\sa-mp\filterscripts\Mace.pwn(2) : fatal error 100: cannot read from file: "Dini"
Code:
I was trying to compile several scripts but I got the same error everytime ''Fatal error 100: cannot read from file  ''a_samp''. I even downloaded a whole new server from sa-mp.com and compiled a blanc script and I still got the same error, anyone knows what I should do?
Code:
Hi when i compile my gm it says : fatal error 100: cannot read from file: "Foreach" plz help i dont wanna ruin my 41k line
Code:
C:\Users\William\Downloads\TI\Tropical Island Server\filterscripts\Adminscript.pwn(2) : fatal error 100: cannot read from file: "lethaldudb2"
Code:
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(2) : fatal error 100: cannot read from file: "Dini"
Code:
C:\Users\Brad\Desktop\VortexRoleplay.pwn(20) : fatal error 100: cannot read from file: "streamer"
Code:
C:\Users\User\Desktop\0.3b\Gamemodes\SATDM_v9.pwn( 46) : fatal error 100: cannot read from file: "Ldudb"
Code:
I have WIndow's XP ,

: fatal error 100: cannot read from file: "xadmin/Xtremeadmin.inc"

I dont know what to do!!!

Please help

I have all .inc files
And all the things are good ... but then in get this.....
My other filterscripts works verry goood
Please help me!
--------------
Anyways, i don't want to go through all the topics. And I think there is two of the same errors above ^ and that is because that same person made two topics about the same thing.
--------------
Again, this is only for the people that have the correct files were they are supposed to be, but its giving this error!

And sorry for this small tut, but its too easy to fix, just teaching people what and how the problem is caused. And how to fix it
  Reply With Quote
Old 25/10/2010, 04:47 PM   #2
Mattjones17
Big Clucker
 
Join Date: Sep 2008
Posts: 90
Reputation: 0
Default Re: How to avoid 'fatal error 100: cannot read from file'

Great, helped me thanks.

As you mentioned, this happens when people have more than one pawno on their computer and they click the pwn file to open it rather than opening pawno, then File>Open>Compile, which loads the correct dll's etc.
Mattjones17 is offline   Reply With Quote
Old 26/10/2010, 06:59 AM   #3
Benzinas
Little Clucker
 
Join Date: Aug 2010
Posts: 15
Reputation: 0
Default Re: How to avoid 'fatal error 100: cannot read from file'

Very simple, but good lesson
Benzinas is offline   Reply With Quote
Old 26/10/2010, 10:17 AM   #4
HyperZ
High-roller
 
HyperZ's Avatar
 
Join Date: Aug 2009
Location: Islamabad, Pakistan
Posts: 1,341
Reputation: 66
Default Re: How to avoid 'fatal error 100: cannot read from file'

Nice Tutorial
__________________
HyperZ is offline   Reply With Quote
Old 26/10/2010, 10:42 AM   #5
Noss*
Huge Clucker
 
Noss*'s Avatar
 
Join Date: Jul 2010
Location: England,London
Posts: 360
Reputation: 3
Default Re: How to avoid 'fatal error 100: cannot read from file'

Nice tut,Simple too
__________________
Noss* is offline   Reply With Quote
Old 30/10/2010, 10:50 PM   #6
Lorenc_
High-roller
 
Lorenc_'s Avatar
 
Join Date: Jan 2010
Location: Australia
Posts: 3,793
Reputation: 1179
Default Re: How to avoid 'fatal error 100: cannot read from file'

Great info to those starters mate, should reduce some spam of bullshit around here :P
__________________
Join the best Cops And Robbers in SA-MP, today. svr.sfcnr.com:7777

Lorenc_ is offline   Reply With Quote
Old 30/10/2010, 11:48 PM   #7
Hal
High-roller
 
Hal's Avatar
 
Join Date: May 2010
Location: Toronto, Canada
Posts: 1,166
Reputation: 43
Default Re: How to avoid 'fatal error 100: cannot read from file'

Quote:
Originally Posted by Lorenc_ View Post
Great info to those starters mate, should reduce some spam of bullshit around here :P
no tutorial reduces spam, 50% of topics can be solved by searching, which some users do not do. They don't read tutorials, because there are still threads on the EXACT topics tutorials are trying to teach. Then there is that small percentage that searches, and this will help them :P
__________________

Wanna start a project thats NOT sa-mp with me? I have a bunch of server space, PM me.
Hal is offline   Reply With Quote
Old 11/12/2010, 10:49 AM   #8
KK
Little Clucker
 
KK's Avatar
 
Join Date: Jul 2010
Location: Norway
Posts: 14
Reputation: 0
Default Re: How to avoid 'fatal error 100: cannot read from file'

OK, some people may say this didn't work too. You have to close pawno, then go to the "pawno" folder and open pawno manually, after doing so, choose "open", select your file, open it, then ONLY press "compile".
KK is offline   Reply With Quote
Old 11/12/2010, 12:46 PM   #9
DeadAhead
Big Clucker
 
Join Date: Aug 2010
Posts: 127
Reputation: 14
Default Re: How to avoid 'fatal error 100: cannot read from file'

Just to add Why this happens:

It is Usual by people with more than one Server Package. PAWNO is Programmed to Configure registry so that Every .pwn file is executed with RecentOpenedSAMPServerPackage\pawno\pawn.exe
So basically then you goto the other Package you are scripting for and open a .pwn file And That isnt the Pawno from the package you are working from then Another one. So we need to re-accosiate pawno....

Oh sorry Guys that was SUPER not Understandable here il simple it out


Basically:


Code:
You open Server2\pawno\pawn.exe. Server2\pawno\pawn.exe makes all pawn files open with it.
You open Server1\filterscripts\gamemode.pwn. gamemode.pwn Opens with Server2\pawno\pawn.exe
Server2\pawno\pawn.exe Loads all Server2\pawno\include Includes.
And we need the includes from Server1

So, we open Server1\pawno\pawn.exe pawn.exe of Server1 makes all .pwn files open with it.
All Needed includes are loaded.

You succeded.
__________________

Free Script Requests. PM me.Remaining 0/15
Teaching PAWN for Free. PM me. Remaining 2/2.
Current Project: N/A
Progress: N/A
Need script Ideas.
Filterscripts






DeadAhead is offline   Reply With Quote
Old 11/12/2010, 05:01 PM   #10
[MWR]Blood
High-roller
 
Join Date: Apr 2009
Posts: 2,268
Reputation: 105
Default Re: How to avoid 'fatal error 100: cannot read from file'

Nice and helpful.
__________________
[MWR]Blood is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fatal error 100: Cannot read from file ''a_samp'' jurtes Help Archive 3 16/10/2010 11:17 AM
fatal error 100: cannot read from file DarkPower Help Archive 3 11/06/2010 07:36 PM
[HELP] a_samp.inc(17) : fatal error 100: cannot read from file: "core" lt_jones Help Archive 2 09/12/2009 03:00 PM
Help!! fatal error 100: cannot read from file: Smokey619 Help Archive 3 21/10/2009 12:55 PM


All times are GMT. The time now is 01:32 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.