sscanf error problem. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: sscanf error problem. (
/showthread.php?tid=491112)
sscanf error problem. -
Smileys - 29.01.2014
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.
Re: sscanf error problem. -
TahaAsif12 - 29.01.2014
You sure u have #include <a_samp> at the FULL TOP of the script?
Re: sscanf error problem. -
Smileys - 29.01.2014
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.
Re: sscanf error problem. -
Smileys - 30.01.2014
err bump?
Re: sscanf error problem. -
Threshold - 30.01.2014
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>
Re: sscanf error problem. -
Smileys - 30.01.2014
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 :/
Re: sscanf error problem. -
Threshold - 30.01.2014
What are the other 18 errors when you remove the lines?
Re: sscanf error problem. -
Smileys - 30.01.2014
Код:
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.