AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   error 052: multi-dimensional arrays must be fully initialized (https://forums.alliedmods.net/showthread.php?t=229279)

rocofelu 11-04-2013 15:10

error 052: multi-dimensional arrays must be fully initialized
 
I have a problem, and i don't know how to fix it.
PHP Code:

error 052multi-dimensional arrays must be fully initialized 

[IMG]http://img820.**************/img820/9940/859u.png[/IMG]

Source:
PHP Code:

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Who meniu"
#define VERSION "1.0"
#define AUTHOR "Askwrite"

#define GRUPURI 39
new const TITLU[] = " \w Nume admin    \r | \w Grad \r | \w SPECIAL ACCES ";
new const  
IESIRE[] = "\yIesire.^n";
new const 
NOADMINS[] = "\y Nu sunt admini online.";
#pragma semicolon 1

new g_NumeGradeGRUPURI ][ ] = {
    
    
"\y[\rDetinator \rTOTAL\y] \y| \rFULL ACCES",    
    
"\y[\rVeteran\y] \y| \rNU",
    
"\y[\rVeteran\y] \y| + \rHOOK",
    
"\y[\rVeteran\y] \y| + \rGRAB",
    
"\y[\rVeteran\y] \y| + \rHOOK+GRAB",    
    
"\y[\rMaresal\y] \y| \rNU",
    
"\y[\rMaresal\y] \y| + \rHOOK",
    
"\y[\rMaresal\y] \y| + \rGRAB",
    
"\y[\rMaresal\y] \y| + \rHOOK+GRAB",    
    
"\y[\rGeneral\y] \y| \rNU",
    
"\y[\rGeneral\y] \y| + \rHOOK",
    
"\y[\rGeneral\y] \y| + \rGRAB",
    
"\y[\rGeneral\y] \y| + \rHOOK+GRAB",
    
"\y[\rGeneral\y] \y| + \rT VOICE",
    
"\y[\rGeneral\y] \y| + \rHOOK+GRAB+T VOICE",    
    
"\y[\rColonel\y] \y| \rNU",
    
"\y[\rColonel\y] \y| + \rHOOK",
    
"\y[\rColonel\y] \y| + \rGRAB",
    
"\y[\rColonel\y] \y| + \rHOOK+GRAB",
    
"\y[\rColonel\y] \y| + \rT VOICE",
    
"\y[\rColonel\y] \y| + \rHOOK+GRAB+T VOICE",    
    
"\y[\rMaior\y] \y| \rNU",
    
"\y[\rMaior\y] \y| + \rHOOK",
    
"\y[\rMaior\y] \y| + \rGRAB",
    
"\y[\rMaior\y] \y| + \rHOOK+GRAB",
    
"\y[\rMaior\y] \y| + \rT VOICE",
    
"\y[\rMaior\y] \y| + \rHOOK+GRAB+T VOICE",    
    
"\y[\rSergent\y] \y| \rNU",
    
"\y[\rSergent\y] \y| + \rHOOK",
    
"\y[\rSergent\y] \y| + \rGRAB",
    
"\y[\rSergent\y] \y| + \rHOOK+GRAB",
    
"\y[\rSergent\y] \y| + \rT VOICE",
    
"\y[\rSergent\y] \y| + \rHOOK+GRAB+T VOICE",    
    
"\y[\rSoldat\y] \y| \rNU",
    
"\y[\rSoldat\y] \y| + \rHOOK",
    
"\y[\rSoldat\y] \y| + \rGRAB",
    
"\y[\rSoldat\y] \y| + \rHOOK+GRAB",
    
"\y[\rSoldat\y] \y| + \rT VOICE",
    
"\y[\rSoldat\y] \y| + \rHOOK+GRAB+T VOICE"

};

new 
g_FlaguriGRUPURI ][ ] = {
    
    
"abcdefghijklmnopqrstu",    
    
"abcdefgijmnops",
    
"abcdefgijmnopsr",
    
"abcdefgijmnopsq",
    
"abcdefgijmnopsrq",
    
"bcdefgijmnos",
    
"bcdefgijmnosr",
    
"bcdefgijmnosq",
    
"bcdefgijmnosrq",    
    
"bcdefgijmn",
    
"bcdefgijmnr",
    
"bcdefgijmnq",
    
"bcdefgijmnrq",
    
"bcdefgijmnsrq",    
    
"bcdefgijm",
    
"bcdefgijmr",
    
"bcdefgijmq",
    
"bcdefgijmrq",
    
"bcdefgijmsrq",    
    
"bcdefgij",
    
"bcdefgijr",
    
"bcdefgijq",
    
"bcdefgijrq",
    
"bcdefgijsrq",    
    
"bcdefij",
    
"bcdefijr",
    
"bcdefijq",
    
"bcdefijrq",
    
"bcdefijsrq",    
    
"bcef",
    
"bcefr",
    
"bcefq",
    
"bcefrq",
    
"bcefsrq"

};

