Raised This Month: $ Target: $400
 0% 

Initialization data exceeds declared value


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
EpicKiller
Senior Member
Join Date: Jun 2014
Location: Constanta, Romania
Old 05-20-2016 , 10:16   Initialization data exceeds declared value
Reply With Quote #1

Code:
//// amx_who.sma
// E:\compiler 1.8.2\addons\amxmodx\scripting\amx_who.sma(19) : error 018: initialization data exceeds declared size
// E:\compiler 1.8.2\addons\amxmodx\scripting\amx_who.sma(28) : error 010: invalid function or declaration
// E:\compiler 1.8.2\addons\amxmodx\scripting\amx_who.sma(41) : error 018: initialization data exceeds declared size
// E:\compiler 1.8.2\addons\amxmodx\scripting\amx_who.sma(50) : error 010: invalid function or declaration
// E:\compiler 1.8.2\addons\amxmodx\scripting\amx_who.sma(90) : error 001: expected token: ";", but found "}"
// E:\compiler 1.8.2\addons\amxmodx\scripting\amx_who.sma(101) : warning 203: symbol is never used: "cmdSayWho"
//
// 5 Errors.
// Could not locate output file E:\compiler 1.8.2\addons\amxmodx\scripting\compiled\amx_who.amx (compile failed).
//
// Compilation Time: 0.06 sec
// ----------------------------------------
I spent quite some time tryin' to debug this. But it beats me. I can't figure out what's wrong. Give me a hand, please!

PHP Code:
#include < amxmodx >
#include < amxmisc >

#pragma semicolon 1

#define MAX_GROUPS 18

new sNames[MAX_GROUPS][] = 
{
    
"Founder + |VIP|",
    
"Founder",
    
"Owner + |VIP|",
    
"Owner",
    
"Co-Owner + |VIP|",
    
"Co-Owner",
    
"God + |VIP|",
    
"God",
    
"Super-Moderator + |VIP|",
    
"Super-Moderator",
    
"Moderator + |VIP|",
    
"Moderator",
    
"Administrator + |VIP|",
    
"Administrator",
    
"Helper + |VIP|",
    
"Helper",
    
"|VIP|",
    
"Slot"
};

new 
sFlags[MAX_GROUPS][] = 
{
    
"abcdefghijklmnopqrstuv",    // Founder + VIP
    
"abcdefghijklmnopqrsuv",    // Founder
    
"abcdefghijkmnopqrstu",        // Owner + VIP
    
"abcdefghijkmnopqrsu",        // Owner
    
"abcdefijmnopqrstu",        // Co-Owner + VIP
    
"abcdefijmnopqrsu",            // Co-Owner
    
"abcdefijmnopqrst",            // God + VIP
    
"abcdefijmnopqrs",            // God
    
"abcdefijmnopqrt",            // Super-Moderator + VIP
    
"abcdefijmnopqr",            // Super-Moderator
    
"abcdefijmnopqt",            // Moderator + VIP
    
"abcdefijmnopq",            // Moderator
    
"abcdefijmnot",                // Administrator + VIP
    
"abcdefijmno",                // Administrator
    
"abceijmnot",                // Helper + VIP
    
"abceijmno",                // Helper
    
"abt",                        // VIP
    
"ab"                        // Slot
};

new 
sFlagsValue[MAX_GROUPS];

public 
plugin_init()
{
    
register_plugin("admin_who""1.0""rock!");
    
    
register_concmd("admin_who""cmdWho"0);
    
    
register_clcmd("say who""cmdSayWho"0);
    
register_clcmd("say admin""cmdSayWho"0);
    
register_clcmd("say /who""cmdSayWho"0);
    
register_clcmd("say /admin""cmdSayWho"0);
    
    for(new 
0MAX_GROUPSi++)
        
sFlagsValue[i] = read_flags(sFlags[i]);
}

public 
cmdWho(id)
{
    new 
iPlayers[32];
    new 
iNum;
    new 
iClient;
    new 
sName[32];
    
    
get_players(iPlayersiNum);
    
    
client_print(id"----- www..ro -----");
    
    for(new 
0MAX_GROUPSi++)
    {
        
console_print(id"~~~~[%d]%s~~~~", (1), sNames[i]);
        
        for(new 
0iNum; ++a)
        {
            
iClient iPlayers[a];
            
            
get_user_name(iClientsNamecharsmax(sName));
            
            if(
get_user_flags(iClient) == sFlagsValue[i])
                
console_print(id"%s"sName);
        }
    }
    
    
client_print(id"----- www..ro -----");
    
    return 
PLUGIN_HANDLED;
}

public 
cmdSayWho(id)
{
    
client_print(idprint_chat"* Verifica-ti consola!");
    
    
cmdWho(id);

__________________
~ Swiftly and with style ~
EpicKiller is offline
Send a message via Yahoo to EpicKiller Send a message via Skype™ to EpicKiller
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:41.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode