SendClientMessage won't show the last one.
#1

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?
Reply
#2

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

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)