SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 02/04/2019, 07:58 AM   #81
Bif
Little Clucker
 
Join Date: Aug 2016
Location: somewhere on this rusty planet
Posts: 4
Reputation: 0
Smile Re: PAWN for SA-MP in Sublime Text 3

.p(0) : fatal error 100: cannot read from file: ".p"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

Compilation aborted.[Finished in 0.1s]



For people getting this error, you gotta save the file as .pwn first and then compile, then your problem will be solved!

Last edited by Bif; 02/04/2019 at 09:17 AM.
Bif is offline   Reply With Quote
Old 18/08/2019, 03:22 PM   #82
lephyak
Little Clucker
 
Join Date: Jul 2019
Posts: 1
Reputation: 0
Default Re: PAWN for SA-MP in Sublime Text 3

Quote:
Originally Posted by Shomy1995 View Post
Hey everyone! I followed this tutorial and did everything exactly as said. Now I tried loading my .pwn file and building it, and I am getting the following error:
Code:
C:\Users\MyName\Desktop\samp03DL\pawno\include\sscanf2.inc(30) : fatal error 111: user error: Please include <a_npc> or <a_samp> first.
I have both files included in my file like this:
Code:
#include <a_samp>
#include <a_npc>
and the file works perfectly with normal pawn, no errors. Notice: I am using "Faster Pawno" https://github.com/pawn-lang/compiler

I am using SSCANF2 Version: MPL 1.1, this is on line 30 in that file:
Code:
#if defined _inc_a_npc
	#pragma library sscanf
#elseif !defined _inc_a_samp
// LINE 30	#error Please include <a_npc> or <a_samp> first.
#endif
Can someone help me please? Thanks in advance!

EDIT: Solved! Apparently doesn't work with Faster Pawno
It works but u have to edit your build system and add -Z+

for example i have this
Code:
{
	"cmd": ["pawncc.exe", "-i includes", "$file", "-;+", "-Z+"],
	"path": "C:/Users/Leonardo Fierro/AppData/Roaming/Sublime Text 3/SAMP Compiler/pawno" 
}
lephyak 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
Pawn Compiler in Sublime Text 2 Conroy Tutorials 18 17/12/2016 07:44 AM
Sublime text and pawn? danielpalade Scripting Help 1 12/09/2016 12:42 AM
[Tool/Web/Other] Sublime Text 2 with PAWN included Andre02 Tools and Files 8 14/08/2016 12:08 PM
[Tutorial] PAWN for SA-MP in Sublime Text 2 Macluawn Tutorials 69 15/08/2015 03:04 AM


All times are GMT. The time now is 07:40 AM.


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