Raised This Month: $ Target: $400
 0% 

Old menu problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
reinert
Veteran Member
Join Date: Feb 2007
Old 01-15-2011 , 11:26   Old menu problem
Reply With Quote #1

Hey, why the hell when I open menu number 1 (Keysrod1 ...), and I press any key, it opens the Pressedrod of menu number 0...

Here is my code:

PHP Code:
#define Keysrod (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<7)|(1<<8)|(1<<9)
#define Keysrod1 (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<7)|(1<<8)|(1<<9) 
PHP Code:
    register_menucmd(register_menuid("rod"), Keysrod"Pressedrod");
    
register_menucmd(register_menuid("rod1"), Keysrod1"Pressedrod1"); 
PHP Code:
public Showrod(id){
    
show_menu(idKeysrod"\wColor explanation:^n\y'n*' - normal color text ( depends on con_color )^n't*' - team color text ( depends on team )^n'g*' - green text color^n\wWelcome message example: g*Hello t*boys n*and t*girls", -1"rod");
}
public 
Pressedrod(idkey) {
    switch (
key) {
        default: 
        {
            
client_cmd(id"speak sound/confirmed0" );
            
WelmsgMenu(id);
        }
    }

PHP Code:
public Showrod1(id){
    new list[
256];
    new 
vipnames[33][33];
    new 
count;
    new 
x;
    new 
msg[256], iLen;
    
    for(
1<= 33x++){
    if(
is_user_connected(x))
        if(
iVip[id] == 1)
        
get_user_name(xvipnames[count++], 32);
    }
    
    if(
count == 0)
    {
    
formatex(list, 255"\yNo admins online");
    }
    else
    {
    for(new 
count i++) {
    
iLen += format(msg[iLen], 255-iLen"\w%s^n"vipnames[i]);
    }
    
formatex(list, 255"\wAdmins online \y[ \w%d\y ]\w:^n%s"countmsg);
    
show_menu(idKeysrod1, list, -1"rod1");
    }
}
public 
Pressedrod1(idkey) {
    switch (
key) {
        default: 
        {
        
        }
    }
    return 
PLUGIN_CONTINUE;

When I open the menu with admin list, then press any key the pressed key affects to pressedrod menu ... and it opens me WelmsgMenu...
reinert 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 01:55.


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