View Single Post
Author Message
Facksy
Senior Member
Join Date: Apr 2017
Location: +2+2
Old 11-15-2017 , 18:33   Help with String
Reply With Quote #1

Hello guys, i've got a little problems with my plugin, when someone say "Yakada", it should reply "yes" but actually, its always replying "nop", even when i say perfectly "Yakada":
Code:
public OnPluginStart()
{
	AddCommandListener(Listener_Say, "say");
	AddCommandListener(Listener_Say, "say2");
	AddCommandListener(Listener_Say, "say_team");
}

public Action:Listener_Say(client, const String:command[], argc)
{
    decl String:arg[264];
    GetCmdArgString(arg, 264);
    if(StrEqual(arg, "Yakada"))
    {
	 PrintToChatAll("yes");
    }
    else
    {
	PrintToChatAll("nop");
    }
}

Last edited by Facksy; 11-15-2017 at 18:34.
Facksy is offline