Raised This Month: $ Target: $400
 0% 

problem with reading arguments...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-23-2011 , 20:17   Re: problem with reading arguments...
Reply With Quote #2

When you register a say message it must be exactly that. If you do register_clcmd("say hello", ...) then it will only be called when you "say hello" and not when you "say hello how are you". It must be exact.

To provide arguments you must register only "say" then read_args() and parse it into the parts that you need (the first part being the .startwar which you need to check to continue then the remaining is your argument).
__________________

Last edited by fysiks; 03-23-2011 at 20:27.
fysiks 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:30.


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