Raised This Month: $12 Target: $400
 3% 

Force CAL Open Settings [fcos] - v2.9 - 2007-04-06


Post New Thread Reply   
 
Thread Tools Display Modes
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 03-23-2006 , 19:59  
Reply With Quote #11

Put each command and cvar associated with it into an array of strings (multidimensional array), and then just do a for loop querying for each part of the array. Also the gazillion functions after the query can be all be compressed into one function the same way.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
SubStream
Veteran Member
Join Date: Aug 2005
Location: USA
Old 03-23-2006 , 20:11  
Reply With Quote #12

Edit: Problem solved!!!!
SubStream is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 03-23-2006 , 20:23  
Reply With Quote #13

query_client_cvar gives you the cvar queried as one of the parameters. I don't remember what position it is in the header.

You can use that, or just compare the position the arrays are in with the for loop.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
SubStream
Veteran Member
Join Date: Aug 2005
Location: USA
Old 03-23-2006 , 20:41  
Reply With Quote #14

Edit: Problem solved!!!!
SubStream is offline
SubStream
Veteran Member
Join Date: Aug 2005
Location: USA
Old 03-23-2006 , 21:04  
Reply With Quote #15

Edit: Problem solved!!!!
SubStream is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 03-23-2006 , 21:05  
Reply With Quote #16

I don't think you understand what I'm saying. If you give me a day or two I'll try rewriting this myself.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
SubStream
Veteran Member
Join Date: Aug 2005
Location: USA
Old 03-23-2006 , 21:08  
Reply With Quote #17

Edit: Problem solved!!!!
SubStream is offline
SubStream
Veteran Member
Join Date: Aug 2005
Location: USA
Old 03-23-2006 , 21:10  
Reply With Quote #18

Edit: Problem solved!!!!
SubStream is offline
capndurk
Senior Member
Join Date: Feb 2006
Old 03-23-2006 , 21:13  
Reply With Quote #19

SubStream, just out of curiosity, how did you post that link "Get Plugin" under the sma file thing...? (I'm about to submit my first plugin ;))
capndurk is offline
SubStream
Veteran Member
Join Date: Aug 2005
Location: USA
Old 03-23-2006 , 21:14  
Reply With Quote #20

Quote:
Originally Posted by capndurk
SubStream, just out of curiosity, how did you post that link "Get Plugin" under the sma file thing...? (I'm about to submit my first plugin ;))
Upload the .sma and it will compile into the .amxx for the get plugin link on its own
SubStream is offline
Reply


Thread Tools
Display Modes

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 04:37.


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