їStrdel? (Make a second string if string one is too long)
#1

Hello, I have this script:

pawn Code:
Mensaje(playerid, color, msj[]){

    new string[128];
    if(strlen(msj) > 100){
        new string2[128];
        format(string2,256,"... %s",msj[100]);
        strdel(msj,100,strlen(msj));
        format(string, sizeof(string), "%s", msj);
    }
    else if(strlen(msj) <= 100){
        format(string, sizeof(string), "%s", msj);

    }
    SendClientMessage(playerid, color, string);
    return 1;
}
So, I need that if the array is too large, it continue on another line, splitting the array on 2

As I can do? Because the code that I have does not work for me, which I do not have bad. Thanks

Sorry for my poor english
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)