Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: |LOB| Robi.pwn poslato April 13, 2013, 11:18:29 PRE PODNE

Naslov: [Pomoc] Eror 017 "vehicleid"
Poruka od: |LOB| Robi.pwn poslato April 13, 2013, 11:18:29 PRE PODNE
Skripta koju koristim:Moj gm od 0
Detaljan opis problema:Pa ovako znaci kada sam ovo imao pod "OnPlayerEnterVehcile" nije bilo errora a kada sam stavio u "OnPlayerStateChange" ima:S
Dio skripte:
//_______________________________________________________PoliceDepartment Vozila
if(vehicleid == PDVozila[12] || vehicleid == PDVozila[13] || vehicleid == PDVozila[14] || vehicleid == PDVozila[15] || vehicleid == PDVozila[16] || vehicleid == PDVozila[17] || vehicleid == PDVozila[18] || vehicleid == PDVozila[19])
    {
    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLider] == 1){ }
    else
{
    SCM(playerid, SVIJETLOPLAVA, "{FF0000}[Greska] Niste član 'Police Department' organizacije!");
  RemovePlayerFromVehicle(playerid);
      TogglePlayerControllable(playerid, 1);
        }
}
    if(vehicleid == PDVozila[0] || vehicleid == PDVozila[1] || vehicleid == PDVozila[2] || vehicleid == PDVozila[3] || vehicleid == PDVozila[4] || vehicleid == PDVozila[5] || vehicleid == PDVozila[6] || vehicleid == PDVozila[7] || vehicleid == PDVozila[8] || vehicleid == PDVozila[9] || vehicleid == PDVozila[10] || vehicleid == PDVozila[11])
    {
    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLider] == 1){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000}[Greska] Niste član 'Police Department' organizacije!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
  }
    }
//__________________________________________________________________Grove Vozila
if(vehicleid == GroveVozila[4] || vehicleid == GroveVozila[5] || vehicleid == GroveVozila[6] || vehicleid == GroveVozila[7])
    {
    if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLider] == 3){ }
    else
{
    SCM(playerid, SVIJETLOPLAVA, "{FF0000}[Greska] Niste član 'Grove Street' organizacije!");
  RemovePlayerFromVehicle(playerid);
      TogglePlayerControllable(playerid, 1);
        }
}
    if(vehicleid == GroveVozila[0] || vehicleid == GroveVozila[1] || vehicleid == GroveVozila[2] || vehicleid == GroveVozila[3])
    {
    if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLider] == 3){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000}[Greska] Niste član 'Grove Street' organizacije!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
  }
    }
//__________________________________________________________________Hitman Vozila
if(vehicleid == HitmanVozila[4] || vehicleid == HitmanVozila[5] || vehicleid == HitmanVozila[6] || vehicleid == HitmanVozila[7])
    {
    if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLider] == 8){ }
    else
{
    SCM(playerid, SVIJETLOPLAVA, "{FF0000}[Greska] Niste član 'Hitman Agency' organizacije!");
  RemovePlayerFromVehicle(playerid);
      TogglePlayerControllable(playerid, 1);
        }
}
    if(vehicleid == HitmanVozila[0] || vehicleid == HitmanVozila[1] || vehicleid == HitmanVozila[2] || vehicleid == HitmanVozila[3])
    {
    if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLider] == 8){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000}[Greska] Niste član 'Hitman Agency' organizacije!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
  }
    }

Neke slike/video za lakse dobivanje pomoci(neobavezno):
Naslov: Odg: [Pomoc] Eror 017 "vehicleid"
Poruka od: Blaeks poslato April 13, 2013, 11:19:25 PRE PODNE
new vehicle = GetPlayerVehicleID(playerid);
Naslov: Odg: [Pomoc] Eror 017 "vehicleid"
Poruka od: []Flynâ„¢ poslato April 13, 2013, 11:19:50 PRE PODNE
new vehicleid = GetPlayerVehicleID(playerid);
Naslov: Odg: [Pomoc] Eror 017 "vehicleid"
Poruka od: |LOB| Robi.pwn poslato April 13, 2013, 11:20:44 PRE PODNE
to znam i ja ali gdje dodat u to ili gore?
Naslov: Odg: [Pomoc] Eror 017 "vehicleid"
Poruka od: Blaeks poslato April 13, 2013, 11:21:39 PRE PODNE
ispred tvog koda, znaci liniju ispred
Naslov: Odg: [Pomoc] Eror 017 "vehicleid"
Poruka od: |LOB| Robi.pwn poslato April 13, 2013, 11:24:12 PRE PODNE
Bam Bam bam :D
Ty dečki:D <3