[HELP]Text line....
#1

Код:
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid))
            {
            /* THIS */
				new
					sTextChat[800];
                format(sTextChat, sizeof(sTextChat), "%s: "#EMB_COLOR_WHITE"%s", name(playerid), text);
                SendClientMessageToAll(GetPlayerColor(playerid), sTextChat);
            /* THIS */
            }
            return 0;
        }
    }
how can I wrap text in another line?
Reply
#2

anyone help me ?
Reply
#3

This is in OnPlayerText?
Reply
#4

Quote:
Originally Posted by .FuneraL.
Посмотреть сообщение
This is in OnPlayerText?
yes...
Reply
#5

pawn Код:
format(sTextChat, sizeof(sTextChat), "%s: "#EMB_COLOR_WHITE"%s", name(playerid), text);
Change to "text[1]);" and try.
Reply
#6

Quote:
Originally Posted by .FuneraL.
Посмотреть сообщение
pawn Код:
format(sTextChat, sizeof(sTextChat), "%s: "#EMB_COLOR_WHITE"%s", name(playerid), text);
Change to "text[1]);" and try.
dosent work, i post all script onplayertext ?
Reply
#7

anyone help me ?
Reply
#8

so
Reply
#9

Stop bumping your topic
Reply
#10

SendClientMessageToAll will still send the message to EVERYONE.

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid))
            {
            /* THIS */
                new
                    sTextChat[800];
                format(sTextChat, sizeof(sTextChat), "%s: "#EMB_COLOR_WHITE"%s", name(playerid), text);
                SendClientMessage(i, GetPlayerColor(playerid), sTextChat);
            /* THIS */
            }
            return 0;
        }
    }
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)