Raised This Month: $ Target: $400
 0% 

read args from say


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Elusive138
Senior Member
Join Date: Dec 2010
Old 04-03-2011 , 08:23   Re: read args from say
Reply With Quote #4

IIRC, the say message is always enclosed in quotes ("). That means you can just read_argv(1) or read_args() to get the whole message, but you then need to remove_quotes() it and then parse() or strbreak() it into individual parts..

e.g. if someone types /transfer 555 120, what you would get is "/transfer 555 120" as arg1.

I might be wrong about that, but I do remember reading say commands was different from reading console commands.
Elusive138 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:36.


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