Raised This Month: $ Target: $400
 0% 

Help With more than 1 word chat detect


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
MegaBeach
Junior Member
Join Date: May 2013
Old 05-24-2013 , 17:23   Help With more than 1 word chat detect
Reply With Quote #1

Hey,
I have a code for a plugin that i made,
I need to detect a word that a player need to say, and if the player says the word he will win.
But... if the word that the player need to say is built from more than 1word, so it not detect it.
I mean that the 1word working fine, but more than 1 word it not detect it fine.

the part of the code:
Code:
public sayheydsc(id)
{
 new szMsg[ 192 ], Arg[ 38 ];
 read_argv( 1, szMsg, charsmax ( szMsg ) )
 parse( szMsg, Arg, charsmax ( Arg ))

 if( equal(Arg, "hey dsc"))
 {
  ColorChat(id, NORMAL, "Winner")
 }
 return PLUGIN_CONTINUE;
}
MegaBeach 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 16:25.


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