Some errors[Giving REP]
#1

Hello,

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;
}
Here are the warnings:

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.
Reply


Messages In This Thread
Some errors[Giving REP] - by Guitar - 17.02.2012, 17:01
Re: Some errors[Giving REP] - by Guitar - 17.02.2012, 17:36
Re: Some errors[Giving REP] - by thimo - 17.02.2012, 17:39
Re: Some errors[Giving REP] - by Guitar - 17.02.2012, 17:43
Re: Some errors[Giving REP] - by Toreno - 17.02.2012, 17:45
Re: Some errors[Giving REP] - by Zarky - 17.02.2012, 17:48
Re: Some errors[Giving REP] - by Guitar - 17.02.2012, 17:49

Forum Jump:


Users browsing this thread: 1 Guest(s)