Wierd sscanf error..
#1

This is my error, how can I fix this?

Код:
C:\Users\daniel\Documents\PAWNO\include\sscanf2.inc(30) : fatal error 111: user error: Please include <a_npc> or <a_samp> first.


Compilation aborted.

Pawn compiler 3.10.20150412	 	 	Copyright © 1997-2006, ITB CompuPhase
And here is my includes

Код:
#include <a_samp>
#include <a_mysql>
#include <zcmd>
#include <sscanf2>
#include <foreach>
Reply
#2

Two options:
1) add -Z+ flag to your compiler options
2) Wait 15 minutes for me to push a patch

#e: Even more
3) Add
pawn Код:
#pragma compat
Reply
#3

Quote:
Originally Posted by danielpalade
Посмотреть сообщение
This is my error, how can I fix this?

Код:
C:\Users\daniel\Documents\PAWNO\include\sscanf2.inc(30) : fatal error 111: user error: Please include <a_npc> or <a_samp> first.


Compilation aborted.

Pawn compiler 3.10.20150412	 	 	Copyright © 1997-2006, ITB CompuPhase
And here is my includes

Код:
#include <a_samp>
#include <a_mysql>
#include <zcmd>
#include <sscanf2>
#include <foreach>
C:\Users\daniel\Documents\PAWNO\include\sscanf2.in c(30) : fatal error 111: user error: Please include ***<a_npc>*** ***or <a_samp>*** first.

Just try to add the [#include <a_npc>] after [#include <a_samp>].
Reply
#4

Quote:
Originally Posted by Misiur
Посмотреть сообщение
Two options:
1) add -Z+ flag to your compiler options
2) Wait 15 minutes for me to push a patch

#e: Even more
3) Add
pawn Код:
#pragma compat
And where exactly do I need to do the flag thingy?
Reply
#5

Quote:
Originally Posted by FernandoLight
Посмотреть сообщение
C:\Users\daniel\Documents\PAWNO\include\sscanf2.in c(30) : fatal error 111: user error: Please include ***<a_npc>*** ***or <a_samp>*** first.

Just try to add the [#include <a_npc>] after [#include <a_samp>].
That won't work
Reply
#6

Depends on your setup, but maybe the pragma option will be better for you.
Reply
#7

Quote:
Originally Posted by Misiur
Посмотреть сообщение
Depends on your setup, but maybe the pragma option will be better for you.
Adding the pragma above the includes won't work either
Reply
#8

Oh, Zeex added it recently. Are you using notepad++, sublime, or something like that? Or just regular pawno with pawncc replaced?
Reply
#9

Quote:
Originally Posted by Misiur
Посмотреть сообщение
Oh, Zeex added it recently. Are you using notepad++, sublime, or something like that? Or just regular pawno with pawncc replaced?
I'm using notepad++.
Reply
#10

If you are interested, I fixed that bug.

https://github.com/Misiur/YSI-Includ...b117c379becbac

If not: You've followed https://sampforum.blast.hk/showthread.php?tid=174046 this tutorial? Ok, so there's this part
Quote:

"C:\Program Files (x86)\PAWN Compiler\pawncc.exe" "$(FILE_NAME)" -; -(

add
Quote:

"C:\Program Files (x86)\PAWN Compiler\pawncc.exe" "$(FILE_NAME)" -; -( -Z+

Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)