06.02.2010, 16:56
I explain what he means:
You need to have the variable "text" in the public declaration. That means, if "text[]" would be "Woot[]" it would look like this:
The name of the string in the comparation must the the same as in the public declaration.
I hope you understood.
pawn Код:
public OnPlayerText(playerid, text[])
{
if(!strcmp(text, "hey", true))
{
SendClientMessage(playerid, 0xFFFFFFAA, "Message here");
}
}
pawn Код:
public OnPlayerText(playerid, Woot[])
{
if(!strcmp(Woot, "hey", true))
{
SendClientMessage(playerid, 0xFFFFFFAA, "Message here");
}
}
I hope you understood.

