Team Chat Bug - 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: Team Chat Bug (
/showthread.php?tid=559670)
Team Chat Bug -
Ufku - 24.01.2015
I'm Gang Wars team chat mode, but how do I do incorrectly?
Re: Team Chat Bug -
Ironboy - 24.01.2015
How could we know without seeing the code?
Re: Team Chat Bug -
Ufku - 24.01.2015
if(text[0] == '!') //
{
new name[24], string[256];
GetPlayerName(playerid, name, 24);
format(string, sizeof(string), "[Team-Chat]%s: %s", name, text[1]);
printf("%s", string);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(gTeam[i] == gTeam[playerid])
SCM(i, GetPlayerColor(playerid), string);
}
}
return 0;
}