Raised This Month: $ Target: $400
 0% 

Checking Syntax


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
jsauce
Senior Member
Join Date: Aug 2004
Location: Fitchburg, MA USA
Old 09-04-2005 , 06:00  
Reply With Quote #9

What about something like this.
Code:
new const cmd[5][] =     {         "changelevel",         "exec",         "kick",         "sv_password",         "sv_restart"     }     for(new i = 0; i < 5; i++)     {         if(!equali(check,cmd[i])) continue                 if (equal(check,cmd[i]))         {             server_cmd("%s",cmd[i])             break         }     }     return PLUGIN_HANDLED
__________________
"Those people who think they know everything are a great annoyance to those of us who do." -- Isaac Asimov

The Saucy Blog
jsauce is offline
Send a message via ICQ to jsauce Send a message via AIM to jsauce Send a message via MSN to jsauce
 



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


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