Errors.
#1

pawn Код:
E:\New folder\New folder\pawno\include\SSGANG\Core\Gangs\GangData.pwn(32) : error 018: initialization data exceeds declared size
E:\New folder\New folder\pawno\include\SSGANG\Database\SQLite\Commands\DBGangcmds.pwn(122) : error 035: argument type mismatch (argument 1)
E:\New folder\New folder\pawno\include\SSGANG\Database\SQLite\Commands\DBGangcmds.pwn(146) : error 035: argument type mismatch (argument 1)
E:\New folder\New folder\pawno\include\SSGANG\Database\SQLite\Commands\DBGangcmds.pwn(261) : error 035: argument type mismatch (argument 1)
pawn Код:
if(sscanf(params,"u",giveid)) return SendClientMessage(playerid,-1,""RED"Error:"GREY"/demote playerid");
pawn Код:
if(sscanf(params,"u",giveid)) return SendClientMessage(playerid,-1,""RED"Error:"GREY"/setleader playerid");
pawn Код:
if(sscanf(params,"u",giveid))
        return SendClientMessage(playerid,-1,""RED"ERROR:"GREY"/gkick playerid");
what the problem?

pawn Код:
new
    GInfo[MAX_PLAYERS][G_USER_DATA],
    Iterator:WarArenas<MAX_GANG_WARS>,
    bool:ActiveWar[MAX_GANG_WARS];
> first one in errors.
Reply
#2

For the sscanf, make sure that you're defining the colors like this.
PHP код:
#define COL_RED             "{FF002B}" 
Because SendClientMessage doesn't read HEX.

For example:
PHP код:
#define COL_RED             "{FF002B}"
#define COL_BROWN           "{6B3F34}"
if(sscanf(params,"u",giveid)) return SendClientMessage(playerid, -1,""COL_RED"Error:"COL_BROWN"/demote playerid"); 
With
Код:
E:\New folder\New folder\pawno\include\SSGANG\Core\Gangs\GangData.pwn(32) : error 018: initialization data exceeds declared size
What line exactly has the error and where are you using it?
Reply
#3

Quote:
Originally Posted by Tass007
Посмотреть сообщение
For the sscanf, make sure that you're defining the colors like this.
PHP код:
#define COL_RED             "{FF002B}" 
Because SendClientMessage doesn't read HEX.

For example:
PHP код:
#define COL_RED             "{FF002B}"
#define COL_BROWN           "{6B3F34}"
if(sscanf(params,"u",giveid)) return SendClientMessage(playerid, -1,""COL_RED"Error:"COL_BROWN"/demote playerid"); 
With
Код:
E:\New folder\New folder\pawno\include\SSGANG\Core\Gangs\GangData.pwn(32) : error 018: initialization data exceeds declared size
What line exactly has the error and where are you using it?
pawn Код:
new
    GInfo[MAX_PLAYERS][G_USER_DATA],
    Iterator:WarArenas<MAX_GANG_WARS>,
    bool:ActiveWar[MAX_GANG_WARS];
Reply
#4

Quote:
Originally Posted by Tass007
Посмотреть сообщение
For the sscanf, make sure that you're defining the colors like this.
PHP код:
#define COL_RED             "{FF002B}" 
Because SendClientMessage doesn't read HEX.

For example:
PHP код:
#define COL_RED             "{FF002B}"
#define COL_BROWN           "{6B3F34}"
if(sscanf(params,"u",giveid)) return SendClientMessage(playerid, -1,""COL_RED"Error:"COL_BROWN"/demote playerid"); 
same errors. and got it on top.
Reply
#5

I need the specific line. Not three.

Well then that's not the correct line, that works fine in my script.
Reply
#6

PHP код:
E:\New folder\New folder\pawno\include\SSGANG\Core\Gangs\GangData.pwn(32) : error 018initialization data exceeds declared size
E
:\New folder\New folder\pawno\include\SSGANG\Database\SQLite\Commands\DBGangcmds.pwn(122) : error 035argument type mismatch (argument 1)
E:\New folder\New folder\pawno\include\SSGANG\Database\SQLite\Commands\DBGangcmds.pwn(146) : error 035argument type mismatch (argument 1)
E:\New folder\New folder\pawno\include\SSGANG\Database\SQLite\Commands\DBGangcmds.pwn(261) : error 035argument type mismatch (argument 1)
E:\New folder\New folder\pawno\include\SSGANG\Core\Gangs\GCmds.pwn(51) : error 035argument type mismatch (argument 1)
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase 
It's the same lines i gave you.
Reply
#7

With this error.
Код:
E:\New folder\New folder\pawno\include\SSGANG\Core\Gangs\GangData.pwn(32) : error 018: initialization data exceeds declared size
You're giving me four different linessss.

Код:
new 
	GInfo[MAX_PLAYERS][G_USER_DATA],
	Iterator:WarArenas<MAX_GANG_WARS>,
    bool:ActiveWar[MAX_GANG_WARS];
What one is it?
Reply
#8

Quote:
Originally Posted by Tass007
Посмотреть сообщение
With this error.
Код:
E:\New folder\New folder\pawno\include\SSGANG\Core\Gangs\GangData.pwn(32) : error 018: initialization data exceeds declared size
You're giving me four different linessss.

Код:
new 
	GInfo[MAX_PLAYERS][G_USER_DATA],
	Iterator:WarArenas<MAX_GANG_WARS>,
    bool:ActiveWar[MAX_GANG_WARS];
What one is it?
PHP код:
    Iterator:WarArenas<MAX_GANG_WARS>, 
is
PHP код:
[code]E:\New folder\New folder\pawno\include\SSGANG\Core\Gangs\GangData.pwn(32) : error 018initialization data exceeds declared size[/code
Код:
E:\New folder\New folder\pawno\include\SSGANG\Database\SQLite\Commands\DBGangcmds.pwn(122) : error 035: argument type mismatch (argument 1)
->
PHP код:
 if(sscanf(params,"u",giveid)) return SendClientMessage(playerid,-1,""RED"Error:"GREY"/setleader playerid"); 
Код:
E:\New folder\New folder\pawno\include\SSGANG\Database\SQLite\Commands\DBGangcmds.pwn(146) : error 035: argument type mismatch (argument 1)
->
PHP код:
if(sscanf(params,"u",giveid)) return SendClientMessage(playerid,-1,""CD_RED"Error:"GREY"/demote playerid"); 
Код:
E:\New folder\New folder\pawno\include\SSGANG\Database\SQLite\Commands\DBGangcmds.pwn(261) : error 035: argument type mismatch (argument 1)
->
PHP код:
 if(sscanf(params,"u",giveid))
        return 
SendClientMessage(playerid,-1,""RED"ERROR:"GREY"/gkick playerid"); 

Код:
E:\New folder\New folder\pawno\include\SSGANG\Core\Gangs\GCmds.pwn(51) : error 035: argument type mismatch (argument 1)
->
PHP код:
 if(sscanf(params,"u",giveid)) return SendClientMessage(playerid,-1,""RED"Error:"GREY"/ginvite playerid"); 
Reply
#9

SendClientMessage(playerid,-1,"{ff0000}ERROR:{D6CDCB}/gkick playerid");

to all who are the same put the code there to be sure there is no error, instead of color names to put their code
Reply
#10

Thanks fixed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)