Ranks before name in OnPlayerText don't work.
#10

Ah-ha! I believe I found the problem.

pawn Код:
public OnPlayerText(playerid, text[])
{
    new string[100];
    new pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pName, sizeof(pName));

    new year,month,day;
    new hour,minute,second;
    getdate(year,month,day);
    gettime(hour,minute,second);
   
    format(string, sizeof(string), "%s %s: %s", LvlName, pName, text);
    SendPlayerMessageToAll(playerid, string); //This should be SendClientMessageToAll, not SendPlayerMessageToAll
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)