17.02.2012, 17:01
Hello,
Can you help me fixing this command:
Here are the warnings:
Can you help me fixing this command:
pawn Код:
CMD:tc(playerid,params[])
{
new str[128],message[100],Nam[MAX_PLAYER_NAME];
if(sscanf(params,"%s[100]",message)) return SendClientMessage(playerid,-1,"USAGE: /teamchat [text]");
GetPlayerName(playerid,Nam,sizeof(Nam));
format(str,sizeof(str),"[TEAM CHAT] %s: %s",Nam,message);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[playerid][pTeam] == TEAM_DRIFT);
{
SendClientMessage(i, COLOR_BLUE, str);
}
else if(PlayerInfo[playerid][pTeam] == TEAM_DRIFT2);
{
SendClientMessage(i, COLOR_BLUE, str);
}
else if(PlayerInfo[playerid][pTeam] == TEAM_DRIFT3);
{
SendClientMessage(i, COLOR_BLUE, str);
}
else if(PlayerInfo[playerid][pTeam] == TEAM_DRIFT4);
{
SendClientMessage(i, COLOR_BLUE, str);
}
else if(PlayerInfo[playerid][pTeam] == TEAM_DRIFT5);
{
SendClientMessage(i, COLOR_BLUE, str);
}
}
return 1;
}
pawn Код:
C:\Documents and Settings\Administrator\My Documents\Downloads\3hab\gamemodes\DriftGM1.pwn(2313) : error 036: empty statement
C:\Documents and Settings\Administrator\My Documents\Downloads\3hab\gamemodes\DriftGM1.pwn(2317) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\My Documents\Downloads\3hab\gamemodes\DriftGM1.pwn(2317) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\My Documents\Downloads\3hab\gamemodes\DriftGM1.pwn(2317) : error 001: expected token: ";", but found "if"
C:\Documents and Settings\Administrator\My Documents\Downloads\3hab\gamemodes\DriftGM1.pwn(2317) : error 036: empty statement
C:\Documents and Settings\Administrator\My Documents\Downloads\3hab\gamemodes\DriftGM1.pwn(2317) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.