SendClientMessge
#1

How can I send this message like this without writing 10 SendClientMessage because this isn't working?


Код:
		new string[256];
		strcat(string, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
		strcat(string, "			XX");
		strcat(string, "XXXXX");
		strcat(string, "SXX");
		strcat(string, "XXX");
		strcat(string, "XXXX");
		strcat(string, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
		SendClientMessage(playerid,SP,string);
Reply
#2

When your not using any variable in this code then why dont you just use all those strcat's as SendClientMessage's. Simple. If you have to show value's of some variables then you need format.
Reply
#3

Quote:
Originally Posted by MarinacMrcina
Посмотреть сообщение
How can I send this message like this without writing 10 SendClientMessage because this isn't working?


Код:
		new string[256];
		strcat(string, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n");
		strcat(string, "			XX\n");
		strcat(string, "XXXXX\n");
		strcat(string, "SXX\n");
		strcat(string, "XXX\n");
		strcat(string, "XXXX\n");
		strcat(string, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n");
		SendClientMessage(playerid, SP, string);
"\n" = newline

+REP if this is what you are looking for.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)