Chat text is not working - Help needed
#5

I prefer to have this script:
pawn Код:
public OnPlayerText(playerid,text[])
{
    new string[2][MAX_PLAYER_NAME];
    GetPlayerName(playerid,string[0],sizeof(string[]));
    GetPlayerName(playerid,string[1],sizeof(string[]));
    format(string[0],sizeof(string[]),"[%d]%s",playerid,string[0]);
    SetPlayerName(playerid,string[0]);
    SendPlayerMessageToAll(playerid,text);
    SetPlayerName(playerid,string[1]);
    return 0;
}
That way the player can have 2 lines of text without it getting cut off AND the text is white while keeping the player name it's normal color.

Ex:
Reply


Messages In This Thread
Chat text is not working - Help needed - by Mowgli - 20.06.2009, 15:35
Re: Chat text is not working - Help needed - by Grim_ - 20.06.2009, 16:06
Re: Chat text is not working - Help needed - by Correlli - 20.06.2009, 16:08
Re: Chat text is not working - Help needed - by Grim_ - 20.06.2009, 16:09
Re: Chat text is not working - Help needed - by Joe Staff - 20.06.2009, 16:11
Re: Chat text is not working - Help needed - by Correlli - 20.06.2009, 16:13
Re: Chat text is not working - Help needed - by Mowgli - 20.06.2009, 16:19
Re: Chat text is not working - Help needed - by Correlli - 20.06.2009, 16:24
Re: Chat text is not working - Help needed - by Joe Staff - 20.06.2009, 16:25
Re: Chat text is not working - Help needed - by Mowgli - 20.06.2009, 16:33

Forum Jump:


Users browsing this thread: 1 Guest(s)