/me & /do (format) in two lines
#6

pawn Код:
new string[2][160];
if(strlen([PARAMETER VARIABLE] > 127)
{
    strins(string[1], ,[PARAMETER VARIABLE], 128);
    strdel([PARAMETER VARIABLE], 128, sizeof(PARAMETER VARIABLE));
    new Pname[24];
    GetPlayerName(playerid, Pname, 24);
    format(string[0], sizeof(string[0]), "%s(%d):%s", Pname, playerid, [PARAMETER VARIABLE]);
    format(string[1], sizeof(string[1]), "%s(%d):%s", Pname, playerid, string[1]);
    SendClientMessage(playerid, 0xFFFFFF, string[0]);
    SendClientMessage(playerid, 0xFFFFFF, string[1]);
}
I think that's what you meant.
Reply


Messages In This Thread
/me & /do (format) in two lines - by Homerman - 17.07.2011, 12:18
Re: /me & /do (format) in two lines - by FireCat - 17.07.2011, 12:23
Re: /me & /do (format) in two lines - by Ehab1911 - 17.07.2011, 12:23
Re: /me & /do (format) in two lines - by park4bmx - 17.07.2011, 12:28
Re: /me & /do (format) in two lines - by Homerman - 17.07.2011, 12:29
Re: /me & /do (format) in two lines - by [HiC]TheKiller - 17.07.2011, 12:30
Re: /me & /do (format) in two lines - by Flyfishes - 17.07.2011, 12:31
Re: /me & /do (format) in two lines - by Homerman - 17.07.2011, 12:38
Re: /me & /do (format) in two lines - by Homerman - 17.07.2011, 12:41
Re: /me & /do (format) in two lines - by Flyfishes - 17.07.2011, 12:44

Forum Jump:


Users browsing this thread: 1 Guest(s)