Raised This Month: $ Target: $400
 0% 

Different Menu's for different maps


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Gasior
Member
Join Date: Mar 2012
Old 08-21-2013 , 10:16   Different Menu's for different maps
Reply With Quote #1

Hi,
I have a problem with following code
PHP Code:
public HookSay(id)
{
    new 
map[32];
    
    
get_mapname(mapcharsmax(map) - 1);
    if(
equali(map"1hp_he") || containi(map"ka_")) {
        
DisplayMenu1(id)
    }
    else if(
containi(map"awp_") || containi(map"awesome_")) {
        
DisplayMenu2(id);
    }
    else if(
containi(map"knives")) {    
        
DisplayMenu3(id);
    }
    else 
        
DisplayMenu(id)
    return 
PLUGIN_HANDLED_MAIN

The problem is that no matter what map is, it always runs DisplayMenu1. Can someone show me what is wrong?

Last edited by Gasior; 08-21-2013 at 10:29.
Gasior 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 15:59.


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