OnPlayerText problem
#2

Easy fix
pawn Код:
public OnPlayerText(playerid, text[])
{
    new  msg[128],tPlayerName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, tPlayerName, MAX_PLAYER_NAME);
    format(msg, sizeof(msg), "%s (%d): {FFFFFF}%s", tPlayerName, playerid, text);

    static pText[MAX_PLAYERS][128];
    if(pText[playerid][0] != '\0' && !strcmp(text,pText[playerid],true)) return SendClientMessage(playerid,-1,"* Stop repeating!") & 0;
    strcat((pText[playerid][0]='\0',pText[playerid]),text,128);

    SendClientMessageToAll(GetPlayerColor(playerid), msg);

    return 0;
}
Reply


Messages In This Thread
OnPlayerText problem - by Crazyboobs - 13.07.2012, 01:59
Re: OnPlayerText problem - by [MM]RoXoR[FS] - 13.07.2012, 02:40

Forum Jump:


Users browsing this thread: 3 Guest(s)