Saving text of item in the menu
I've made a menu with the new menu system. I want to make a money menu, where you first select the amount of money, example:
Choosable money: 1. 250 2. 500 3. 800 4. 1000 5. 4000 6. 7000 7. 10000 8. 13000 9. 16000 And after the money got pressed, I am showing a menu where the selected players are, how can I save the amount of money then? |
Re: Saving text of item in the menu
Use a gobal variable . . .
|
Re: Saving text of item in the menu
Can you show me how? :oops:
|
Re: Saving text of item in the menu
Quote:
Code:
|
Re: Saving text of item in the menu
PHP Code:
PHP Code:
|
Re: Saving text of item in the menu
Code:
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. |
Re: Saving text of item in the menu
I don't really know much or understand the old menu system. Can you show me how to hold the amount of the money then?
|
Re: Saving text of item in the menu
I don't say you to use old menu, i say to use new menu but forget the way key is retrieved (tutorial is really good and helpfull but that part should never have been put in it i guess).
So just pass money amount in item info like you do, but don't try to get the key with that data because obviously data doesn't contain key but money. So use item instead of key. key : 1 to 9 (or more) item : 0 to 8 (or more) MENU_EXIT, MENU_NEXT and MENU_BACK (if names are correct) are all negative values. If you don't understand what was said in that post and in previous posts, than you should stick with more basic plugins. |
Re: Saving text of item in the menu
Oh ok. Do you mean something like this:
PHP Code:
|
Re: Saving text of item in the menu
Quote:
PHP Code:
|
| All times are GMT -4. The time now is 14:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.