31.10.2009, 20:19
Ok i have this team chat command
I get this annoying error
Код:
if(!strcmp("/d", cmdtext, true))
{
new PlayerName[MAX_PLAYERS];
new playername[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid, playername, sizeof(playername));
for(new i = 0; i < MAX_PLAYERS; i++)
{
format(string, sizeof(string), "Police [%s]: ", playername)
if(gTeam[playerid] == TEAM_LSPD)
{
SendClientMessage(playerid, COLOR_GOLD, string);
}
return 1;
}
return 0;
}
Код:
error 001: expected token: ";", but found "if"


, but it spams