SA-MP Forums Archive
[Ajuda] Erro Gm Camioneiros - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Erro Gm Camioneiros (/showthread.php?tid=500724)



Erro Gm Camioneiros - marcos_orkut - 14.03.2014

ola Peguei para editar uma gm de camioneiros so que estou aprendedo ainda ela deu este erro
http://prntscr.com/30snt3

Quote:

// Check if the player is not a pilot
if (APlayerData[playerid][PlayerClass] != ClassPilot)
{
// First check if the vehicle is a static vehicle (player can still use a bought plane that he bought in his house,
// as a bought vehicle isn't static)
if (AVehicleData[vid][StaticVehicle] == true)
{
// Check if the entered vehicle is a plane or helicopter vehicle
switch (GetVehicleModel(vid))
{
case VehicleShamal, VehicleNevada, VehicleStuntPlane, VehicleDodo, VehicleMaverick, VehicleCargobob:
{
// Force the player out of the vehicle
RemovePlayerFromVehicle(playerid);
// Turn off the lights and engine
GetVehicleParamsEx(vid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vid, 0, 0, alarm, doors, bonnet, boot, objective);
// Let the player know he cannot use a cop car
SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Vocк nгo pode usar um veнculo de piloto.");
}
}
}
}
}
}

return 1;




Re: Erro Gm Camioneiros - Stroon - 14.03.2014

Quer aprender faзa sua Gm do 0, Irб aprender bem mais rбpido do que pegar Gm da internet.


Re: Erro Gm Camioneiros - Delete_ - 14.03.2014

Quote:
Originally Posted by Stroon
Посмотреть сообщение
Quer aprender faзa sua Gm do 0, Irб aprender bem mais rбpido do que pegar Gm da internet.
Errado.


Re: Erro Gm Camioneiros - GabrielRibeiro - 14.03.2014

Quote:
Originally Posted by marcos_orkut
Посмотреть сообщение
ola Peguei para editar uma gm de camioneiros so que estou aprendedo ainda ela deu este erro
http://prntscr.com/30snt3
Bom amigo significa que vc nгo criou a "new"

Assim como vocк fez lб em cima na VehicleShamal faзa com VehicleNevada.

Ex:

new VehicleNevada;

pawn Код:
if (APlayerData[playerid][PlayerClass] != ClassPilot)
{
    if (AVehicleData[vid][StaticVehicle] == true)
    {
        switch (GetVehicleModel(vid))
        {
            case VehicleShamal, VehicleNevada, VehicleStuntPlane, VehicleDodo, VehicleMaverick, VehicleCargobob:
        {
        RemovePlayerFromVehicle(playerid);
        GetVehicleParamsEx(vid, engine, lights, alarm, doors, bonnet, boot, objective);
        SetVehicleParamsEx(vid, 0, 0, alarm, doors, bonnet, boot, objective);
        SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Vocк nгo pode usar um veнculo de piloto.");
    }
}