% char in menu
I know It'll sound as a stupid question but How can i show the % character in a menu? I Tried escaping It with ^% or Just passing % directly and didn't work
menu_additem( hMenu, "test %", "", 0 ); menu_additem( hMenu, "test ^%", "", 0 ); |
Re: % char in menu
will format/formatex change anything ?
|
Re: % char in menu
Quote:
|
Re: % char in menu
Try: %%
|
Re: % char in menu
Quote:
|
Re: % char in menu
The code that you actually posted shouldn't have any issues because that function doesn't do any formatting. If it really is having that issue, it is a bug. If you are using a function that is actually formatting a string (e.g. format() or formatex()) then %% is the proper solution.
So, if "menu_additem( hMenu, "test %", "", 0 );" doesn't work, you need to report it as a bug. If you are using format or formatex, you should update your original post to show that because as it stands this thread doesn't make any sense. |
Re: % char in menu
Quote:
menu_additem(hItem, "test %") works properly. Next time you should post the actual code that you have issues with. |
Re: % char in menu
Quote:
Thanks everyone. |
Re: % char in menu
While we are here, is there a way to show % from a .txt file?
|
Re: % char in menu
Quote:
|
All times are GMT -4. The time now is 23:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.