WorkShop vozila

Započeo Belii, Mart 09, 2023, 20:25:53 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Ne prikazuju se vozila u workshop-u a actor koji "popravlja to vozilo"se pojavljuje
Deo skripte: [pawn]WorkShopVehicleCheck(id) {

    if(IsValidDynamicActor(WorkShopActor1[id]))
        DestroyDynamicActor(WorkShopActor1[id]);

    if(IsValidDynamicActor(WorkShopActor2[id]))
        DestroyDynamicActor(WorkShopActor2[id]);

    if(WorkShopInfo[id][wModel1] > 0) {

        WorkShopActor1[id] = CreateDynamicActor(50, 1382.1377,-31.5573,1001.0511,267.3986, 1, 100.0, id, -1, -1, STREAMER_ACTOR_SD, -1, 0);
        ApplyDynamicActorAnimation(WorkShopActor1[id], "Bar", "Barserve_bottle", 4.0, 1, 1, 1, 1, -1);
    }

    if(WorkShopInfo[id][wModel2] > 0) {

        WorkShopActor2[id] = CreateDynamicActor(50, 1375.6455,-41.3790,1001.0511,358.2555, 1, 100.0, id, -1, -1, STREAMER_ACTOR_SD, -1, 0);
        ApplyDynamicActorAnimation(WorkShopActor2[id], "Bar", "Barserve_bottle", 4.0, 1, 1, 1, 1, -1);
    }
}

WorkShopVehicleCheck(id) {

    if(IsValidDynamicActor(WorkShopActor1[id]))
        DestroyDynamicActor(WorkShopActor1[id]);

    if(IsValidDynamicActor(WorkShopActor2[id]))
        DestroyDynamicActor(WorkShopActor2[id]);

    if(WorkShopInfo[id][wModel1] > 1) {

        WorkShopActor1[id] = CreateDynamicActor(50, 1382.1377,-31.5573,1001.0511,267.3986, 1, 100.0, id, -1, -1, STREAMER_ACTOR_SD, -1, 0);
        ApplyDynamicActorAnimation(WorkShopActor1[id], "Bar", "Barserve_bottle", 4.0, 1, 1, 1, 1, -1);
    }

    if(WorkShopInfo[id][wModel2] > 1) {

        WorkShopActor2[id] = CreateDynamicActor(50, 1375.6455,-41.3790,1001.0511,358.2555, 1, 100.0, id, -1, -1, STREAMER_ACTOR_SD, -1, 0);
        ApplyDynamicActorAnimation(WorkShopActor2[id], "Bar", "Barserve_bottle", 4.0, 1, 1, 1, 1, -1);
    }
}[/pawn]trebalo bi da je ovo deo koda za prikazivanje vozila
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [pawn]Vaš odgovor[/pawn]
Slika/video ingame problema(obavezno ako je ingame problem): link slike

[pawn]WorkShopVehicleCheck(id) {

    if(IsValidDynamicActor(WorkShopActor1[id]))
        DestroyDynamicActor(WorkShopActor1[id]);

    if(IsValidDynamicActor(WorkShopActor2[id]))
        DestroyDynamicActor(WorkShopActor2[id]);

    if(WorkShopInfo[id][wModel1] > 0) {

        WorkShopActor1[id] = CreateDynamicActor(50, 1382.1377,-31.5573,1001.0511,267.3986, 1, 100.0, id, -1, -1, STREAMER_ACTOR_SD, -1, 0);
        ApplyDynamicActorAnimation(WorkShopActor1[id], "Bar", "Barserve_bottle", 4.0, 1, 1, 1, 1, -1);
    }

    if(WorkShopInfo[id][wModel2] > 0) {

        WorkShopActor2[id] = CreateDynamicActor(50, 1375.6455,-41.3790,1001.0511,358.2555, 1, 100.0, id, -1, -1, STREAMER_ACTOR_SD, -1, 0);
        ApplyDynamicActorAnimation(WorkShopActor2[id], "Bar", "Barserve_bottle", 4.0, 1, 1, 1, 1, -1);
    }
}[/pawn]


Slucajno sam duplirao kod


sry za dp


Gledajuci u kod ti ih uopste ne kreiras

Valhalla mod, izbaceno je to kada sam radio debug zbog problema sa vozilima na serveru, tako da bi morao da odradis taj deo ponovo, mislim da nema nijedna verzija moda gde je to ostalo..

Citat: V01D poslato Mart 09, 2023, 20:56:58 POSLE PODNE
Valhalla mod, izbaceno je to kada sam radio debug zbog problema sa vozilima na serveru, tako da bi morao da odradis taj deo ponovo, mislim da nema nijedna verzija moda gde je to ostalo..
e da ga jebem sad pokusacu da sredim nesto