Increase message size. - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Increase message size. (
/showthread.php?tid=241638)
Increase message size. -
KaleOtter - 18.03.2011
Hello, several times when I send a message with SendClientMessage it doesn't send the messag when the string is to long. Even if I increase the stringsize of the string that should be send.
It's very annoying because the strings aren't even that long, Here i show you an example.
Код:
new Reason[128];
// Getting data from sql.
format(pS[String],StringSize,"{A80000}Ban information: Banned by [{FFFFFF}%s{A80000}] Banned on [{FFFFFF}%s{A80000}] Reason of ban [{FFFFFF}%s{A80000}].",BannedBy,Date,Reason);
SendClientMessage(playerid,Red,pS[String]);
This message only will be send when I remove the Reason.
StringSize = 256 (even if I set this to 1526 it also fails)
Somebody know a solution?
Re: Increase message size. -
PinkFloydLover - 18.03.2011
The max amount of characters that can be displayed in 1 message on sa-mp is 128.
Re: Increase message size. -
Jochemd - 18.03.2011
How big is that string? And by the way, edit that StringSize define/array to 128 since it's the max string input :P
Re: Increase message size. -
KaleOtter - 19.03.2011
Whats the reason to make it max 128...
Well then I will find another way to display the whole message, but thanks for your replys