Putting a cvar in a quote?
So here's a basic line of code in my plugin:
Code:
menu_additem(menu, "\w200 Gravity", "1", 0);I can't just put Code:
"menu_additem(menu, "\w200 Gravity - get_pcvar_num(MyCvar)","1",0);How can I do this? Thanks! +karma could be yours :mrgreen: :up: |
Re: Putting a cvar in a quote?
new item[]
formatex(item, "\w200 gravity - %d", get_pcvar_) menu_additem(menu, item, _ ) |
Re: Putting a cvar in a quote?
lol, explain for a noobie?
don't understand i'm using the new menus btw, like in the tut. by Emp` |
Re: Putting a cvar in a quote?
|
Re: Putting a cvar in a quote?
edit - ok i got it.
i have another question if you don't mind helping. i have a plugin ''Buy Gravity'' in new plugin submissions currently... The gravity lasts for the whole round, though. I'd like it to last until the players dies. Would this be too challenging for a newbie? :| btw- using fakemeta |
| All times are GMT -4. The time now is 05:31. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.