Team chat problem
#1

Hi! i got littler problem with my team chat command


Код:
dcmd_t(playerid, cmdtext[])
{
	 	new idx;
		while(cmdtext[idx] == 32) idx++;

		if(cmdtext[idx] == EOS)
	 	return SendClientMessage(playerid,COLOR_GOLD,"USAGE: /t [text]");

 		new string[128];
		new team = GetPlayerTeam(playerid);
		new color = GetPlayerColor(playerid);
		GetPlayerName(playerid,string,MAX_PLAYER_NAME);
		format(string,128,"[Team]%s: %s",string,cmdtext[idx]);
 		SendClientMessage(team,color,string);
 		return 1;
}
The problem is that this just dont work and i dont know what can be wrong.
Reply


Messages In This Thread
Team chat problem - by kamilbam - 29.12.2009, 19:46
Re: Team chat problem - by MadeMan - 29.12.2009, 19:54
Re: Team chat problem - by kamilbam - 29.12.2009, 20:08
Re: Team chat problem - by MadeMan - 29.12.2009, 20:13
Re: Team chat problem - by kamilbam - 29.12.2009, 20:18

Forum Jump:


Users browsing this thread: 1 Guest(s)