#define CVAR_VALUE
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:
PHP Code:
Hope I made some sence. |
Re: #define CVAR_VALUE
Do you want to set the cvar value into a define? Defines do not work like that, they happen at compile time. |
Re: #define CVAR_VALUE
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:
|
Re: #define CVAR_VALUE
Code:
|
Re: #define CVAR_VALUE
Oh, I just keep amazing myself how stupid I can be sometimes... Thank you very much.
Im still learning :( |
Re: #define CVAR_VALUE
Check the API for the specific function - https://amxx-bg.info/api/chatmanager/cm_set_user_prefix
As you can see, it has only 2 arguments. You're using 3 here which is not possible. I don't know what lpPrefix is, but if it's a string, it should be: Code:
The %s is not necessary here, nor anywhere when you have only one %s. It can directly be replaced with the string variable itself. |
Re: #define CVAR_VALUE
Belive me or not, I was just about to delete that because I got how stupid it was...
|
| All times are GMT -4. The time now is 17:04. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.