Quote:
Originally Posted by DeathOnaStick
I explain what he means:
pawn Код:
public OnPlayerText(playerid, text[]) { if(!strcmp(text, "hey", true)) { SendClientMessage(playerid, 0xFFFFFFAA, "Message here"); } }
You need to have the variable "text" in the public declaration. That means, if "text[]" would be "Woot[]" it would look like this:
pawn Код:
public OnPlayerText(playerid, Woot[]) { if(!strcmp(Woot, "hey", true)) { SendClientMessage(playerid, 0xFFFFFFAA, "Message here"); } }
The name of the string in the comparation must the the same as in the public declaration.
I hope you understood.
|
ahh, so if i added lots of texts i would have to add them all in the title brackets? ()