Quote:
Originally Posted by fysiks
Using pcvars will make this much much easier.
Here is a quick example:
PHP Code:
new cvar_pointers[4] new cvar_values[4] // ... cvar_pointers[0] = register_cvar(...) cvar_pointers[1] = register_cvar(...) ... // ... for(...) { cvar_values[i] = get_pcvar_num(cvar_pointers[i]) }
|
but i want to auto build CFG
if use this will no annotation
my english very bad...sorry
this is ok?
PHP Code:
// ...
new cvar_pointers[][] =
{
{register_cvar(...),annotate,cvar_num},
{register_cvar(...),annotate,cvar_num},
...
}
// ...
for(...)
{
cvar_pointers[i][2] = get_pcvar_num(cvar_pointers[i][0])
}