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: 5
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
Old 25/11/2019, 02:09 AM   #83
Markus_Bergman
Little Clucker
 
Markus_Bergman's Avatar
 
Join Date: Sep 2011
Posts: 16
Reputation: 0
Default Re: PAWN for SA-MP in Sublime Text 3

Go to Preferences>Package Control and choose Install Package and wait until a new window pops up
#

Preferences>Package lost!!
__________________
Wissen is Macht..
Markus_Bergman is offline   Reply With Quote
Old 10/01/2020, 01:17 PM   #84
natovan
Little Clucker
 
natovan's Avatar
 
Join Date: Nov 2019
Posts: 31
Reputation: 0
Default Re: PAWN for SA-MP in Sublime Text 3

Thanks for build system tutorial. Compiles for 0.3 secs.
natovan is offline   Reply With Quote
Old 13/01/2020, 09:54 PM   #85
mtfz00
Little Clucker
 
Join Date: Jan 2020
Posts: 6
Reputation: 0
Default Re: PAWN for SA-MP in Sublime Text 3

PHP Code:
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase

Usage
:   pawncc <filename> [filename...] [options]

Options:
         -
A<num>  alignment in bytes of the data segment and the stack
         
-a       output assembler code
         
-C[+/-]  compact encoding for output file (default=+)
         -
c<namecodepage name or numbere.g1252 for Windows Latin-1
         
-Dpath   active directory path
         
-d<num>  debugging level (default=-d1)
             
0    no symbolic informationno run-time checks
             1    run
-time checksno symbolic information
             2    full debug information 
and dynamic checking
             3    same 
as -d2but implies -O0
         
-e<nameset name of error file (quiet compile)
         -
H<hwndwindow handle to send a notification message on finish
         
-i<namepath for include files
         
-l       create list file (preprocess only)
         -
o<nameset base name of (P-codeoutput file
         
-O<num>  optimization level (default=-O1)
             
0    no optimization
             1    JIT
-compatible optimizations only
             2    full optimizations
         
-p<nameset name of "prefix" file
         
-r[namewrite cross reference report to console or to specified file
         
-S<num>  stack/heap size in cells (default=4096)
         -
s<num>  skip lines from the input file
         
-t<num>  TAB indent size (in character positions, default=8)
         -
v<num>  verbosity level0=quiet1=normal2=verbose (default=1)
         -
w<num>  disable a specific warning by its number
         
-X<num>  abstract machine size limit in bytes
         
-XD<num> abstract machine data/stack size limit in bytes
         
-\       use '\' for escape characters
         -^       use '
^' for escape characters
         -;[+/-]  require a semicolon to end each statement (default=-)
         -([+/-]  require parantheses for function invocation (default=-)
         sym=val  define constant "sym" with value "val"
         sym=     define constant "sym" with value 0

Options may start with a dash or a slash; the options "-d0" and "/d0" are
equivalent.

Options with a value may optionally separate the value from the option letter
with a colon (":") or an equal sign ("="). That is, the options "-d0", "-d=0"
and "-d:0" are all equivalent.
[Finished in 0.1s with exit code 3] 


When compiling, the .amx file is not created and this message appears.
mtfz00 is offline   Reply With Quote
Old 16/04/2020, 05:08 PM   #86
HoangNam
Big Clucker
 
HoangNam's Avatar
 
Join Date: Jun 2015
Location: Vietnam
Posts: 140
Reputation: 13
Default Re: PAWN for SA-MP in Sublime Text 3

Coding with Sublime Text makes me feel classy
HoangNam 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 01:49 PM.


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