Quote:
Originally Posted by TitANious
#define MODEL_NAME "models/player/model_name"
|
#define for a string isn't good idea.
Code:
new ModelPathCVar;
public plugin_init()
ModelPathCVar = register_cvar("amx_model", "models/model.mdl");
public SomeFunction()
{
new ModelPath[64];
get_pcvar_string(ModelPathCVar, ModelPath, 63);
// ModelPath now contains the string that is in CVar
}
__________________