sscanf error problem.
#1

hi there,

I've got a problem with sscanf2.inc.

Код:
D:\Program Files\NextGen Streetracers\pawno\include\sscanf2.inc(30) : fatal error 111: user error: Please include <a_npc> or <a_samp> first.


Compilation aborted.

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


1 Error.
it outputs that error when I replace the pawnc.dll and pawncc.exe to Zeex's pawno patch.

Zeex's patch I downloaded.

now, I've already tried removing these 2 lines from sscanf2.inc.

pawn Код:
#elseif !defined _inc_a_samp
    #error Please include <a_npc> or <a_samp> first.
but that gives me another 18 errors.

is there any way to fix this? I need Zeex's patch for the multi-dimensional array stuff.
Reply
#2

You sure u have #include <a_samp> at the FULL TOP of the script?
Reply
#3

Yep I have, lol.

I don't have it ontop of my includes, but is that really necessary? I've got it ontop of my Gamemode.
Reply
#4

err bump?
Reply
#5

The first line of your script should be #include <a_samp>. You are most likely defining it AFTER including sscanf.

Your script:
pawn Код:
#include <sscanf2>
//Further down...
#include <a_samp>
Should be:
pawn Код:
#include <a_samp>
//Further down.. preferably right underneath a_samp.
#include <sscanf2>
Reply
#6

nope, I've got it like:

pawn Код:
#include <a_samp>
#include <sscanf2>
#include <zcmd>
#include <progress>
#include <streamer>
#include <foreach>
#include <a_sampdb>
should work fine :/
Reply
#7

What are the other 18 errors when you remove the lines?
Reply
#8

Код:
D:\Program Files\NextGen Streetracers\pawno\include\foreach.inc(467) : error 021: symbol already defined: "Player@YSII_Cg"
D:\Program Files\NextGen Streetracers\pawno\include\foreach.inc(471) : error 021: symbol already defined: "Bot@YSII_Cg"
D:\Program Files\NextGen Streetracers\pawno\include\foreach.inc(811) : error 021: symbol already defined: "Itter_RandomInternal"
D:\Program Files\NextGen Streetracers\pawno\include\foreach.inc(849) : error 021: symbol already defined: "Itter_FreeInternal"
D:\Program Files\NextGen Streetracers\pawno\include\foreach.inc(878) : error 021: symbol already defined: "Itter_AddInternal"
D:\Program Files\NextGen Streetracers\pawno\include\foreach.inc(912) : error 021: symbol already defined: "Itter_RemoveInternal"
D:\Program Files\NextGen Streetracers\pawno\include\foreach.inc(935) : error 021: symbol already defined: "Itter_SafeRemoveInternal"
D:\Program Files\NextGen Streetracers\pawno\include\foreach.inc(969) : error 021: symbol already defined: "Itter_ContainsInternal"
D:\Program Files\NextGen Streetracers\pawno\include\foreach.inc(988) : error 021: symbol already defined: "Itter_ClearInternal"
D:\Program Files\NextGen Streetracers\pawno\include\foreach.inc(1013) : error 021: symbol already defined: "Itter_InitInternal"
D:\Program Files\NextGen Streetracers\pawno\include\foreach.inc(1039) : error 021: symbol already defined: "Itter_PrevInternal"
D:\Program Files\NextGen Streetracers\pawno\include\HiStreet\HS_Variables.inc(181) : warning 213: tag mismatch
D:\Program Files\NextGen Streetracers\pawno\include\HiStreet\HS_Variables.inc(181) : warning 213: tag mismatch
D:\Program Files\NextGen Streetracers\pawno\include\HiStreet\HS_Variables.inc(181) : warning 213: tag mismatch
D:\Program Files\NextGen Streetracers\pawno\include\getvehiclename.inc(23) : error 021: symbol already defined: "VehicleFriendlyNames"
D:\Program Files\NextGen Streetracers\pawno\include\getvehiclename.inc(55) : error 021: symbol already defined: "GetVehicleNameByID"
D:\Program Files\NextGen Streetracers\pawno\include\getvehiclename.inc(71) : error 021: symbol already defined: "GetVehicleModelFromName"
D:\Program Files\NextGen Streetracers\pawno\include\getvehiclename.inc(82) : error 021: symbol already defined: "GetVehicleNameByModel"
D:\Program Files\NextGen Streetracers\gamemodes\NGStreet.pwn(39) : error 021: symbol already defined: "Itter_OnGameModeInit"
D:\Program Files\NextGen Streetracers\gamemodes\NGStreet.pwn(202) : error 021: symbol already defined: "Itter_OnPlayerConnect"
D:\Program Files\NextGen Streetracers\gamemodes\NGStreet.pwn(249) : error 021: symbol already defined: "Itter_OnPlayerDisconnect"
Pawn compiler 3.2.3664.samp	 	 	Copyright © 1997-2006, ITB CompuPhase


18 Errors.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)