new 
g_ValueFlaguriGRUPURI ];

public 
plugin_init( ) {
    
    
register_pluginPLUGINVERSIONAUTHOR );
    for( new 
GRUPURI i++ ) 
        
g_ValueFlaguri] = read_flagsg_Flaguri] );
    
    
register_clcmd("say /who""cmdWho");
    
register_clcmd("say_team /who""cmdWho");
    
register_clcmd("say /admin""cmdWho");
    
register_clcmd("say_team /admin""cmdWho");
    
register_clcmd("say /admins""cmdWho");
    
register_clcmd("say_team /admins""cmdWho");
    
register_clcmd("say /admini""cmdWho");
    
register_clcmd("say_team /admini""cmdWho");
}

public 
cmdWhoidpage ) {
    
    new 
MenuName64 ], MenuExitKey32 ];
    
    
formatexMenuNamesizeof MenuName ) -1"%s",  TITLU );
    
    
formatexMenuExitKeysizeof MenuExitKey ) -1"%s",  IESIRE );
    
    new 
menu menu_create(MenuName"InchidereMeniu");   
    
    if( 
AdminiON(    )  )
    {
        
        for( new 
0GRUPURIi++  )
        {
            
AdaugareAidmenu);
        }
    }
    else
    {
        
menu_additemmenuNOADMINS "1");
    }
    
    
menu_setprop(menuMPROP_EXITNAMEMenuExitKey );
    
    
menu_display(idmenupage);
}

public 
InchidereMeniu(idmenuitem) {
    if(
item == MENU_EXIT)
    {
        
menu_destroymenu );
        return 
1;
    }
    
    new 
data[6], iName[64];
    new 
iaccesscallback;
    
    
menu_item_getinfo(menuitemiaccessdata,5iName63callback);
    
    new 
key str_to_num(data);
    
    switch(
key)
    {
        case 
1,2,3,4,5,6,7:
        {
            
menu_destroymenu );
            return 
1;
        }
    }
    
    return 
0;
}

public 
AdaugareA( const id, const menu,  const group  ) {
    
    new 
AdminMenuMessage32 ][ 64 ],AdminMenuKey32 ][ 32 ], MenuKey 1;
    
    static 
Players32 ], NumPlayer;
    
get_playersPlayersNum"ch" );
    
    for( new 
Num x++ )
    {   
        
Player Players];
        if( 
get_user_flagsPlayer ) == g_ValueFlagurigroup ] )
        {
            
            
formatexAdminMenuMessageMenuKey ], sizeof AdminMenuMessage[ ] ) -1"\w%s \y- | \w%s%s  ",
            
gNamePlayer ), g_NumeGradegroup ], Player == id "\r *" "" );
            
            
formatexAdminMenuKeyMenuKey ], sizeof AdminMenuKey[ ] ) -1"%d"MenuKey );
            
            
MenuKey++;
        }
    }
    
    for( new 
MenuKey z++ )
    {
        
        
menu_additemmenuAdminMenuMessage], AdminMenuKey], );
    }
}

stock bool:AdminiON(    ) {
    new 
bool:AGasiti false;
    
    static 
Players32 ], NumPlayer;
    
get_playersPlayersNum"ch" );
    
    for( new 
Num x++ )
    {   
        
Player Players];
        for( new 
GRUPURI i++ )
        {
            if( 
AGasiti ) break;
            if( 
get_user_flagsPlayer ) == g_ValueFlaguri] )
            {
                
AGasiti true;
            }
        }
    }

    return 
AGasiti true false;
}

stock gNameid ) {
    
    new 
name32 ];
    
get_user_nameidnamesizeof name ) -);
    
    return 
name;


Where is the problem?

DWIGHTpN 11-04-2013 15:32

Re: error 052: multi-dimensional arrays must be fully initialized
 
Try this:
PHP Code:

#include <amxmodx> 
#include <amxmisc> 

#define PLUGIN "Who meniu" 
#define VERSION "1.0" 
#define AUTHOR "Askwrite" 

