Can someone solve my question about the code?
Code:
#include <amxmodx>register_cvar("amx_contactinfo", CONTACT, FCVAR_SERVER) ↑↑ It means create a cvar and it can modify in amxx.cfg? "..., CONTACT" <- It means that it is already default at the top stuff? It can change it by use the amx_contactinfo? |
Re: Can someone solve my question about the code?
Quote:
As for your second question, you are only using the const var to declare your cvar value. The method (const,#define,var,"value") used to set the initial value of the cvar has no bearing on whether or not the cvar can be changed (ie, this will not make it a 'constant cvar'). Changing the cvar via console or config file will not change the variable value in your code. A cvar declared in this fashion can be altered manually via console or through a .cfg file. Declaring the CONTACT variable as a constant simply will restrict you from altering the value of that variable in your code. |
| All times are GMT -4. The time now is 10:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.