error (invalid function or declaration)...help
#5

One extra bracket found:
pawn Код:
else if(IsPlayerInVehicle(playerid, gerpro))
        {
            switch(GetPlayerTeam(playerid))
            {
                case TEAM_GERMANY:
                {
                    SetPlayerPos(playerid,x,y,z+2.0);
                    SendClientMessage(playerid, COLOR_RED, "[ERROR]: You can't capture your team prototype.");
                    RemovePlayerFromVehicle(playerid);
                }
                case TEAM_AFGHANISTAN:
                {
                    TogglePlayerAllDynamicCPs(playerid, 0);
                    SetPlayerCheckpoint(playerid, -2241.5439,2463.1736,4.9844, 6.00);
                    GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
                    IsPrototyping{playerid } = true;
                    foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_GERMANY)
                    SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
                }
                case TEAM_PAKISTAN:
                {
                    TogglePlayerAllDynamicCPs(playerid, 0);
                    SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
                    GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
                    IsPrototyping{playerid } = true;
                    foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_GERMANY)
                    SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
                }
                case TEAM_CHINA:
                {
                    TogglePlayerAllDynamicCPs(playerid, 0);
                    SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
                    GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
                    IsPrototyping{playerid } = true;
                    foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_GERMANY)
                    SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
                }
                case TEAM_FRANCE:
                {
                    TogglePlayerAllDynamicCPs(playerid, 0);
                    SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
                    GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
                    IsPrototyping{playerid } = true;
                    foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_GERMANY)
                    SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
                }
                case TEAM_NETHERLANDS:
                {
                    TogglePlayerAllDynamicCPs(playerid, 0);
                    SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
                    GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
                    IsPrototyping{playerid } = true;
                    foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_GERMANY)
                    SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
                }
                case TEAM_AUS:
                {
                    TogglePlayerAllDynamicCPs(playerid, 0);
                    SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
                    GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
                    IsPrototyping{playerid } = true;
                    foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_GERMANY)
                    SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
                }
                case TEAM_INDIA:
                {
                    TogglePlayerAllDynamicCPs(playerid, 0);
                    SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
                    GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
                    IsPrototyping{playerid } = true;
                    foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_GERMANY)
                    SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
                }
                case TEAM_RUSSIA:
                {
                    TogglePlayerAllDynamicCPs(playerid, 0);
                    SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
                    GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
                    IsPrototyping{playerid } = true;
                    foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_GERMANY)
                    SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
                }
                case TEAM_USA:
                {
                    TogglePlayerAllDynamicCPs(playerid, 0);
                    SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
                    GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
                    IsPrototyping{playerid } = true;
                    foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_GERMANY)
                    SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
                }
                case TEAM_BRAZIL:
                {
                    TogglePlayerAllDynamicCPs(playerid, 0);
                    SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
                    GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
                    IsPrototyping{playerid } = true;
                    foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_GERMANY)
                    SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
                }
                case TEAM_UK:
                {
                    TogglePlayerAllDynamicCPs(playerid, 0);
                    SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
                    GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
                    IsPrototyping{playerid } = true;
                    foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_GERMANY)
                    SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
                }
                }
            }
        }
In that code section, bottom of it
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)