Team Chat Bug
#1

I'm Gang Wars team chat mode, but how do I do incorrectly?
Reply
#2

How could we know without seeing the code?
Reply
#3

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)