PM salto de linea [Consulta]
#4

pawn Код:
stock SendClientMessageMultiline(playerid, color, message[])
{
    #define LETRAS_POR_LINEA 143
    new
        tam = strlen(message),
        lineas = floatround(tam/LETRAS_POR_LINEA, floatround_floor),
        conteo;

    if(!lineas) return SendClientMessage(playerid, color, message);

    inicio:

    static tmp[LETRAS_POR_LINEA+1];

    strmid(tmp, message, conteo*LETRAS_POR_LINEA, (conteo+1)*LETRAS_POR_LINEA);
    SendClientMessage(playerid, color, tmp);

    if(lineas > conteo++) goto inicio;

    #undef LETRAS_POR_LINEA
    return 1;
}
Usa esa funciуn.
Reply


Messages In This Thread
PM salto de linea [Consulta] - by Zodiaco - 07.02.2015, 00:11
Respuesta: PM salto de linea [Consulta] - by Zume - 07.02.2015, 00:14
Respuesta: PM salto de linea [Consulta] - by Zodiaco - 07.02.2015, 14:32
Respuesta: PM salto de linea [Consulta] - by DesingMyCry - 07.02.2015, 14:45

Forum Jump:


Users browsing this thread: 1 Guest(s)