[AJUDA] Erros, Reservando carros
#1

Estava reservando os carros no meu gm.

Que nao tinha reservados e ta tendo esses erros.

Erros:

Quote:

C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(16976) : error 001: expected token: ")", but found "{"
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(17006) : error 001: expected token: ",", but found "{"
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(17026) : error 001: expected token: ",", but found "{"
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(17036) : error 001: expected token: ",", but found "{"
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(17046) : error 001: expected token: ")", but found "{"
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(17056) : error 001: expected token: ")", but found "{"

E aqui todos os comandos >D

Se alguem me ajudar agradeзo




Quote:

if(IsPlayerInVehicle(playerid,BallasCars[0])||IsPlayerInVehicle(playerid,BallasCars[1])||IsPlayerInVehicle(playerid,BallasCars[2])||IsPlayerInVehicle(playerid,BallasCars[3])||IsPlayerInVehicle(playerid,BallasCars[4])||IsPlayerInVehicle(playerid,BallasCars[5]))
{
if(PlayerInfo[playerid][pMember] != 5 || PlayerInfo[playerid][pLeader] != 5)
{
SendClientMessage(playerid,COLOR_RED,"Vocк nгo й dos Ballas");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
//Sannewscar
if(IsPlayerInVehicle(playerid,SanNewsCar[0])||IsPlayerInVehicle(playerid,SanNewsCar[1])||IsPlayerInVehicle(playerid,SanNewsCar[2])||IsPlayerInVehicle(playerid,SanNewsCar[3])||IsPlayerInVehicle(playerid,SanNewsCar[4]))
{
if(PlayerInfo[playerid][pMember] != 9 || PlayerInfo[playerid][pLeader] != 9)
{
SendClientMessage(playerid,COLOR_RED,"Vocк nгo й da REDE GLOBO!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
//surfistas//
if(IsPlayerInVehicle(playerid,RiffaCars[0])||IsPlayerInVehicle(playerid,RiffaCars[1])||IsPlayerInVehicle(playerid,RiffaCars[2])||IsPlayerInVehicle(playerid,RiffaCars[3])||IsPlayerInVehicle(playerid,RiffaCars[4])||IsPlayerInVehicle(playerid,RiffaCars[5]))
{
if(PlayerInfo[playerid][pMember] != 11 || PlayerInfo[playerid][pLeader] != 11)
{
SendClientMessage(playerid,COLOR_RED,"Vocк nгo й um surfista!!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
//hitmans//
if(IsPlayerInVehicle(playerid,HitmanCar[0])||IsPlayerInVehicle(playerid,HitmanCar[1])||IsPlayerInVehicle(playerid,HitmanCar[2])||IsPlayerInVehicle(playerid,HitmanCar[3])||IsPlayerInVehicle(playerid,HitmanCar[4])||IsPlayerInVehicle(playerid,HitmanCar[5])||IsPlayerInVehicle(playerid,HitmanCar[6]))
{
if(PlayerInfo[playerid][pMember] != 8 || PlayerInfo[playerid][pLeader] !=
{
SendClientMessage(playerid,COLOR_RED,"Vocк nгo й um ASSASSINO!!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
//pm//
if(IsPlayerInVehicle(playerid,PMcars[0])||IsPlayerInVehicle(playerid,PMcars[1])||IsPlayerInVehicle(playerid,PMcars[2])||IsPlayerInVehicle(playerid,PMcars[3])||IsPlayerInVehicle(playerid,PMcars[4])||IsPlayerInVehicle(playerid,PMcars[5])||IsPlayerInVehicle(playerid,PMcars[6])||IsPlayerInVehicle(playerid,PMcars[7])||IsPlayerInVehicle(playerid,PMcars[8])||IsPlayerInVehicle(playerid,PMcars[9]))
{
if(PlayerInfo[playerid][pMember] != 1 || PlayerInfo[playerid][pLeader] != 1)
{
SendClientMessage(playerid,COLOR_RED,"Vocк nгo й um Policia Militar!!!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
//bombeiro
if(IsPlayerInVehicle(playerid,Bombeiro[0])||IsPlayerInVehicle(playerid,Bombeiro[1])||IsPlayerInVehicle(playerid,Bombeiro[2])||IsPlayerInVehicle(playerid,Bombeiro[3])||IsPlayerInVehicle(playerid,Bombeiro[4])||IsPlayerInVehicle(playerid,Bombeiro[5])||IsPlayerInVehicle(playerid,Bombeiro[6])||IsPlayerInVehicle(playerid,Bombeiro[7])||IsPlayerInVehicle(playerid,Bombeiro[8]))
{
if(PlayerInfo[playerid][pMember] != 4 || PlayerInfo[playerid][pLeader] != 4)
{
SendClientMessage(playerid,COLOR_RED,"Vocк nгo й um Bombeiro!!!!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
//Helibombeiro
if(IsPlayerInVehicle(playerid,Bombeiro[0]))
{
if(PlayerInfo[playerid][pMember] != 4 || PlayerInfo[playerid][pLeader] != 4)
{
SendClientMessage(playerid,COLOR_RED,"Vocк nгo й um Bombeiro!!!!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
//Comando Vermelho
if(IsPlayerInVehicle(playerid,Cmver[0])||IsPlayerInVehicle(playerid,Cmver[1])||IsPlayerInVehicle(playerid,Cmver[2])||IsPlayerInVehicle(playerid,Cmver[3])||IsPlayerInVehicle(playerid,Cmver[4]))
{
if(PlayerInfo[playerid][pMember] != 19 || PlayerInfo[playerid][pLeader] != 19)
{
SendClientMessage(playerid,COLOR_RED,"Vocк nгo й da Gang Comando Vermelho!!!!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
//LowridersCar
if(IsPlayerInVehicle(playerid,Lowriders[0])||IsPlayerInVehicle(playerid,Lowriders[1])||IsPlayerInVehicle(playerid,Lowriders[2])||IsPlayerInVehicle(playerid,Lowriders[3])||IsPlayerInVehicle(playerid,Lowriders[4]||IsPlayerInVehicle(playerid,Lowriders[5]))
{
if(PlayerInfo[playerid][pMember] != 10 || PlayerInfo[playerid][pLeader] != 10)
{
SendClientMessage(playerid,COLOR_RED,"Vocк nгo й da Gang Lowriders!!!!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
//DrifterCar
if(IsPlayerInVehicle(playerid,Drifters[0])||IsPlayerInVehicle(playerid,Drifters[1])||IsPlayerInVehicle(playerid,Drifters[2])||IsPlayerInVehicle(playerid,Drifters[3])||IsPlayerInVehicle(playerid,Drifters[4]))
{
if(PlayerInfo[playerid][pMember] != 18 || PlayerInfo[playerid][pLeader] != 1
{
SendClientMessage(playerid,COLOR_RED,"Vocк nгo й da Gang Drifters!!!!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
//Pcccars
if(IsPlayerInVehicle(playerid,Pcccars[0])||IsPlayerInVehicle(playerid,Pcccars[1])||IsPlayerInVehicle(playerid,Pcccars[2])||IsPlayerInVehicle(playerid,Pcccars[3])||IsPlayerInVehicle(playerid,Pcccars[4]))
{
if(PlayerInfo[playerid][pMember] != 20 || PlayerInfo[playerid][pLeader] != 20)
{
SendClientMessage(playerid,COLOR_RED,"Vocк nгo й da Gang PCC!!!!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
//PRcars
if(IsPlayerInVehicle(playerid,PRcars[0])||IsPlayerInVehicle(playerid,PRcars[1])||IsPlayerInVehicle(playerid,PRcars[2])||IsPlayerInVehicle(playerid,PRcars[3])||IsPlayerInVehicle(playerid,PRcars[4]||IsPlayerInVehicle(playerid,PRcars[5]||IsPlayerInVehicle(playerid,PRcars[6]||IsPlayerInVehicle(playerid,PRcars[7]||IsPlayerInVehicle(playerid,PRcars[8]||IsPlayerInVehicle(playerid,PRcars[9]))
{
if(PlayerInfo[playerid][pMember] != 14 || PlayerInfo[playerid][pLeader] != 14)
{
SendClientMessage(playerid,COLOR_RED,"Vocк nгo й um Policial Rodoviario!!!!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
//prefeitocars
if(IsPlayerInVehicle(playerid,prefeitocars[0])||IsPlayerInVehicle(playerid,prefeitocars[1])||IsPlayerInVehicle(playerid,prefeitocars[2])||IsPlayerInVehicle(playerid,prefeitocars[3])||IsPlayerInVehicle(playerid,prefeitocars[4]))
{
if(PlayerInfo[playerid][pMember] != 7 || PlayerInfo[playerid][pLeader] != 7)
{
SendClientMessage(playerid,COLOR_RED,"Vocк nгo й da Prefeitura!!!!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
//SwatCar
if(IsPlayerInVehicle(playerid,SwatCar[0])||IsPlayerInVehicle(playerid,SwatCar[1])||IsPlayerInVehicle(playerid,SwatCar[2])||IsPlayerInVehicle(playerid,SwatCar[3])||IsPlayerInVehicle(playerid,SwatCar[4]||IsPlayerInVehicle(playerid,SwatCar[5]||IsPlayerInVehicle(playerid,SwatCar[6]))
{
if(PlayerInfo[playerid][pMember] != 21 || PlayerInfo[playerid][pLeader] != 21)
{
SendClientMessage(playerid,COLOR_RED,"Vocк nгo й do B.O.P.E!!!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
//TriadsCar
if(IsPlayerInVehicle(playerid,TriadsCar[0])||IsPlayerInVehicle(playerid,TriadsCar[1])||IsPlayerInVehicle(playerid,TriadsCar[2])||IsPlayerInVehicle(playerid,TriadsCar[3])||IsPlayerInVehicle(playerid,TriadsCar[4]||IsPlayerInVehicle(playerid,TriadsCar[5]||IsPlayerInVehicle(playerid,TriadsCar[6]))
{
if(PlayerInfo[playerid][pMember] != 16 || PlayerInfo[playerid][pLeader] != 16)
{
SendClientMessage(playerid,COLOR_RED,"Vocк nгo й da Mafia Triads!!!!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
//AztecasCars
if(IsPlayerInVehicle(playerid,AztecasCars[0])||IsPlayerInVehicle(playerid,AztecasCars[1])||IsPlayerInVehicle(playerid,AztecasCars[2])||IsPlayerInVehicle(playerid,AztecasCars[3])||IsPlayerInVehicle(playerid,AztecasCars[4]||IsPlayerInVehicle(playerid,AztecasCars[5]))
{
if(PlayerInfo[playerid][pMember] != 15 || PlayerInfo[playerid][pLeader] != 15)
{
SendClientMessage(playerid,COLOR_RED,"Vocк nгo й da Gang Aztecas!!!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
//VagosCars
if(IsPlayerInVehicle(playerid,VagosCars[0])||IsPlayerInVehicle(playerid,VagosCars[1])||IsPlayerInVehicle(playerid,VagosCars[2])||IsPlayerInVehicle(playerid,VagosCars[3])||IsPlayerInVehicle(playerid,VagosCars[4]||IsPlayerInVehicle(playerid,VagosCars[5]))
{
if(PlayerInfo[playerid][pMember] != 12 || PlayerInfo[playerid][pLeader] != 12)
{
SendClientMessage(playerid,COLOR_RED,"Vocк nгo й da Gang Aztecas!!!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}

Reply
#2

Nгo vai precisar fazer isso
Код:
)||IsPlayerInVehicle
Preste bem atenзгo irei repassar uma ъnica vez

pawn Код:
if(IsPlayerInVehicle(playerid,BallasCars[0] || IsPlayerInVehicle(playerid,BallasCars[1] || IsPlayerInVehicle(playerid,BallasCars[2] || IsPlayerInVehicle(playerid,BallasCars[3] || IsPlayerInVehicle(playerid,BallasCars[4] || IsPlayerInVehicle(playerid,BallasCars[5])
  {
   if(PlayerInfo[playerid][pMember] != 5 || PlayerInfo[playerid][pLeader] != 5)
   {
     SendClientMessage(playerid,COLOR_RED,"Vocк nгo й dos Ballas");
     RemovePlayerFromVehicle(playerid);
     TogglePlayerControllable(playerid, 1);
     return 1;
    }
    return 1;
   }
Sak's? ^^
Reply
#3

Vlws se e demais kk me ajudo 2 vezes

@OFF O /gov ainda ta faltando >D Mais vlws s2
Reply
#4

Duvida no Final Usa )) ou ) ?
Reply
#5

Olha os erros.

C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(16976) : error 001: expected token: ")", but found "{"
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(16986) : error 001: expected token: ",", but found "{"
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(16996) : error 001: expected token: ",", but found "{"
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(17006) : error 001: expected token: ",", but found "{"
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(17016) : error 001: expected token: ",", but found "{"
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(17026) : error 001: expected token: ",", but found "{"
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(17036) : error 001: expected token: ",", but found "{"
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(17046) : error 001: expected token: ",", but found "{"
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(17056) : error 001: expected token: ",", but found "{"
Reply
#6

Mandei errado pra vocк desculpa...
Vou refazer um em outro estilo e vocк muda.
Reply
#7

Quote:
Originally Posted by Jorge_Hard
Посмотреть сообщение
Olha os erros.

C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(16976) : error 001: expected token: ")", but found "{"
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(16986) : error 001: expected token: ",", but found "{"
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(16996) : error 001: expected token: ",", but found "{"
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(17006) : error 001: expected token: ",", but found "{"
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(17016) : error 001: expected token: ",", but found "{"
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(17026) : error 001: expected token: ",", but found "{"
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(17036) : error 001: expected token: ",", but found "{"
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(17046) : error 001: expected token: ",", but found "{"
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(17056) : error 001: expected token: ",", but found "{"
Arrumei uma coisa no cуdigo do Lucas, isto deve resolver o seu problema:

pawn Код:
if(IsPlayerInVehicle(playerid,BallasCars[0]) || IsPlayerInVehicle(playerid,BallasCars[1]) || IsPlayerInVehicle(playerid,BallasCars[2]) || IsPlayerInVehicle(playerid,BallasCars[3]) || IsPlayerInVehicle(playerid,BallasCars[4]) || IsPlayerInVehicle(playerid,BallasCars[5]))
{
    if(PlayerInfo[playerid][pMember] != 5 || PlayerInfo[playerid][pLeader] != 5)
    {
        SendClientMessage(playerid,COLOR_RED,"Vocк nгo й dos Ballas");
        RemovePlayerFromVehicle(playerid);
        TogglePlayerControllable(playerid, 1);
        return 1;
    }
    return 1;
}
Espero ter ajudado
Reply
#8

pawn Код:
new vid = GetPlayerVehicleID(playerid);
pawn Код:
if(vid==BallasCars[0]||vid==BallasCars[1]||vid==BallasCars[2]||vid==BallasCars[3]||vid==BallasCars[4]||vid==BallasCars[5]||vid==BallasCars[6]||vid==BallasCars[7]||vid==BallasCars[8]||vid==BallasCars[9]||vid==BallasCars[10])
        {
            if(PlayerInfo[playerid][pMembro] == 18 || PlayerInfo[playerid][pLider] == 18) { }
            else
            {
                SendClientMessage(playerid,COLOR_GREY,"Vocк nгo й dos Ballas");
                RemovePlayerFromVehicle(playerid);
                TogglePlayerControllable(playerid, 1);
            }
        }
Esse й um exemplo...
Vocк pode mudar.
E desculpa novamente por ter postado o cуdigo errado :S
Reply
#9

jorge posta no formato [pawn*][/pawn]
fica melhor pra entender *-* eu acho
sу tira o *
Reply
#10

Sim,o cуdigo fica muito extenso.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)