Raised This Month: $ Target: $400
 0% 

Putting a cvar in a quote?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
PvtSmithFSSF
Senior Member
Join Date: Jul 2008
Old 07-26-2008 , 09:56   Putting a cvar in a quote?
Reply With Quote #1

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
PvtSmithFSSF is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:31.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode