Raised This Month: $ Target: $400
 0% 

Saving text of item in the menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-20-2011 , 07:36   Re: Saving text of item in the menu
Reply With Quote #6

Code:
    new key = str_to_num(data)     switch(key) {     case 1, 2, 3, 4, 5, 6, 7, 8, 9:     {         g_money[id] = str_to_num(data)     } }

How do you think that str_to_num(data) can one time return 1 to 9 and the other time return some money amount ???

data contains money amount if i'm right, so forget the new menu tutorial and use item value instead of the "key = str_to_num" system, instead of checking item == MENU_EXIT at first, just check if item is <0, then you can retrieve money amount safely.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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