Raised This Month: $ Target: $400
 0% 

#define CVAR_VALUE


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 05-29-2020 , 17:09   Re: #define CVAR_VALUE
Reply With Quote #1

Why would you use a define for a default value? It's fine to set it directly in the cvar.

Do you want to set the cvar value into a define? Defines do not work like that, they happen at compile time.
__________________

Last edited by gabuch2; 05-29-2020 at 17:11.
gabuch2 is offline
supertrio17
Senior Member
Join Date: May 2020
Location: Serbia
Old 05-29-2020 , 17:26   Re: #define CVAR_VALUE
Reply With Quote #2

Okay, so how can I do this. I have this cvar, and I want value that I get from that cvar to be in here

PHP Code:
get_user_info(idSETINFO_KEYszInfocharsmax(szInfo)) 
Where SETINFO_KEY stands I want to have string from my cvar.
supertrio17 is offline
Reply



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 17:04.


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