[Pedido] Sistema de Ligar Carro
#3

Quote:
Originally Posted by paulor
Посмотреть сообщение
pawn Код:
new bool: CarOff[MAX_VEHICLES];

//Verificar
for(new i = (sizeof(CarsGroove) - 1); -1 < i; --i) {
    if(vehicleid == CarsGroove[i]) {
        if(Equipe[playerid] != GROOVE && CarOff[vehicleid]) {
            RemovePlayerFromVehicle(playerid);
            SendClientMessage(playerid, -1, "Tu nгo й da Groove meu Parзa...");
        }
    }
}

if(!strcmp("/motoron", cmdtext, true, 10)) {
    new Params[7], Veh = GetPlayerVehicleID(playerid);
    if(Veh) {
        if(!CarOff[Veh]) {
            CarOff[Veh] = true;
            GetVehicleParamsEx(Veh, Params[0], Params[1], Params[2], Params[3], Params[4], Params[5], Params[6]);
            SetVehicleParamsEx(Veh, VEHICLE_PARAMS_ON, Params[1], Params[2], Params[3], Params[4], Params[5], Params[6]);
            SendClientMessage(playerid, 0xFFFFFFAA, "Veiculo {2F991A}Ligado!");
        }
    }
}

if(!strcmp("/motoroff", cmdtext, true, 10)) {
    new Params[7], Veh = GetPlayerVehicleID(playerid);
    if(Veh) {
        if(CarOff[Veh]) {
            CarOff[Veh] = false;
            GetVehicleParamsEx(Veh, Params[0], Params[1], Params[2], Params[3], Params[4], Params[5], Params[6]);
            SetVehicleParamsEx(Veh, VEHICLE_PARAMS_OFF, Params[1], Params[2], Params[3], Params[4], Params[5], Params[6]);
            SendClientMessage(playerid, 0xFFFFFFAA, "Veiculo {E31919}Desligado!");
        }
    }
}
Alterei CarsGrove para a chave dos carros da Grove no meu GM ficou assim,
pawn Код:
for new i = (sizeof(IsAGrooveCar) - 1); -1 < i; --i)
    {
    if(vehicleid == IsAGrooveCar[i]) {
        if(Equipe[playerid] != GROOVE && CarOff[vehicleid]) {
            RemovePlayerFromVehicle(playerid);
            SendClientMessage(playerid, -1, "Tu nгo й da Groove meu Parзa...");
        }
    }
}
Porem deu esses erros:
pawn Код:
C:\Documents and Settings\Michel\Desktop\Brasil Life City\gamemodes\blc.pwn(26) : warning 201: redefinition of constant/macro (symbol "SPECIAL_ACTION_CUFFED")
C:\Documents and Settings\Michel\Desktop\Brasil Life City\gamemodes\blc.pwn(14518) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Michel\Desktop\Brasil Life City\gamemodes\blc.pwn(18970) : error 072: "sizeof" operator is invalid on "function" symbols
C:\Documents and Settings\Michel\Desktop\Brasil Life City\gamemodes\blc.pwn(18970) : error 001: expected token: "do", but found ")"
C:\Documents and Settings\Michel\Desktop\Brasil Life City\gamemodes\blc.pwn(18970) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Michel\Desktop\Brasil Life City\gamemodes\blc.pwn(18970) : fatal error 107: too many error messages on one line
Reply


Messages In This Thread
Sistema de Ligar Carro - by Strok - 28.08.2012, 21:42
Re: Sistema de Ligar Carro - by paulor - 28.08.2012, 22:30
Re: Sistema de Ligar Carro - by Strok - 28.08.2012, 22:56
Re: Sistema de Ligar Carro - by paulor - 28.08.2012, 23:20
Re: Sistema de Ligar Carro - by Adonay - 28.08.2012, 23:39
Re: Sistema de Ligar Carro - by paulor - 29.08.2012, 01:21
Re: Sistema de Ligar Carro - by Strok - 29.08.2012, 16:47
Re: Sistema de Ligar Carro - by paulor - 29.08.2012, 17:00

Forum Jump:


Users browsing this thread: 1 Guest(s)