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;
}