new const TITLU[] = " \w Nume admin    \r | \w Grad \r | \w SPECIAL ACCES "
new const  
IESIRE[] = "\yIesire.^n"
new const 
NOADMINS[] = "\y Nu sunt admini online."
#pragma semicolon 1 

new g_NumeGrade[ ][ ] = { 
     
    
"\y[\rDetinator \rTOTAL\y] \y| \rFULL ACCES",     
    
"\y[\rVeteran\y] \y| \rNU"
    
"\y[\rVeteran\y] \y| + \rHOOK"
    
"\y[\rVeteran\y] \y| + \rGRAB"
    
"\y[\rVeteran\y] \y| + \rHOOK+GRAB",     
    
"\y[\rMaresal\y] \y| \rNU"
    
"\y[\rMaresal\y] \y| + \rHOOK"
    
"\y[\rMaresal\y] \y| + \rGRAB"
    
"\y[\rMaresal\y] \y| + \rHOOK+GRAB",     
    
"\y[\rGeneral\y] \y| \rNU"
    
"\y[\rGeneral\y] \y| + \rHOOK"
    
"\y[\rGeneral\y] \y| + \rGRAB"
    
"\y[\rGeneral\y] \y| + \rHOOK+GRAB"
    
"\y[\rGeneral\y] \y| + \rT VOICE"
    
"\y[\rGeneral\y] \y| + \rHOOK+GRAB+T VOICE",     
    
"\y[\rColonel\y] \y| \rNU"
    
"\y[\rColonel\y] \y| + \rHOOK"
    
"\y[\rColonel\y] \y| + \rGRAB"
    
"\y[\rColonel\y] \y| + \rHOOK+GRAB"
    
"\y[\rColonel\y] \y| + \rT VOICE"
    
"\y[\rColonel\y] \y| + \rHOOK+GRAB+T VOICE",     
    
"\y[\rMaior\y] \y| \rNU"
    
"\y[\rMaior\y] \y| + \rHOOK"
    
"\y[\rMaior\y] \y| + \rGRAB"
    
"\y[\rMaior\y] \y| + \rHOOK+GRAB"
    
"\y[\rMaior\y] \y| + \rT VOICE"
    
"\y[\rMaior\y] \y| + \rHOOK+GRAB+T VOICE",     
    
"\y[\rSergent\y] \y| \rNU"
    
"\y[\rSergent\y] \y| + \rHOOK"
    
"\y[\rSergent\y] \y| + \rGRAB"
    
"\y[\rSergent\y] \y| + \rHOOK+GRAB"
    
"\y[\rSergent\y] \y| + \rT VOICE"
    
"\y[\rSergent\y] \y| + \rHOOK+GRAB+T VOICE",     
    
"\y[\rSoldat\y] \y| \rNU"
    
"\y[\rSoldat\y] \y| + \rHOOK"
    
"\y[\rSoldat\y] \y| + \rGRAB"
    
"\y[\rSoldat\y] \y| + \rHOOK+GRAB"
    
"\y[\rSoldat\y] \y| + \rT VOICE"
    
"\y[\rSoldat\y] \y| + \rHOOK+GRAB+T VOICE" 

}; 

new 
g_Flaguri[ ][ ] = { 
     
    
"abcdefghijklmnopqrstu",     
    
"abcdefgijmnops"
    
"abcdefgijmnopsr"
    
"abcdefgijmnopsq"
    
"abcdefgijmnopsrq"
    
"bcdefgijmnos"
    
"bcdefgijmnosr"
    
"bcdefgijmnosq"
    
"bcdefgijmnosrq",     
    
"bcdefgijmn"
    
"bcdefgijmnr"
    
"bcdefgijmnq"
    
"bcdefgijmnrq"
    
"bcdefgijmnsrq",     
    
"bcdefgijm"
    
"bcdefgijmr"
    
"bcdefgijmq"
    
"bcdefgijmrq"
    
"bcdefgijmsrq",     
    
"bcdefgij"
    
"bcdefgijr"
    
"bcdefgijq"
    
"bcdefgijrq"
    
"bcdefgijsrq",     
    
"bcdefij"
    
"bcdefijr"
    
"bcdefijq"
    
"bcdefijrq"
    
"bcdefijsrq",     
    
"bcef"
    
"bcefr"
    
"bcefq"
    
"bcefrq"
    
"bcefsrq" 

};

#define GRUPURI sizeof g_NumeGrade - 1
new g_ValueFlaguriGRUPURI ]; 

