Raised This Month: $ Target: $400
 0% 

need help with menu strings


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
reinert
Veteran Member
Join Date: Feb 2007
Old 01-06-2011 , 10:32   need help with menu strings
Reply With Quote #1

PHP Code:
    menu_additem(CC_menu"\wSweden""Sweden");
    
menu_additem(CC_menu"\wFinland""Finland"); 

I would like to get the name of chosen country in my handler ...

PHP Code:
    new data[6], iName[64];
    new 
_accesscallback;
    
    
menu_item_getinfo(CC_menuitem_accessdatacharsmax(data), iName63callback);
    new 
iCountry str_to_num(data);
    
    switch( 
iCountry )
    {
        default:
        {
        
copy(iSelectedCountry[id], 32iCountry);
        
client_print(idprint_chat"selected country %s"iSelectedCountry[id])
        }
    }
    
menu_destroy(CC_menu);
    return 
PLUGIN_HANDLED;

What is wrong it gives me error:

Error: Argument type mismatch (argument 3)
reinert is offline
 


Thread Tools
Display Modes

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 02:07.


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