Raised This Month: $ Target: $400
 0% 

Saving text of item in the menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
bibu
Veteran Member
Join Date: Sep 2010
Old 03-20-2011 , 07:20   Re: Saving text of item in the menu
Reply With Quote #5

PHP Code:
public menu_handler_money_menu(idmenuitem)
{
    if(
item == MENU_EXIT)
    {
        
menu_destroy(menu)
        return 
PLUGIN_HANDLED
    
}

    new 
data[6], iName[64]
    new 
accesscallback

    menu_item_getinfo
(menuitemaccessdata5iName63callback)

    new 
key str_to_num(data)

    switch(
key)
{
    case 
123456789:
    {
        
g_money[id] = str_to_num(data)
    }
}
    
menu_destroy(menu)
    
MoneyplayerMenu(id)
    return 
PLUGIN_HANDLED

After choosing the player with this:

PHP Code:
cs_set_user_money(targetidg_money[id]) 
It gives weird amount of money.
bibu 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 14:36.


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