OnPlayerText
#10

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);
Reply


Messages In This Thread
OnPlayerText - by Crazyboobs - 05.06.2012, 21:50
Re: OnPlayerText - by Revo - 05.06.2012, 21:53
Re: OnPlayerText - by Crazyboobs - 05.06.2012, 21:58
Re: OnPlayerText - by MP2 - 05.06.2012, 23:10
Re: OnPlayerText - by Jefff - 05.06.2012, 23:12
Re: OnPlayerText - by Crazyboobs - 06.06.2012, 06:20
Re: OnPlayerText - by Crazyboobs - 06.06.2012, 16:46
Re: OnPlayerText - by MadeMan - 06.06.2012, 17:11
Re: OnPlayerText - by Crazyboobs - 06.06.2012, 20:16
Re: OnPlayerText - by skullmuncher1337 - 06.06.2012, 20:20

Forum Jump:


Users browsing this thread: 3 Guest(s)