public 
plugin_init( ) { 
     
    
register_pluginPLUGINVERSIONAUTHOR ); 
    for( new 
GRUPURI i++ )  
        
g_ValueFlaguri] = read_flagsg_Flaguri] ); 
     
    
register_clcmd("say /who""cmdWho"); 
    
register_clcmd("say_team /who""cmdWho"); 
    
register_clcmd("say /admin""cmdWho"); 
    
register_clcmd("say_team /admin""cmdWho"); 
    
register_clcmd("say /admins""cmdWho"); 
    
register_clcmd("say_team /admins""cmdWho"); 
    
register_clcmd("say /admini""cmdWho"); 
    
register_clcmd("say_team /admini""cmdWho"); 


public 
cmdWhoidpage ) { 
     
    new 
MenuName64 ], MenuExitKey32 ]; 
     
    
formatexMenuNamesizeof MenuName ) -1"%s",  TITLU ); 
     
    
formatexMenuExitKeysizeof MenuExitKey ) -1"%s",  IESIRE ); 
     
    new 
menu menu_create(MenuName"InchidereMeniu");    
     
    if( 
AdminiON(    )  ) 
    { 
         
        for( new 
0GRUPURIi++  ) 
        { 
            
AdaugareAidmenu); 
        } 
    } 
    else 
    { 
        
menu_additemmenuNOADMINS "1"); 
    } 
     
    
menu_setprop(menuMPROP_EXITNAMEMenuExitKey ); 
     
    
menu_display(idmenupage); 


public 
InchidereMeniu(idmenuitem) { 
    if(
item == MENU_EXIT
    { 
        
menu_destroymenu ); 
        return 
1
    } 
     
    new 
data[6], iName[64]; 
    new 
iaccesscallback
     
    
menu_item_getinfo(menuitemiaccessdata,5iName63callback); 
     
    new 
key str_to_num(data); 
     
    switch(
key
    { 
        case 
1,2,3,4,5,6,7
        { 
            
menu_destroymenu ); 
            return 
1
        } 
    } 
     
    return 
0


public 
AdaugareA( const id, const menu,  const group  ) { 
     
    new 
AdminMenuMessage32 ][ 64 ],AdminMenuKey32 ][ 32 ], MenuKey 1
     
    static 
Players32 ], NumPlayer
    
get_playersPlayersNum"ch" ); 
     
    for( new 
Num x++ ) 
    {    
        
Player Players]; 
        if( 
get_user_flagsPlayer ) == g_ValueFlagurigroup ] ) 
        { 
             
            
formatexAdminMenuMessageMenuKey ], sizeof AdminMenuMessage[ ] ) -1"\w%s \y- | \w%s%s  "
            
gNamePlayer ), g_NumeGradegroup ], Player == id "\r *" "" ); 
             
            
formatexAdminMenuKeyMenuKey ], sizeof AdminMenuKey[ ] ) -1"%d"MenuKey ); 
             
            
MenuKey++; 
        } 
    } 
     
    for( new 
MenuKey z++ ) 
    { 
         
        
menu_additemmenuAdminMenuMessage], AdminMenuKey], ); 
    } 


stock bool:AdminiON(    ) { 
    new 
bool:AGasiti false
     
    static 
Players32 ], NumPlayer
    
get_playersPlayersNum"ch" ); 
     
    for( new 
Num x++ ) 
    {    
        
Player Players]; 
        for( new 
GRUPURI i++ ) 
        { 
            if( 
AGasiti ) break; 
            if( 
get_user_flagsPlayer ) == g_ValueFlaguri] ) 
            { 
                
AGasiti true
            } 
        } 
    } 

    return 
AGasiti true false


stock gNameid ) { 
     
    new 
name32 ]; 
    
get_user_nameidnamesizeof name ) -); 
     
    return 
name



fysiks 11-04-2013 23:18

Re: error 052: multi-dimensional arrays must be fully initialized
 
The error means exactly what it says. You have a multi-dimensional array declared that does not have all of it's elements initialized. So, you need to make sure all the arrays that you declare have all the required elements defined. The error also tells you where the error is so you should look there (line 95).

@DWIGHTpN, Your changes will fix the compile error but will cause a run-time error. So, in the long run, it is not a solution to the problem.

rocofelu 11-05-2013 08:27

Re: error 052: multi-dimensional arrays must be fully initialized
 
Quote:

Originally Posted by fysiks (Post 2057010)
The error means exactly what it says. You have a multi-dimensional array declared that does not have all of it's elements initialized. So, you need to make sure all the arrays that you declare have all the required elements defined. The error also tells you where the error is so you should look there (line 95).

