SA-MP Forums Archive
problem with 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: problem with chat? (/showthread.php?tid=174506)



problem with chat? - Face9000 - 05.09.2010

Hi all,i've small problem.

When i write in the chat,nothing happens...

I try to /rcon login but nothing..chat seems dead...

But when i see the serverlog,i see the messages..why?


Re: problem with chat? - [L3th4l] - 05.09.2010

Paste your 'OnPlayerText'


Re: problem with chat? - Face9000 - 05.09.2010

Код:
public OnPlayerText(playerid, text[])
{
	if(text[0] == ';')
	{
		new string[256],name[24];
		GetPlayerName(playerid,name,24);
		format(string,256,"[TEAM] %s: %s",name,text[1]);
		for(new i = 0; i < MAX_PLAYERS; i++)
		{
			if(IsPlayerConnected(i))
			{
				if(gTeam[i] == gTeam[playerid])
				SendClientMessage(i, GetPlayerColor(playerid), string);
			}
		}
		return 0;
	}
	return 1;
}



Re: problem with chat? - Face9000 - 05.09.2010

Seems not working


Re: problem with chat? - Face9000 - 05.09.2010

Fuck..now i cant see nothing..even the team class spawn..