Raised This Month: $ Target: $400
 0% 

Menus + Files !!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
An Ark
Junior Member
Join Date: May 2013
Old 05-16-2013 , 06:19   Menus + Files !!
Reply With Quote #1

I have called a function with a menu. Once the user calls this function for the first time its getting executed correctly. But for the second time the menu just dont appear. The Code Complies without any errors and warnings. No errors about the plugin in console and no error logs. Also the Code contains file handling.

PHP Code:
#define B1    1 << 0;
#define B0    1 << 9;

new gKeyslolMenu B1 B0;

public 
plugin_init()
{
    
register_clcmd("say /lol""lolMenu");
    
register_menucmd(register_menuid("lolMenu"), gKeyslolMenu"handlelolMenu");

}

public 
lolMenu(id)
{    
    
    new 
szMenu[256];
        
    
addszMenu 256 "\r1. \wCall lol Menu Test^n" );
    
    
addszMenu 256 "\r0. \wClose" );

    
show_menuid gKeyslolMenu szMenu , -"lolMenu" );
    
}

public 
handlelolMenu(idnum)
{
    switch (
num)
    {
        case 
N1: { lolProcess; }
        case 
N0: { return; }
    }
    
    if (
num != N1 && num != N9)
    {
        
lolMenu(id);
    }
}

public 
lolProcessid )
{
    
// Sum huge variables
    
    // Big loops
    // File open and get data from file.
    // Use of Cstrike and fun functions.
    // fclose.


Last edited by An Ark; 05-17-2013 at 04:18. Reason: Small Mistake in Example
An Ark is offline
 



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 16:26.


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