OnVehicleStreamIn

Započeo Yoppa
5. Maj 2019.
648
pregleda
7
postova
Yoppa
3
Wheel Man
5. Maj 2019.
Problem(error/warning): Pravim org vozila,eto kod dolje...Mislim da je problem u ovome if vehicleid
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): //
Slika/video ingame problema(obavezno ako je ingame problem): //
Deo skripte:

public OnVehicleStreamIn(vehicleid, forplayerid)
{
if(vehicleid == RCVozila(vehicleid))
{
        if(PlayerInfo == 3)
        {
            SetVehicleParamsForPlayer(vehicleid, forplayerid, 0, 0);
        }
        else
        {
            SetVehicleParamsForPlayer(vehicleid, forplayerid, 0, 1);
            GameTextForPlayer(forplayerid,"~b~~h~RUSSIAN CARTEL",3000,4);
        }
    }
    return 1;
}


stock RCVozila(vehicleid)
{
    if(vehicleid == RCVozilo || vehicleid == RCVozilo || vehicleid == RCVozilo || vehicleid == RCVozilo || vehicleid == RCVozilo || vehicleid == RCVozilo ||
vehicleid == RCVozilo || vehicleid == RCVozilo || vehicleid == RCVozilo)
{
return 1;
}
return 0;
}
Rax_King
5
Godfather
5. Maj 2019.
Pa sta je problem
FunnyGamingDay - FGD
6
OG Legend
5. Maj 2019.
Koji error? Ja bih najpre rekao da ti izbacuje warning loose identation.

Former SA:MP server developer

marko077
6
Underboss
6. Maj 2019.
Pa sta je problem ovde?
stock RCVozila(vehicleid)
{
    if(vehicleid == RCVozilo || vehicleid == RCVozilo || vehicleid == RCVozilo || vehicleid == RCVozilo || vehicleid == RCVozilo || vehicleid == RCVozilo ||
vehicleid == RCVozilo || vehicleid == RCVozilo || vehicleid == RCVozilo)
{
return 1;
}
return 0;
}

Prebaci u ovo ako koristis samo RCVozilo
stock RCVozila(vehicleid)
{
    for(new i = 0; i < sizeof(RCVozilo); i++) {
        if(vehicleid == RCVozilo) return true;
        else return false;
  }
}
Yoppa
3
Wheel Man
6. Maj 2019.
Uf prastajte vidjeh tek sad da nisam gore napisa u cemu je problem haha,nema fuknckiju,vrata nisu zakljucana/oktljucana zato sam rekao da je porblem u trazenju vozila...
FunnyGamingDay - FGD
6
OG Legend
6. Maj 2019.
Sta ce ti to pod OnVehicleStreamIn provera da li je igrac usao u to vozilo 😄
Stavi ovo pod OnPlayerStateChange:

        if( newstate == PLAYER_STATE_DRIVER )
{
                if( RCVozila ( GetPlayerVehicleID( playerid )))
{
    if( PlayerInfo != 3)
    {
            GameTextForPlayer(forplayerid,"~b~~h~RUSSIAN CARTEL",3000,4);
            RemovePlayerFromVehicle(playerid);
    }
}
        }

i javi da li radi (@Yoppa)

Former SA:MP server developer

Yoppa
3
Wheel Man
6. Maj 2019.
Vasic wrote on May 6, 2019, 9:34 am:
Sta ce ti to pod OnVehicleStreamIn provera da li je igrac usao u to vozilo 😄
Stavi ovo pod OnPlayerStateChange:

        if( newstate == PLAYER_STATE_DRIVER )
{
                if( RCVozila ( GetPlayerVehicleID( playerid )))
{
    if( PlayerInfo != 3)
    {
            GameTextForPlayer(forplayerid,"~b~~h~RUSSIAN CARTEL",3000,4);
            RemovePlayerFromVehicle(playerid);
    }
}
        }

i javi da li radi (@Yoppa)


Napravio sam sam.. I to je da igrac uopste ne bi ulazio u vozilo nego kad mu se strimuje jednostavno kad klikne f- enter nista se ne desava 🙂

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha