23.02.2010, 11:01
Is this all i need to get a players text?
pawn Код:
tmp = strtok(cmdtext,idx);
if(!strlen(tmp))
tmp = strtok(cmdtext,idx);
if(!strlen(tmp))
public OnPlayerText(playerid, text[]) { new string[128]; format(string, sizeof(string), "%s", text); SendClientMessageToAll(color, string); return 0;//Disables chat and sends above in stead }
//onplayercommandtext
new string[128];
format(string, sizeof(string), "You typed: %s", cmdtext);
SendClientMessage(playerid, color, string);
Originally Posted by [NWA
Hannes ]
pawn Код:
|
if(strlen(string)==0) return 0;