SA-MP Forums Archive
[HELP]Text line.... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP]Text line.... (/showthread.php?tid=349551)



[HELP]Text line.... - TheBluec0de - 09.06.2012

Код:
    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?


Re: [HELP]Text line.... - TheBluec0de - 09.06.2012

anyone help me ?


Re: [HELP]Text line.... - .FuneraL. - 09.06.2012

This is in OnPlayerText?


Re: [HELP]Text line.... - TheBluec0de - 09.06.2012

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


Re: [HELP]Text line.... - .FuneraL. - 09.06.2012

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


Re: [HELP]Text line.... - TheBluec0de - 09.06.2012

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 ?


Re: [HELP]Text line.... - TheBluec0de - 09.06.2012

anyone help me ?


Re: [HELP]Text line.... - TheBluec0de - 09.06.2012

so


Re: [HELP]Text line.... - JaKe Elite - 09.06.2012

Stop bumping your topic


Re: [HELP]Text line.... - JhnzRep - 09.06.2012

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;
        }
    }