27.10.2010, 17:38
Hey
I make a chat team command. You can speak with the players of your team by doing /t.
Here is my code :
But ingame I write "/t come on guys" and server says "SERVER : UNKNOWN COMMAND" but if I only write "/t" server says :" Equipe: Amator(pseudo):".
I don't see what's wrong? Can you help?
I make a chat team command. You can speak with the players of your team by doing /t.
Here is my code :
Код:
if(!strcmp(cmdtext, "/t", true)) { new gTeam[MAX_PLAYERS]; new string[128], Player[MAX_PLAYER_NAME]; GetPlayerName(playerid, Player, MAX_PLAYER_NAME); format(string, 128, "Equipe: %s: %s", Player, cmdtext[1]); for(new i=0; i<MAX_PLAYERS; i++) if(gTeam[i]==gTeam[playerid]) SendClientMessage(i, 0xFFFF00FF, string); return 1; }
I don't see what's wrong? Can you help?