Raised This Month: $ Target: $400
 0% 

Read certain part of chat message


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Buckshot
Senior Member
Join Date: Mar 2014
Location: Sweden
Old 03-29-2014 , 16:42   Re: Read certain part of chat message
Reply With Quote #4

I think i got a problem though. After the second argv, the player is supposed to type a description, which most likely will have spaces. I think will only get the first word of the description with read_argv 2?

An example usage:

/report Player He was cheating!

And the "Player" should be put in my szName variable, and the "He was cheating" in String variable

If i would use read_argv, i would just get the player name, and "He" as the string?.. Or does it take ALL of the text if i don't have a read_argv(3) ?
__________________
PM me for private work.



Last edited by Buckshot; 03-29-2014 at 16:45.
Buckshot is offline
Send a message via Skype™ to Buckshot
 



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 05:56.


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