@DWIGHTpN, Your changes will fix the compile error but will cause a run-time error. So, in the long run, it is not a solution to the problem.

Line 95 is this
Code:

};
:))
What is the problem?

YamiKaitou 11-05-2013 08:43

Re: error 052: multi-dimensional arrays must be fully initialized
 
You cannot partially define an array. You must define all elements. So if you are declaring an array of size 32, you must populate it with 32 items or 0 items when you define it.

rocofelu 11-05-2013 09:02

Re: error 052: multi-dimensional arrays must be fully initialized
 
This is the plugin fixed!
PHP Code:

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Who meniu"
#define VERSION "1.0"
#define AUTHOR "Askwrite"

#define GRUPURI 39
new const TITLU[] = " \w Nume admin    \r | \w Grad \r | \w SPECIAL ACCES ";
new const  
IESIRE[] = "\yIesire.^n";
new const 
NOADMINS[] = "\y Nu sunt admini online.";
#pragma semicolon 1

new g_NumeGradeGRUPURI ][ ] = {
    
    
"\y[\rDetinator \rTOTAL\y] \y| \rFULL ACCES",    
    
"\y[\rVeteran\y] \y| \rNU",
    
"\y[\rVeteran\y] \y| + \rHOOK",
    
"\y[\rVeteran\y] \y| + \rGRAB",
    
"\y[\rVeteran\y] \y| + \rHOOK+GRAB",    
    
"\y[\rMaresal\y] \y| \rNU",
    
"\y[\rMaresal\y] \y| + \rHOOK",
    
"\y[\rMaresal\y] \y| + \rGRAB",
    
"\y[\rMaresal\y] \y| + \rHOOK+GRAB",    
    
"\y[\rGeneral\y] \y| \rNU",
    
"\y[\rGeneral\y] \y| + \rHOOK",
    
"\y[\rGeneral\y] \y| + \rGRAB",
    
"\y[\rGeneral\y] \y| + \rHOOK+GRAB",
    
"\y[\rGeneral\y] \y| + \rT VOICE",
    
"\y[\rGeneral\y] \y| + \rHOOK+GRAB+T VOICE",    
    
"\y[\rColonel\y] \y| \rNU",
    
"\y[\rColonel\y] \y| + \rHOOK",
    
"\y[\rColonel\y] \y| + \rGRAB",
    
"\y[\rColonel\y] \y| + \rHOOK+GRAB",
    
"\y[\rColonel\y] \y| + \rT VOICE",
    
"\y[\rColonel\y] \y| + \rHOOK+GRAB+T VOICE",    
    
"\y[\rMaior\y] \y| \rNU",
    
"\y[\rMaior\y] \y| + \rHOOK",
    
"\y[\rMaior\y] \y| + \rGRAB",
    
"\y[\rMaior\y] \y| + \rHOOK+GRAB",
    
"\y[\rMaior\y] \y| + \rT VOICE",
    
"\y[\rMaior\y] \y| + \rHOOK+GRAB+T VOICE",    
    
"\y[\rSergent\y] \y| \rNU",
    
"\y[\rSergent\y] \y| + \rHOOK",
    
"\y[\rSergent\y] \y| + \rGRAB",
    
"\y[\rSergent\y] \y| + \rHOOK+GRAB",
    
"\y[\rSergent\y] \y| + \rT VOICE",
    
"\y[\rSergent\y] \y| + \rHOOK+GRAB+T VOICE",    
    
"\y[\rSoldat\y] \y| \rNU",
    
"\y[\rSoldat\y] \y| + \rHOOK",
    
"\y[\rSoldat\y] \y| + \rGRAB",
    
"\y[\rSoldat\y] \y| + \rHOOK+GRAB",
    
"\y[\rSoldat\y] \y| + \rT VOICE",
    
"\y[\rSoldat\y] \y| + \rHOOK+GRAB+T VOICE"

};

