[Tutorial] PAWN for SA-MP in Sublime Text 3
#61

bump
PHP Code:
C:\Users\lenovo\AppData\Roaming\Sublime Text 3\Packages\User\pawno_compiler.sublime-build(1) : error 055start of function body without function header
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase


2 Errors
.
C:\Users\lenovo\AppData\Roaming\Sublime Text 3\Packages\User\pawno_compiler.sublime-build(4) : error 013no entry point (no public functions)
[
Finished in 1.1s with exit code 1]
[
cmd: ['pawncc.exe''-i includes''C:\\Users\\lenovo\\AppData\\Roaming\\Sublime Text 3\\Packages\\User\\pawno_compiler.sublime-build''-;+']]
[
dirC:\Users\lenovo\AppData\Roaming\Sublime Text 3\Packages\User]
[
pathC:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Skype\Phone\;] 
Reply
#62

still nothing?
Reply
#63

Quote:
Originally Posted by cengiz6155
View Post
Output:

907 Warnings.

warning 219: local variable "i" shadows a variable at a preceding level
warning 219: local variable "i" shadows a variable at a preceding level
warning 219: local variable "i" shadows a variable at a preceding level
warning 219: local variable "i" shadows a variable at a preceding level
warning 219: local variable "i" shadows a variable at a preceding level
warning 219: local variable "i" shadows a variable at a preceding level
warning 219: local variable "i" shadows a variable at a preceding level
warning 219: local variable "i" shadows a variable at a preceding level
warning 219: local variable "i" shadows a variable at a preceding level
warning 219: local variable "i" shadows a variable at a preceding level
warning 219: local variable "i" shadows a variable at a preceding level
warning 219: local variable "i" shadows a variable at a preceding level
warning 219: local variable "i" shadows a variable at a preceding level
warning 219: local variable "i" shadows a variable at a preceding level

Please, help.
how do you fix these warnings?
Reply
#64

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
Reply
#65

thanks for this!
Reply
#66

If you want to use faster pawn compiler without having to edit some libraries, use "-Z+" flag.
Reply
#67

Hi

How I can compile with -d3 ? Thanks
Reply
#68

.p(0) : fatal error 100: cannot read from file: ".p"
Pawn compiler 3.2.3664 Copyright © 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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)