[ ZE ] Ayuda rapida
#1
Hola e estado intentando agregar un arma aparte que trae y puse el plugin de disparar al zombie y gana dinero, pero al ponerlo dice igual Player Config alguien me ayuda? porque si le pongo el formatex no sirve el mod despues

Menu original
Código PHP:
public open_game_menu(id)
{
    static 
menustring[128]
    
    
formatex(stringsizeof(string), "%L"OFFICIAL_LANG"GAME_MENU_NAME")
    
menu menu_create(string"gamem_handle")
    
    
// Enable Equipment Menu
    
formatex(stringsizeof(string), "%L"OFFICIAL_LANG"EQUIPMENT_NAME")
    
menu_additem(menustring"1"0)
    
    
// Game Infomation
    
formatex(stringsizeof(string), "%L"OFFICIAL_LANG"GAMEINFO_NAME")
    
menu_additem(menustring"2"0)
    
    
// Game Infomation
    
formatex(stringsizeof(string), "%L"OFFICIAL_LANG"PCONFIG_NAME")
    
menu_additem(menustring"3"0)    
    
    
menu_setprop(menuMPROP_EXITMEXIT_ALL)
    
menu_display(idmenu0)
}

public 
gamem_handle(idmenuitem)
{
    if(!
is_user_connected(id))
        return
    
    if(
item == MENU_EXIT)
    {
        
menu_destroy(menu)
        return
    }
    
    new 
data[6], szName[64];
    new 
accesscallback;
    
    
menu_item_getinfo(menuitemaccessdata,charsmax(data), szName,charsmax(szName), callback);
    
    new 
key str_to_num(data);
    
    switch(
key)
    {
        case 
1// Equipment
        
{
            
g_showmenu[id] = true
            client_printc
(id"!g[Zombie Escape]!n %L"OFFICIAL_LANG"EQUIP_ENABLE")
        }
        case 
2// Game Info
        
{
            static 
string_name[128], string_data[1028]
            
            
// Game Infomation
            
formatex(string_namesizeof(string_name), "%L"OFFICIAL_LANG"GAMEINFO_NAME")
            
formatex(string_datasizeof(string_data), "%L"OFFICIAL_LANG"GAME_INFORMATION")
            
            
show_motd(idstring_datastring_name)
        }    
        case 
3// Player Config
        
{
            
player_config(id)
        }    
    }
    
    return


Menu Editado
Código PHP:
public open_game_menu(id)
{
    static 
menustring[128]
    
    
formatex(stringsizeof(string), "%L"OFFICIAL_LANG"GAME_MENU_NAME")
    
menu menu_create(string"gamem_handle")
    
    
// Enable Equipment Menu
    
formatex(stringsizeof(string), "%L"OFFICIAL_LANG"EQUIPMENT_NAME")
    
menu_additem(menustring"1"0)
    
    
// Game Infomation
    
formatex(stringsizeof(string), "%L"OFFICIAL_LANG"GAMEINFO_NAME")
    
menu_additem(menustring"2"0)
    
    
// Game Infomation
    
formatex(stringsizeof(string), "%L"OFFICIAL_LANG"PCONFIG_NAME")
    
menu_additem(menustring"3"0)
    
    
// Thanatos 7
    
menu_additem(menustring"4"0)
    
    
menu_setprop(menuMPROP_EXITMEXIT_ALL)
    
menu_display(idmenu0)
}

public 
gamem_handle(idmenuitem)
{
    if(!
is_user_connected(id))
        return
    
    if(
item == MENU_EXIT)
    {
        
menu_destroy(menu)
        return
    }
    
    new 
data[6], szName[64];
    new 
accesscallback;
    
    
menu_item_getinfo(menuitemaccessdata,charsmax(data), szName,charsmax(szName), callback);
    
    new 
key str_to_num(data);
    
    switch(
key)
    {
        case 
1// Equipment
        
{
            
g_showmenu[id] = true
            client_printc
(id"!g[Zombie Escape]!n %L"OFFICIAL_LANG"EQUIP_ENABLE")
        }
        case 
2// Game Info
        
{
            static 
string_name[128], string_data[1028]
            
            
// Game Infomation
            
formatex(string_namesizeof(string_name), "%L"OFFICIAL_LANG"GAMEINFO_NAME")
            
formatex(string_datasizeof(string_data), "%L"OFFICIAL_LANG"GAME_INFORMATION")
            
            
show_motd(idstring_datastring_name)
        }    
        case 
3// Player Config
        
{
            
player_config(id)
        }
        case 
4// Thanatos 7
        
{
            
tienda_thanatos7(id)
        }
    }
    
    return

Ze_Jurassic_World_Z [52%]
Ze_Jumping_Area [37%]
(04/02/2019, 05:15 PM)kikizon2 escribió: Me voy por un tiempo y cuando regreso veo esto... Oh god why
Responder


Mensajes en este tema
[ ZE ] Ayuda rapida - por LIL8ZINN - 17/03/2019, 01:26 PM
RE: [ ZE ] Ayuda rapida - por DiCHANHO - 17/03/2019, 10:50 PM
RE: [ ZE ] Ayuda rapida - por LIL8ZINN - 19/03/2019, 09:22 PM
RE: [ ZE ] Ayuda rapida - por Ipolito - 23/03/2019, 11:24 PM

Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)