Raised This Month: $ Target: $400
 0% 

how to do this ???


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
0920357689
Senior Member
Join Date: Apr 2008
Old 08-03-2010 , 23:21   Re: how to do this ???
Reply With Quote #1

Quote:
Originally Posted by fysiks View Post
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])


Last edited by 0920357689; 08-03-2010 at 23:27.
0920357689 is offline
Reply



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 00:14.


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