[Ajuda] Quebra de linha
#5

Quote:
Originally Posted by Syxh0wN
View Post
pawn Code:
SendClientMessageEx(playerid, color, const text[])
{
    #define LENGHT (36)

    if(strlen(text) > LENGHT)
    {
        new firstString[LENGHT], secondString[LENGHT];

        strmid(firstString, text, 0, LENGHT);
        strmid(secondString, text, LENGHT - 1, LENGHT * 2);

        format(firstString, LENGHT, "%s", firstString);
        format(secondString, LENGHT, "..%s", secondString);

        SendClientMessage(playerid, color, firstString);
        SendClientMessage(playerid, color, secondString);
   }
    else SendClientMessage(playerid, color, text);
   
    #undef LENGHT

    return 1;
}
Muito obrigado, me ajudou muito.
Rep +
Reply


Messages In This Thread
Quebra de linha - by Henriquearauj - 15.01.2020, 00:02
Re: Quebra de linha - by iPhonee - 15.01.2020, 05:13
Re: Quebra de linha - by iPhonee - 15.01.2020, 05:21
Re: Quebra de linha - by Syxh0wN - 15.01.2020, 05:38
Re: Quebra de linha - by Henriquearauj - 15.01.2020, 14:58

Forum Jump:


Users browsing this thread: 1 Guest(s)