SA-MP Forums Archive
little help " not showing <Join> only showing <t/o> <part>" - 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: little help " not showing <Join> only showing <t/o> <part>" (/showthread.php?tid=643204)



little help " not showing <Join> only showing <t/o> <part>" - RoyalEmpire - 15.10.2017

hey guys i need your little help
i created connection message
Код:
new cLines[5][64];
new Text:cnctText = Text:-1;

SendConnectionMessage(playerid, join)
{
	new string[336];
	GetPlayerName(playerid, string, MAX_PLAYER_NAME);
	for (new c = 0; c < sizeof(cLines)-1; c++)
	{
		cLines[c] = cLines[c+1];
	}
	if (join == 1) format(cLines[sizeof(cLines)-1], 64, "~g~~h~<~w~join~g~~h~> ~w~%s~n~", string);
	else if (join == 2) format(cLines[sizeof(cLines)-1], 64, "~r~~h~<~w~t/o~r~~h~> ~w~%s~n~", string);
	else format(cLines[sizeof(cLines)-1], 64, "~r~~h~<~w~part~r~~h~> ~w~%s~n~", string);
	format(string, sizeof(string), "%s%s%s%s%s", cLines[0], cLines[1], cLines[2], cLines[3], cLines[4]);
	if (cnctText == Text:-1) {
		cnctText = TextDrawCreate(622.0, 389.0, string);
		TextDrawLetterSize(cnctText, 0.35, 1.0);
		TextDrawSetShadow(cnctText, 1);
		TextDrawAlignment(cnctText, 3);
	}
	else TextDrawSetString(cnctText, string);
}
but its not showing me <join> royal Empire
its only showing this
<part> royal Empire
<t/o>royal Empire


Re: little help " not showing <Join> only showing <t/o> <part>" - RoyalEmpire - 16.10.2017

help please