So here's a basic line of code in my plugin:
Code:
menu_additem(menu, "\w200 Gravity", "1", 0);
That displays the option "200 gravity" on my menu. I want to add the price of the gravity onto the name. But, since this is decided by a cvar, I don't really understand.
I can't just put
Code:
"menu_additem(menu, "\w200 Gravity - get_pcvar_num(MyCvar)","1",0);
What's in red is the command that shows up... I don't want that to actually show up as it's typed, but I want the number that the cvar "MyCvar" is set to to show up.
How can I do this?
Thanks! +karma could be yours