onplayertext
#1

Hey all. How to make it work that if you type the nummer 1 in the chat you will get a message with "works"?
I have this. I just tried but it didn't work as expected.
pawn Код:
public OnPlayerText(playerid, text[])
{
    if(text == "1") return SendClientMessage(playerid,-1,"Works");
    return 1;
}
Reply


Messages In This Thread
onplayertext - by bartje01 - 28.11.2011, 16:45
Re: onplayertext - by moadi - 28.11.2011, 16:48
Re: onplayertext - by AstonDA-G - 28.11.2011, 16:50
Re: onplayertext - by NessaHD - 28.11.2011, 16:50
Re: onplayertext - by bartje01 - 28.11.2011, 16:54
Re: onplayertext - by bartje01 - 28.11.2011, 17:02
Re: onplayertext - by NessaHD - 28.11.2011, 17:04
Respuesta: onplayertext - by iKeN - 28.11.2011, 17:04
Re: onplayertext - by bartje01 - 28.11.2011, 17:08
Re: Respuesta: onplayertext - by NessaHD - 28.11.2011, 17:10

Forum Jump:


Users browsing this thread: 4 Guest(s)