Menus + Cvars
Is it possible to add the info from a cvar into a menu item? Such as:
PHP Code:
|
Re: Menus + Cvars
You have to format the cvar into a string and then pass the string to the menu_additem() function.
|
Re: Menus + Cvars
PHP Code:
PHP Code:
|
Re: Menus + Cvars
Quote:
PHP Code:
|
Re: Menus + Cvars
PHP Code:
|
Re: Menus + Cvars
Oh, is a number... not a string, sry... my mistake.
Here an example: Code:
But if is an string, see the fysik's example. |
Re: Menus + Cvars
Quote:
|
Re: Menus + Cvars
Ohhh, i saw bad, thought that you did it an example with a string (get_cvar_string), but no... sry.
|
| All times are GMT -4. The time now is 05:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.