new 
g_Flaguri34 ][ ] = {
    
    
"abcdefghijklmnopqrstu",    
    
"abcdefgijmnops",
    
"abcdefgijmnopsr",
    
"abcdefgijmnopsq",
    
"abcdefgijmnopsrq",
    
"bcdefgijmnos",
    
"bcdefgijmnosr",
    
"bcdefgijmnosq",
    
"bcdefgijmnosrq",    
    
"bcdefgijmn",
    
"bcdefgijmnr",
    
"bcdefgijmnq",
    
"bcdefgijmnrq",
    
"bcdefgijmnsrq",    
    
"bcdefgijm",
    
"bcdefgijmr",
    
"bcdefgijmq",
    
"bcdefgijmrq",
    
"bcdefgijmsrq",    
    
"bcdefgij",
    
"bcdefgijr",
    
"bcdefgijq",
    
"bcdefgijrq",
    
"bcdefgijsrq",    
    
"bcdefij",
    
"bcdefijr",
    
"bcdefijq",
    
"bcdefijrq",
    
"bcdefijsrq",    
    
"bcef",
    
"bcefr",
    
"bcefq",
    
"bcefrq",
    
"bcefsrq"

};

new 
g_ValueFlaguriGRUPURI ];

public 
plugin_init( ) {
    
    
register_pluginPLUGINVERSIONAUTHOR );
    for( new 
GRUPURI i++ ) 
        
g_ValueFlaguri] = read_flagsg_Flaguri] );
    
    
register_clcmd("say /who""cmdWho");
    
register_clcmd("say_team /who""cmdWho");
    
register_clcmd("say /admin""cmdWho");
    
register_clcmd("say_team /admin""cmdWho");
    
register_clcmd("say /admins""cmdWho");
    
register_clcmd("say_team /admins""cmdWho");
    
register_clcmd("say /admini""cmdWho");
    
register_clcmd("say_team /admini""cmdWho");
}

public 
cmdWhoidpage ) {
    
    new 
MenuName64 ], MenuExitKey32 ];
    
    
formatexMenuNamesizeof MenuName ) -1"%s",  TITLU );
    
    
formatexMenuExitKeysizeof MenuExitKey ) -1"%s",  IESIRE );
    
    new 
menu menu_create(MenuName"InchidereMeniu");   
    
    if( 
AdminiON(    )  )
    {
        
        for( new 
0GRUPURIi++  )
        {
            
AdaugareAidmenu);
        }
    }
    else
    {
        
menu_additemmenuNOADMINS "1");
    }
    
    
menu_setprop(menuMPROP_EXITNAMEMenuExitKey );
    
    
menu_display(idmenupage);
}

public 
InchidereMeniu(idmenuitem) {
    if(
item == MENU_EXIT)
    {
        
menu_destroymenu );
        return 
1;
    }
    
    new 
data[6], iName[64];
    new 
iaccesscallback;
    
    
menu_item_getinfo(menuitemiaccessdata,5iName63callback);
    
    new 
key str_to_num(data);
    
    switch(
key)
    {
        case 
1,2,3,4,5,6,7:
        {
            
menu_destroymenu );
            return 
1;
        }
    }
    
    return 
0;
}

public 
AdaugareA( const id, const menu,  const group  ) {
    
    new 
AdminMenuMessage32 ][ 64 ],AdminMenuKey32 ][ 32 ], MenuKey 1;
    
    static 
Players32 ], NumPlayer;
    
get_playersPlayersNum"ch" );
    
    for( new 
Num x++ )
    {   
        
Player Players];
        if( 
get_user_flagsPlayer ) == g_ValueFlagurigroup ] )
        {
            
            
formatexAdminMenuMessageMenuKey ], sizeof AdminMenuMessage[ ] ) -1"\w%s \y- | \w%s%s  ",
            
gNamePlayer ), g_NumeGradegroup ], Player == id "\r *" "" );
            
            
formatexAdminMenuKeyMenuKey ], sizeof AdminMenuKey[ ] ) -1"%d"MenuKey );
            
            
MenuKey++;
        }
    }
    
    for( new 
MenuKey z++ )
    {
        
        
menu_additemmenuAdminMenuMessage], AdminMenuKey], );
    }
}

stock bool:AdminiON(    ) {
    new 
bool:AGasiti false;
    
    static 
Players32 ], NumPlayer;
    
get_playersPlayersNum"ch" );
    
    for( new 
Num x++ )
    {   
        
Player Players];
        for( new 
GRUPURI i++ )
        {
            if( 
AGasiti ) break;
            if( 
get_user_flagsPlayer ) == g_ValueFlaguri] )
            {
                
AGasiti true;
            }
        }
    }

    return 
AGasiti true false;
}

stock gNameid ) {
    
    new 
name32 ];
    
get_user_nameidnamesizeof name ) -);
    
    return 
name;


Thanks all :*
SPECIAL THANKS to falseq from ExtreamCS Community


All times are GMT -4. The time now is 23:16.

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