SA-MP Forums Archive
Doubling saying in chat - 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: Doubling saying in chat (/showthread.php?tid=377619)



Doubling saying in chat - trapstar2020 - 15.09.2012

Код:
 
public OnPlayerText(playerid, text[]) <<<<<<<< where this script iz implemented

	new string[128];
	if(strlen(PlayerInfo[playerid][pAccent])) format(string, sizeof(string), "%s says: [%s Accent] %s", RPN(playerid), PlayerInfo[playerid][pAccent], text);
	else format(string, sizeof(string), "%s says: %s", pname(playerid), text);
	SendNearbyMessage(playerid, 10, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5);
When i talk in chat i see it twice


Re: Doubling saying in chat - JaKe Elite - 15.09.2012

Your OnPlayerText return is return to 1
return it to 0


Re: Doubling saying in chat - trapstar2020 - 15.09.2012

ty imma try