New line after 128 characters.
#1

Hi, if I write something in chat, like /b on my server, it all get in one line. How do I make it so it continues on a new line?

Here is two screenshots to show what I mean.

This is how I want it. (The interior didnt load :X)


This is how it is right now.



pawn Код:
LEANCMD:(b)
{
    if(isnull(params)) return SCM(playerid, COLOR_GREY,"/b [local ooc chat]");
    new string[128];
    if(AdminDuty[playerid] == 0)
    {
    format(string, sizeof(string), "(( [%i] %s: %s ))",playerid, GetName(playerid), params);
    ProxDetector(20.0, playerid, string,COLOR_GREY,COLOR_GREY,COLOR_GREY,COLOR_GREY,COLOR_GREY);
    format(string,sizeof(string),"[%d-%d-%d](( %s: %s ))",GetDay(),GetMonth(),GetYear(),GetName(playerid), params);
    Log("/logs/Emotes.txt",string);
    return 1;
    }
    if(AdminDuty[playerid] == 1)
    {
    format(string, sizeof(string), "(( [%i] {FF9900}%s{C3C3C3}: %s ))",playerid, GetName(playerid), params);
    ProxDetector(20.0, playerid, string,COLOR_GREY,COLOR_GREY,COLOR_GREY,COLOR_GREY,COLOR_GREY);
    format(string,sizeof(string),"[%d-%d-%d][ADMINDUTY] (( %s: %s ))",GetDay(),GetMonth(),GetYear(),GetName(playerid), params);
    Log("/logs/Emotes.txt",string);
    return 1;
    }
    return 1;
 }
this is my /b command.
Reply


Messages In This Thread
New line after 128 characters. - by lean1337 - 26.02.2013, 12:31
Re: New line after 128 characters. - by ikey07 - 26.02.2013, 13:21
Re: New line after 128 characters. - by Kyle - 26.02.2013, 13:29

Forum Jump:


Users browsing this thread: 1 Guest(s)