SA-MP Forums Archive
SendClientMessage won't show the last one. - 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: SendClientMessage won't show the last one. (/showthread.php?tid=634224)



SendClientMessage won't show the last one. - TheToxicBlast - 15.05.2017

My script:

Код:
if(strcmp(cmdtext, "/vehhelp", true) == 0)
	{
	SendClientMessage(playerid, -1, "{5DADE2}Vehicle Commands");
	// Here i'll put another later. ignore this comment.
	SendClientMessage(playerid, -1, "{FFFFFF}Buying/Selling:{85C1E9}"); // I did not put any thing here yet, so ignore this.
	SendClientMessage(playerid, -1, "{FFFFFF}Using:{C39BD3}(/) {85C1E9}startengine, stopengine, openboot, closeboot, openbonnet, closebonnet");
        SendClientMessage(playerid, -1, "{FFFFFF}More commands for using vehicles:{C39BD3}(/) {85C1E9}alarmon, alarmoff, lightson, lightsoff, opencardoors, closecardoors, openwindows, closewindows");
	return 1;
	}
And how it looks like when someone types it:

Код:
Vehicle Commands:
Buying/Selling:
Using:(/) startengine, stopengine, openboot, closeboot, openbonnet, closebonnet
Why doesn't the last message show up?


Re: SendClientMessage won't show the last one. - GoldenLion - 15.05.2017

Probably because the maximum length of a message is 144 characters.


Re: SendClientMessage won't show the last one. - Fairuz - 15.05.2017

Your last message contains 155 characters,the maximum characters for message is 144.


Re: SendClientMessage won't show the last one. - Logic_ - 15.05.2017

Replace the last message with this one:

PHP код:
SendClientMessage(playerid, -1"More cmds for using vehicles:{C39BD3}(/) {85C1E9}alarmon, alarmoff, lightson, lightsoff, opencardoors, closecardoors, openwindows, closewindows"); 
-1 by default, represents the color white.