This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

#define CVAR_VALUE


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
supertrio17
Senior Member
Join Date: May 2020
Location: Serbia
Old 05-29-2020 , 16:47   #define CVAR_VALUE
Reply With Quote #1

So, I have one question. I want to have prefix set, but that prefix can be set with cvar. I'm preatty sure that to achieve that I need some form of #define that defines that will define that cvars value.

So I have something like this

PHP Code:
g_vipp_prefix register_cvar("amx_vipp_prefix""[VIP]"
And than

PHP Code:
    new vpPrefix[32]
    
get_pcvar_string(g_vipp_prefixvpPrefixcharsmax(vpPrefix)) 
Than I want to have #define that has vpPrefix value.

Hope I made some sence.
supertrio17 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:33.


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