їStrdel? (Make a second string if string one is too long) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: їStrdel? (Make a second string if string one is too long) (
/showthread.php?tid=539736)
їStrdel? (Make a second string if string one is too long) -
Infernux - 30.09.2014
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