Raised This Month: $ Target: $400
 0% 

how to do this ???


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-03-2010 , 16:21   Re: how to do this ???
Reply With Quote #1

Learn from the begining.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
0920357689
Senior Member
Join Date: Apr 2008
Old 08-03-2010 , 16:32   Re: how to do this ???
Reply With Quote #2

Quote:
Originally Posted by ConnorMcLeod View Post
Learn from the begining.
where to start....
0920357689 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-03-2010 , 19:05   Re: how to do this ???
Reply With Quote #3

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])

__________________

Last edited by fysiks; 08-03-2010 at 19:08.
fysiks is offline
0920357689
Senior Member
Join Date: Apr 2008
Old 08-03-2010 , 23:21   Re: how to do this ???
Reply With Quote #4

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