OnPlayerText (Small bug)
#1

my script:
pawn Код:
public OnPlayerText(playerid, text[])
{
    if(PlayerInfo[pAdmin][playerid] != 5)
    {
    new admintext[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof (name));
    format(admintext, sizeof (admintext), "[DIRECTOR] %s(%i):%s", name,playerid,text);
    SendPlayerMessageToAll(playerid, admintext);
    return 0;
    }
}
It should be sending

[DIRECTOR] Bamf(0): testing

but its sending

Bamf:[DIRECTOR] Bamf(0): testing

(Returned 0 to send custom text)
Reply


Messages In This Thread
OnPlayerText (Small bug) - by Lz - 13.12.2012, 12:08
Re: OnPlayerText (Small bug) - by RajatPawar - 13.12.2012, 12:10
Re: OnPlayerText (Small bug) - by Lz - 13.12.2012, 12:15
Re: OnPlayerText (Small bug) - by [HK]Ryder[AN] - 13.12.2012, 12:16

Forum Jump:


Users browsing this thread: 1 Guest(s)