Quote:
Originally Posted by Jefff
pawn Код:
static pText[MAX_PLAYERS][128]; if(!strcmp(pText[playerid],text,true)) return SendClientMEssage(playerid,-1,"You cannot type the same text 1 more time."); strcat((pText[playerid][0]='\0',pText[playerid]),text,128);
All in OnPlayerText public
|
Dude -.- you need a return 0; in there some where... try this code
pawn Код:
static pText[MAX_PLAYERS][128];
if(!strcmp(pText[playerid],text,true)) {SendClientMEssage(playerid,-1,"You cannot type the same text 1 more time."); return 0;}
strcat((pText[playerid][0]='\0',pText[playerid]),text,128);