How to resolve that
#1

Hello
I try to add the S32_House system but here are the errors :


From SSCANF INC

Deleted line 30 : #error sscanf (possibly the PAWN version) already defined.

In my gamemode :
#include <sscanf2>
#include <S32_House>


Errors :
Код:
S:\Serveur\GTA (SAMP)\Core\pawno\include\sscanf2.inc(43) : warning 235: public function lacks forward declaration (symbol "OnFilterScriptInit")
S:\Serveur\GTA (SAMP)\Core\pawno\include\sscanf2.inc(46) : error 017: undefined symbol "GetMaxPlayers"
S:\Serveur\GTA (SAMP)\Core\pawno\include\sscanf2.inc(46) : error 029: invalid expression, assumed zero
S:\Serveur\GTA (SAMP)\Core\pawno\include\sscanf2.inc(46) : warning 215: expression has no effect
S:\Serveur\GTA (SAMP)\Core\pawno\include\sscanf2.inc(47) : error 017: undefined symbol "funcidx"
S:\Serveur\GTA (SAMP)\Core\pawno\include\sscanf2.inc(47) : warning 215: expression has no effect
S:\Serveur\GTA (SAMP)\Core\pawno\include\sscanf2.inc(47) : error 001: expected token: ";", but found ")"
S:\Serveur\GTA (SAMP)\Core\pawno\include\sscanf2.inc(47) : error 029: invalid expression, assumed zero
S:\Serveur\GTA (SAMP)\Core\pawno\include\sscanf2.inc(47) : fatal error 107: too many error messages on one line
btw : My line 30 of S32_House.inc is empty
Код:
L27#if !defined _inc_foreach
L28	#include <foreach>
L29#endif
L30
That's impossible to understand...

My includes are in this order :

Код:
#include <sscanf2>
#include <S32_House>
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
#include <a_samp>
#include <zcmd>
//#include <sscanf2>
#include <foreach>
#include <a_mysql>
#include <a_players>
#include <SII>
#include <streamer>
#include <F_Streamer>
Reply
#2

U include sscanf2 2 time...... Remove one

Edit.my bad one is Commented
Reply
#3

I don't ... I put // before the second one
Reply
#4

try
Код:
#include <a_samp>
#include <S32_House>
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
#include <zcmd>
//#include <sscanf2>
#include <foreach>
#include <a_mysql>
#include <a_players>
#include <SII>
#include <streamer>
#include <F_Streamer>
Reply
#5

Best answer since i've posted!

Now :

Код:
S:\Serveur\GTA (SAMP)\Core\pawno\include\YSI\y_hooks.inc(884) : warning 219: local variable "row" shadows a variable at a preceding level
S:\Serveur\GTA (SAMP)\Core\pawno\include\zcmd.inc(18) : warning 201: redefinition of constant/macro (symbol "COMMAND:%1(%2)")
S:\Serveur\GTA (SAMP)\Core\pawno\include\zcmd.inc(21) : warning 201: redefinition of constant/macro (symbol "CMD:%1(%2)")
S:\Serveur\GTA (SAMP)\Core\gamemodes\iRP9.pwn(4452) : error 021: symbol already defined: "GetName"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Reply
#6

Also remove include<zcmd> cuz its also included in house invlude
Reply
#7

Код:
S:\Serveur\GTA (SAMP)\Core\pawno\include\YSI\y_hooks.inc(884) : warning 219: local variable "row" shadows a variable at a preceding level
at ur gamemode or filterscript.. press control + H with whole word option ... search "row" and replace with "row2"
Код:
S:\Serveur\GTA (SAMP)\Core\gamemodes\iRP9.pwn(4452) : error 021: symbol already defined: "GetName"
you did 2 times new getname ... bleh :O

and about zcmd, i think you inserted zcmd inc to ur ur filterscript/include or somewhere...
Reply
#8

Thanks !! Most of errors are now gone, ever those 2 warnings

Код:
S:\Serveur\GTA (SAMP)\Core\pawno\include\zcmd.inc(18) : warning 201: redefinition of constant/macro (symbol "COMMAND:%1(%2)")
S:\Serveur\GTA (SAMP)\Core\pawno\include\zcmd.inc(21) : warning 201: redefinition of constant/macro (symbol "CMD:%1(%2)")
Comes from no where!! ?

Код:
L16 #define COMMAND:%1(%2)          \
			forward cmd_%1(%2); \
			public cmd_%1(%2)		
			
#define CMD:%1(%2) \
L21			COMMAND:%1(%2)
Reply
#9

it says it defined multi times COMMAND: & CMD: .. check your "S32_House" & fs to fix.
Reply
#10

Didn't find, nothing like this in my fs or in S32_House
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)