Raised This Month: $ Target: $400
 0% 

Menu, show amount error?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kikifrh
Senior Member
Join Date: May 2009
Old 06-15-2010 , 13:21   Menu, show amount error?
Reply With Quote #1

Hi guys, I have a plugin that sets Amount[id] to a certain value. But I want, to make in other menu, a menu showing this value.
Menu cmd: bla bla bla ("%s", Amount[id])
it isnt working, how I fix?
thx
kikifrh is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 06-15-2010 , 13:44   Re: Menu, show amount error?
Reply With Quote #2

new menu or old menu?
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
kikifrh
Senior Member
Join Date: May 2009
Old 06-15-2010 , 15:23   Re: Menu, show amount error?
Reply With Quote #3

its a new menu I made.
kikifrh is offline
t3hNox
Senior Member
Join Date: Oct 2009
Old 06-15-2010 , 15:49   Re: Menu, show amount error?
Reply With Quote #4

I didn't clearly understand your problem but here might be the solution:
PHP Code:
public MenuThatIsCalled(id)
{
    new 
menuContent[40]
    
formatex(menuContent39"blabl Amount: %d"Amount[id])
    
    new 
menu menu_create(menuContent"menu_handler");

    
menu_additem(menu"One""1"0);
    
menu_additem(menu"Two""2"0);            

    
menu_setprop(menuMPROP_EXITMEXIT_ALL);

    
menu_display(idmenu0);

Note menuContent[40] and formatting.
I believe the same can be done if you want that Amount[id] in menu_additem.

Last edited by t3hNox; 06-15-2010 at 16:48. Reason: Fixed according to drekes post.
t3hNox is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 06-15-2010 , 16:23   Re: Menu, show amount error?
Reply With Quote #5

format => formatex
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Reply



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:42.


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