[Ajuda] Segundo emprego de Motorista de Busгo
#1

To tentando fazer um outro emprego com base no meu emprego de motorista, seguiria uma rota parecida sу que com coordernadas diferentes, mas n to conseguindo fazer

====================
motoristas no meu sv
====================
/terminais
pawn Код:
if(strcmp(cmd,"/terminais",true )==0)
    {
        if(IsPlayerConnected(playerid))
        {
            new Veh = GetPlayerVehicleID(playerid);
            if(!IsAOniCar(Veh))
            {
                SendClientMessage(playerid, COLOR_GREY, "   Voce nгo estб em um фnibus!");
                return 1;
            }
            if(PlayerInfo[playerid][pEmprego] == 9)
            {
                if(TransportDuty[playerid] > 0)
                {
                    if(TransportDuty[playerid] == 2)
                    {
                        BusDrivers -= 1;
                    }
                    TransportDuty[playerid] = 0;
                    format(string, sizeof(string), "* Voce estб de folga e recebeu $%d.", TransportMoney[playerid]);
                    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                    GivePlayerMoney(playerid, TransportMoney[playerid]);
                    ConsumingMoney[playerid] = 1; TransportValue[playerid] = 0; TransportMoney[playerid] = 0;
                    return 1;
                }
                else
                {
                    BusDrivers += 1; TransportDuty[playerid] = 2; TransportValue[playerid] = 5;
                    format(string, sizeof(string), "Motorista de onibus %s estб em serviзo, Corrida: $5 - Vб para o terminal mais prуximo", PlayerName(playerid));
                    OOCNews(TEAM_GROVE_COLOR,string);
                    SendClientMessage(playerid, COLOR_RED,"Vocк comeзou o circuito, siga os checkpoints atй finalizar a viajem");
                    SendClientMessage(playerid, COLOR_RED,"Vocк receberб R$5 a cada checkpoint que passar.");
                    SendClientMessage(playerid, COLOR_RED,"USE: /terminais novamente para parar o serviзo");
                    SetPlayerCheckpoint(playerid, 1369.0927,-1736.0730,13.4787,8.0);
                    gPlayerTerminal[playerid] = 1;
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY,"Vocк nгo й um motorista de фnibus.");
            }
        }
        return 1;
    }
