SendClientMessge - 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: SendClientMessge (
/showthread.php?tid=343186)
SendClientMessge -
MarinacMrcina - 16.05.2012
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);
Re: SendClientMessge -
Ballu Miaa - 16.05.2012
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.
Re: SendClientMessge -
mprofitt - 16.05.2012
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.