open.mp forum
fatal error 100: cannot read from file [FIX] - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3)
--- Forum: Tutorials (https://forum.open.mp/forumdisplay.php?fid=37)
--- Thread: fatal error 100: cannot read from file [FIX] (/showthread.php?tid=2603)



fatal error 100: cannot read from file [FIX] - YoungKrypt - 2024-02-23

Hello OpenMP And Samp Players...
So I have begun learning Pawno for SAMP...

The other day I was working on my server and everything worked fine.
I installed Pawno with Samp Server R2 amd configured the Pawno Compiler with VSCode...

I renamed the folder I was working on and moved it to desktop.
Today I logged on and I attempted to Save/Compile Script and got the error:

\gamemodes\LCRPM2.pwn(7) : fatal error 100: cannot read from file: "zcmd"


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

So I decided to look online and I found a lot of people with the same problem but no easy answer... I tried deleting zcmd and readding it... Etc...
Nothing worked... 



I turns out my problem was in the VS Code Extension.

When you use VS Code you need to download the Extension: PAWN Language for Visual Studio Code made by Qoo.
When I moved the Folder and Renamed it, everything was still in the same place but the Pawno Compiler was not connected to VS Code anymore.

In order to Fix this:

--Open VS Code
--Click on the Gear on the bottom left hand side of VS Code

--Click on Settings
--Click on Extensions

--It'll now show programming languages and extensions
--Click on Pawn
--On the right it'll have the Compiler Path (Picture shown below)
--Update the Compiler Path with the Correct Pawno Folder in your PC.
--Done, you can now compile with no errors.


[Image: Pawn-Help.png]