Raised This Month: $ Target: $400
 0% 

Checking Syntax


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
SentryIII
Junior Member
Join Date: Oct 2004
Old 09-03-2005 , 23:34  
Reply With Quote #7

Quote:
Originally Posted by knekter
well you could do something like:
Code:
new const g_szCommands[4][] = {     "Command1",     "Command2",     "Command3",     "Command4" }; for(new iCmd = 0; iCmd < 4; iCmd++)     if(equali(check, g_szCommands[iCmd]))         return PLUGIN_HANDLED;
Or something like that to make the code look cleaner/nicer.
Perfect, thankyou!
Just for the record, Im listing the commands Im allowing, not trying to block. I decided that trying to block every possible rcon command would take much more time/space than just listing a few commands.
SentryIII is offline
 



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