07.02.2015, 14:45
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;
}