Lб embaixo
pawn Код:
if (gPlayerTerminal[playerid] != 0)
    {
        if (IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == 2)
        {
            switch(gPlayerTerminal[playerid])
            {
                case 1:
                {
                    SetPlayerCheckpoint(playerid,1533.1049,-1610.5599,13.4766, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 2:
                {
                    SetPlayerCheckpoint(playerid,1736.9674,-1601.5439,13.5225, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 3:
                {
                    SetPlayerCheckpoint(playerid,1818.3682,-1694.8099,13.4831, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 4:
                {
                    SetPlayerCheckpoint(playerid,1819.0150,-1872.5851,13.5023, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 5:
                {
                    SetPlayerCheckpoint(playerid,1987.3519,-2169.5242,13.4809, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 6:
                {
                    SetPlayerCheckpoint(playerid,2274.7886,-2274.3623,13.4837, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 7:
                {
                    SetPlayerCheckpoint(playerid,1996.1328,-2163.6931,13.4833, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 8:
                {
                    SetPlayerCheckpoint(playerid,1964.8201,-2077.6494,13.4842, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 9:
                {
                    SetPlayerCheckpoint(playerid,1825.4634,-1906.8052,13.5044, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 10:
                {
                    SetPlayerCheckpoint(playerid,1824.8920,-1705.7137,13.4842, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 11:
                {
                    SetPlayerCheckpoint(playerid,1526.6500,-1612.1188,13.4907, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 12:
                {
                    SetPlayerCheckpoint(playerid,1373.5723,-1729.5554,13.4952, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 13:
                {
                    //new conta = gPlayerTerminal[playerid]*700;
                    format(gstring, 128, "Vocк completou a rota do фnibus, use /terminais para iniciar novamente a rota.");
                    SendClientMessage(playerid, COLOR_YELLOW, gstring);
                    SendClientMessage(playerid, COLOR_YELLOW, "Use /sair para sair do фnibus.");
                    BusrouteEnd(playerid);
                }
            }
            gPlayerTerminal[playerid]++;
            PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
            return 1;
        }
    }
    DisablePlayerCheckpoint(playerid);
    return 1;
}

To tentando fazer assim



pawn Код:
if(strcmp(cmd,"/terminais2",true )==0)
    {
        if(IsPlayerConnected(playerid))
        {
            /*new Veh = GetPlayerVehicleID(playerid);
            if(!IsAOniCar(Veh))
            {
                SendClientMessage(playerid, COLOR_GREY, "   Voce nгo estб em um фnibus!");
                return 1;
            }*/

            if(PlayerInfo[playerid][pEmprego] == 9)
            {
                if(TransportDuty[playerid] > 0)
                {
                    if(TransportDuty[playerid] == 2)
                    {
                        BusDrivers -= 1;
                    }
                    TransportDuty[playerid] = 0;
                    format(string, sizeof(string), "* Voce estб de folga e recebeu $%d.", TransportMoney[playerid]);
                    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                    GivePlayerMoney(playerid, TransportMoney[playerid]);
                    ConsumingMoney[playerid] = 1; TransportValue[playerid] = 0; TransportMoney[playerid] = 0;
                    return 1;
                }
                else
                {
                    BusDrivers += 1; TransportDuty[playerid] = 2; TransportValue[playerid] = 5;
                    format(string, sizeof(string), "Motorista de onibus %s estб em serviзo, Corrida: $5 - Vб para o terminal mais prуximo", PlayerName(playerid));
                    OOCNews(TEAM_GROVE_COLOR,string);
                    SendClientMessage(playerid, COLOR_RED,"Vocк comeзou o circuito, siga os checkpoints atй finalizar a viajem");
                    SendClientMessage(playerid, COLOR_RED,"Vocк receberб R$5 a cada checkpoint que passar.");
                    SendClientMessage(playerid, COLOR_RED,"USE: /terminais novamente para parar o serviзo");
                    SetPlayerCheckpoint(playerid, 3075.0117,-887.1799,-0.0692,8.0);
                    gPlayerTerminalTrafic[playerid] = 2;
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY,"Vocк nгo й um motorista de фnibus.");
            }
        }
        return 1;
    }


pawn Код:
if (gPlayerTerminal[playerid] == 2)
    {
        if (IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == 2)
        {
            switch(gPlayerTerminal[playerid])
            {
                case 1:
                {
                    SetPlayerCheckpoint(playerid,3057.1824,-1106.7277,0.1267, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 2:
                {
                    SetPlayerCheckpoint(playerid,3104.5378,-1430.8774,0.0305, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 3:
                {
                    SetPlayerCheckpoint(playerid,3010.3384,-2050.9111,0.3503, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 4:
                {
                    SetPlayerCheckpoint(playerid,3088.6575,-2058.3447,0.1430, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 5:
                {
                    SetPlayerCheckpoint(playerid,3133.3762,-1648.9094,0.4455, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 6:
                {
                    SetPlayerCheckpoint(playerid,3221.7302,-1449.7368,-0.2551, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 7:
                {
                    SetPlayerCheckpoint(playerid,3253.5100,-1316.6145,-0.1479, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 8:
                {
                    SetPlayerCheckpoint(playerid,3230.3428,-1086.6702,0.5183, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 9:
                {
                    SetPlayerCheckpoint(playerid,3119.9966,-815.8932,-0.1494, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 10:
                {
                    SetPlayerCheckpoint(playerid,3077.6621,-740.9439,0.4551, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 11:
                {
                    SetPlayerCheckpoint(playerid,3057.6277,-795.7910,-0.3434, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 12:
                {
                    SetPlayerCheckpoint(playerid,3080.1938,-845.4276,-0.2364, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 13:
                {
                    //new conta = gPlayerTerminal[playerid]*700;
                    format(gstring, 128, "Vocк completou a rota do фnibus, use /terminais para iniciar novamente a rota.");
                    SendClientMessage(playerid, COLOR_YELLOW, gstring);
                    SendClientMessage(playerid, COLOR_YELLOW, "Use /sair para sair do фnibus.");
                    BusrouteEnd(playerid);
                }
            }
            gPlayerTerminal[playerid]++;
            PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
            return 1;
        }
    }
    DisablePlayerCheckpoint(playerid);
    return 1;
}
/\ ta dando esses erros qnd eu coloco essa parte aqui

pawn Код:
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18760) : error 010: invalid function or declaration
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18762) : error 010: invalid function or declaration
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18764) : error 010: invalid function or declaration
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18766) : error 010: invalid function or declaration
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18773) : error 010: invalid function or declaration
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18780) : error 010: invalid function or declaration
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18787) : error 010: invalid function or declaration
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18794) : error 010: invalid function or declaration
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18801) : error 010: invalid function or declaration
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18808) : error 010: invalid function or declaration
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18815) : error 010: invalid function or declaration
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18822) : error 010: invalid function or declaration
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18829) : error 010: invalid function or declaration
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18836) : error 010: invalid function or declaration
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18843) : error 010: invalid function or declaration
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18850) : error 010: invalid function or declaration
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18853) : error 021: symbol already defined: "format"
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18857) : error 054: unmatched closing brace ("}")
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18861) : error 010: invalid function or declaration
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18865) : error 010: invalid function or declaration
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


20 Errors.
Reply
#2

Pq ta dando esses erros qnd eu boto essa parte?
pawn Код:
if (gPlayerTerminal[playerid] == 2)
    {
        if (IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == 2)
        {
            switch(gPlayerTerminal[playerid])
            {
                case 1:
                {
                    SetPlayerCheckpoint(playerid,3057.1824,-1106.7277,0.1267, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 2:
                {
                    SetPlayerCheckpoint(playerid,3104.5378,-1430.8774,0.0305, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 3:
                {
                    SetPlayerCheckpoint(playerid,3010.3384,-2050.9111,0.3503, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 4:
                {
                    SetPlayerCheckpoint(playerid,3088.6575,-2058.3447,0.1430, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 5:
                {
                    SetPlayerCheckpoint(playerid,3133.3762,-1648.9094,0.4455, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 6:
                {
                    SetPlayerCheckpoint(playerid,3221.7302,-1449.7368,-0.2551, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 7:
                {
                    SetPlayerCheckpoint(playerid,3253.5100,-1316.6145,-0.1479, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 8:
                {
                    SetPlayerCheckpoint(playerid,3230.3428,-1086.6702,0.5183, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 9:
                {
                    SetPlayerCheckpoint(playerid,3119.9966,-815.8932,-0.1494, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 10:
                {
                    SetPlayerCheckpoint(playerid,3077.6621,-740.9439,0.4551, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 11:
                {
                    SetPlayerCheckpoint(playerid,3057.6277,-795.7910,-0.3434, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 12:
                {
                    SetPlayerCheckpoint(playerid,3080.1938,-845.4276,-0.2364, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 13:
                {
                    //new conta = gPlayerTerminal[playerid]*700;
                    format(gstring, 128, "Vocк completou a rota do фnibus, use /terminais para iniciar novamente a rota.");
                    SendClientMessage(playerid, COLOR_YELLOW, gstring);
                    SendClientMessage(playerid, COLOR_YELLOW, "Use /sair para sair do фnibus.");
                    BusrouteEnd(playerid);
                }
            }
            gPlayerTerminal[playerid]++;
            PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
            return 1;
        }
    }
    DisablePlayerCheckpoint(playerid);
    return 1;
}
Reply
#3

Qnd isso й adicionado
pawn Код:
if (gPlayerTerminal[playerid] == 2)
    {
        if (IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == 2)
        {
            switch(gPlayerTerminal[playerid])
            {
                case 1:
                {
                    SetPlayerCheckpoint(playerid,3057.1824,-1106.7277,0.1267, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 2:
                {
                    SetPlayerCheckpoint(playerid,3104.5378,-1430.8774,0.0305, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 3:
                {
                    SetPlayerCheckpoint(playerid,3010.3384,-2050.9111,0.3503, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 4:
                {
                    SetPlayerCheckpoint(playerid,3088.6575,-2058.3447,0.1430, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 5:
                {
                    SetPlayerCheckpoint(playerid,3133.3762,-1648.9094,0.4455, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 6:
                {
                    SetPlayerCheckpoint(playerid,3221.7302,-1449.7368,-0.2551, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 7:
                {
                    SetPlayerCheckpoint(playerid,3253.5100,-1316.6145,-0.1479, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 8:
                {
                    SetPlayerCheckpoint(playerid,3230.3428,-1086.6702,0.5183, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 9:
                {
                    SetPlayerCheckpoint(playerid,3119.9966,-815.8932,-0.1494, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 10:
                {
                    SetPlayerCheckpoint(playerid,3077.6621,-740.9439,0.4551, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 11:
                {
                    SetPlayerCheckpoint(playerid,3057.6277,-795.7910,-0.3434, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 12:
                {
                    SetPlayerCheckpoint(playerid,3080.1938,-845.4276,-0.2364, 5.0);
                    SetTimerEx("busstoptimer", 10000, false, "i", playerid);
                    TogglePlayerControllable(playerid, 0);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 13:
                {
                    //new conta = gPlayerTerminal[playerid]*700;
                    format(gstring, 128, "Vocк completou a rota do фnibus, use /terminais para iniciar novamente a rota.");
                    SendClientMessage(playerid, COLOR_YELLOW, gstring);
                    SendClientMessage(playerid, COLOR_YELLOW, "Use /sair para sair do фnibus.");
                    BusrouteEnd(playerid);
                }
            }
            gPlayerTerminal[playerid]++;
            PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
            return 1;
        }
    }
    DisablePlayerCheckpoint(playerid);
    return 1;
}
Da esses erros
pawn Код:
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18760) : error 010: invalid function or declaration
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18762) : error 010: invalid function or declaration
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18764) : error 010: invalid function or declaration
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18766) : error 010: invalid function or declaration
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18773) : error 010: invalid function or declaration
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18780) : error 010: invalid function or declaration
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18787) : error 010: invalid function or declaration
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18794) : error 010: invalid function or declaration
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18801) : error 010: invalid function or declaration
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18808) : error 010: invalid function or declaration
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18815) : error 010: invalid function or declaration
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18822) : error 010: invalid function or declaration
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18829) : error 010: invalid function or declaration
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18836) : error 010: invalid function or declaration
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18843) : error 010: invalid function or declaration
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18850) : error 010: invalid function or declaration
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18853) : error 021: symbol already defined: "format"
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18857) : error 054: unmatched closing brace ("}")
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18861) : error 010: invalid function or declaration
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA2.pwn(18865) : error 010: invalid function or declaration
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


20 Errors.

E essas sгo as linhas com erros

pawn Код:
(18559) :   if (gPlayerTerminal[playerid] == 2)
(18561) :       if (IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == 2)
(18563) : switch(gPlayerTerminal[playerid])
(18565) : case 1:
(18572) : case 2:
(18579) : case 3:
(18586) : case 4:
(18593) : case 5:
(18600) : case 6:
(18607) : case 7:
(18614) : case 8:
(18621) : case 9:
(18628) : case 10:
(18635) : case 11:
(18642) : case 12:
(18649) : case 13:
(18652) :                   format(gstring, 128, "Vocк completou a rota do фnibus, use /terminais para iniciar novamente a rota.");
(18656) :               }
(18660) :           return 1;
(18664) :   return 1;
Isso й uma das unicas coisas q eu n to conseguindo consertar
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)