SA-MP Forums Archive
AttachObjectToVeicle nгo tб funcionando ou tб errado? - 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: AttachObjectToVeicle nгo tб funcionando ou tб errado? (/showthread.php?tid=390256)



AttachObjectToVeicle nгo tб funcionando ou tб errado? - duuuwh - 05.11.2012

Entгo gente, meu amigo tava me ajudando pra colocar um objeto no veнculo, mas nгo aparece nele, alguem ve se tem algo errado aqui?

PHP код:
for(new vehicleidvehicleid MAX_VEHICLESvehicleid++)
    {
        if(
GetVehicleModel(vehicleid) == 525)
    {
        
sirene[vehicleid] = CreateObject(18650 0.00.00.00.00.00.0400.0);
        
AttachObjectToVehiclesirene[vehicleid] , vehicleid 0.00.00.0+20.00.00.0);
    }

Grato..


Re: AttachObjectToVeicle nгo tб funcionando ou tб errado? - mau.tito - 05.11.2012

Tenta ae numca mexi com isso mas deve funfar!
pawn Код:
for(new vehicleid; vehicleid < MAX_VEHICLES; vehicleid++)
{
    if(GetVehicleModel(vehicleid) == 525)
    {
        new sirene = CreateObject(18650 , 0, 0, 0, 0, 0, 0);
        AttachObjectToVehicle(sirene, GetPlayerVehicleID(vehicleid), 0.0, 0.0, 0.0+2, 0.0, 0.0, 0.0);

    }
}



Re: AttachObjectToVeicle nгo tб funcionando ou tб errado? - duuuwh - 05.11.2012

Nгo funcionou. ._.


Re: AttachObjectToVeicle nгo tб funcionando ou tб errado? - Rodney Francalim - 05.11.2012

pawn Код:
for(new vehicleid; vehicleid < MAX_VEHICLES; vehicleid++)
{
    if(GetVehicleModel(vehicleid) == 525)
    {
        new idsirene = CreateObject(...);
        AttachObjectToVehicle(idsirene, vehicleid , 0.0, 0.0, 0.0+2, 0.0, 0.0, 0.0);
    }
}



Re: AttachObjectToVeicle nгo tб funcionando ou tб errado? - duuuwh - 05.11.2012

Deu ainda nгo, Rodney. e.e