Connect message. - 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: Connect message. (
/showthread.php?tid=386159)
Connect message. -
tuuler - 19.10.2012
Hey, i have an problem with my Connect message. Here it is:
Код:
new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "{999900}%s {FFFFFF}Has Joined The Server | Ping: {999900}%s", pname,GetPlayerPing(playerid));
SendClientMessageToAll(0xAAAAAAAA, string);
But it will look like this In-Game: %s Has Joined The Server |
I changed %s to %i, but still didnt work.
So please help me !
Re: Connect message. -
JaKe Elite - 19.10.2012
The problem is because of this
Try removing it.
Re: Connect message. -
gtakillerIV - 19.10.2012
%s = String, %i = Integer, and like Romel said it is because of the colors.
Re: Connect message. -
tuuler - 19.10.2012
Thanks
Re: Connect message. - Glint - 19.10.2012
Don't use
Quote:
string[22 + MAX_PLAYER_NAME];
|
use new string[128];