View Single Post
Mathias.
Veteran Member
Join Date: Aug 2010
Location: Canada is my city
Old 03-16-2019 , 14:55   Re: HELP Show and Hide Options in Menu
Reply With Quote #4

GetConVarString is a void function it doesn't return anything, you value is now in your oXc variables.

PHP Code:
public Menu RegrasMenu() 

    
char custom_mt[64]; 
    
char o1c[64]; 
    
GetConVarString(o1o1csizeof(o1c));
    ...

    
GetConVarString(mtitlecustom_mtsizeof(custom_mt));

     
    
// MENU DEFINING OPTIONS 
     
    
Menu rm = new Menu(rm_handlerMENU_ACTIONS_ALL); 
    if(
strlen(custom_mt) > 0
    { 
        
rm.SetTitle("%i"menu_title); 
    } 
    else if(
strlen(custom_mt) < 0
    { 
        
rm.SetTitle("Regras Do Servidor"); 
    } 
    if(
strlen(o1c) > 0
    { 
        
rm.AddItem("1""%i"o1c); 
    }
    ...
    
rm.ExitButton true
    
rm.ExitBackButton false
     
    return 
rm


Last edited by Mathias.; 03-16-2019 at 14:55.
Mathias. is offline