[POMOC]Vozila Bug

Započeo PROXY, Maj 25, 2012, 17:20:57 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: GTA RP Edit
Detaljan opis problema:Kada ubacim Vozila za organizaciju (AddStaticVehicleEx)
pise da su na prodaju..(ZASTO?)
Dio skripte: //

Možda su ti se ID-ovi vozila pomiješali.

Citat: ♥Chuck♥ poslato Maj 25, 2012, 17:22:21 POSLE PODNE
Možda su ti se ID-ovi vozila pomiješali.
mozda,ali kako da namestim da ih moze samo ta org voziti i da nisu na prodaju to pitam  :'(

pod new dodaj ovako

new mafiacar[10]

10 je broj kola a mafia kao ime org od koje su kola

Onda pod public OnPlayerStateChange(playerid, newstate, oldstate)

Ovako :

if(newcar == CopCar[0] || newcar == CopCar[1] || newcar == CopCar[2] || newcar == CopCar[3] || newcar == CopCar[4] || newcar == CopCar[5] || newcar == CopCar[6] || newcar == CopCar[7] || newcar == CopCar[8] || newcar == CopCar[9] || newcar == CopCar[10] || newcar == CopCar[11] || newcar == CopCar[12] || newcar == CopCar[13] || newcar == CopCar[14] || newcar == CopCar[15] || newcar == CopCar[16])
{
if(PlayerInfo[playerid][pMember] == broj org || PlayerInfo[playerid][pLeader] == broj org){ }
else
{
    format(string, sizeof(string), "~b~TVOJA ORG");
                GameTextForPlayer(playerid, string, 3000, 5);
    RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}



Ovo copcar je to sto si dodo na pocetku ti stavi koliko kola ti si stavio

I onda dodaj pod OnGameModeInit kola:

NRCar[0] = AddStaticVehicle(521,672.9050,-1262.6344,13.1969,70.2453,151,151); //251
NRCar[1] = AddStaticVehicle(521,673.6166,-1265.8951,13.1971,71.2761,151,151); //252
NRCar[2] = AddStaticVehicle(521,673.1428,-1270.6334,13.1974,71.1206,151,151); //253
NRCar[3] = AddStaticVehicle(579,670.7845,-1285.8258,13.4761,1.2992,151,151); //254
NRCar[4] = AddStaticVehicle(579,670.5449,-1297.4340,13.4775,358.3500,151,151); //255
NRCar[5] = AddStaticVehicle(428,661.6361,-1244.6534,14.2406,339.7596,151,0); //256
NRCar[6] = AddStaticVehicle(411,657.3334,-1291.8466,13.3597,316.5354,151,151); //257
NRCar[7] = AddStaticVehicle(411,657.4366,-1281.3335,13.3618,312.8622,151,151); //258
NRCar[8] = AddStaticVehicle(487,770.8971,-1258.1542,13.7361,0.0015,151,151); //259
NRCar[9] = AddStaticVehicle(487,748.6345,-1256.6588,13.7074,358.8492,151,151); //260

Citat: Don Eagle poslato Maj 25, 2012, 18:05:12 POSLE PODNE
pod new dodaj ovako

new mafiacar[10]

10 je broj kola a mafia kao ime org od koje su kola

Onda pod public OnPlayerStateChange(playerid, newstate, oldstate)

Ovako :

if(newcar == CopCar[0] || newcar == CopCar[1] || newcar == CopCar[2] || newcar == CopCar[3] || newcar == CopCar[4] || newcar == CopCar[5] || newcar == CopCar[6] || newcar == CopCar[7] || newcar == CopCar[8] || newcar == CopCar[9] || newcar == CopCar[10] || newcar == CopCar[11] || newcar == CopCar[12] || newcar == CopCar[13] || newcar == CopCar[14] || newcar == CopCar[15] || newcar == CopCar[16])
{
if(PlayerInfo[playerid][pMember] == broj org || PlayerInfo[playerid][pLeader] == broj org){ }
else
{
    format(string, sizeof(string), "~b~TVOJA ORG");
                GameTextForPlayer(playerid, string, 3000, 5);
    RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}



Ovo copcar je to sto si dodo na pocetku ti stavi koliko kola ti si stavio

I onda dodaj pod OnGameModeInit kola:

NRCar[0] = AddStaticVehicle(521,672.9050,-1262.6344,13.1969,70.2453,151,151); //251
NRCar[1] = AddStaticVehicle(521,673.6166,-1265.8951,13.1971,71.2761,151,151); //252
NRCar[2] = AddStaticVehicle(521,673.1428,-1270.6334,13.1974,71.1206,151,151); //253
NRCar[3] = AddStaticVehicle(579,670.7845,-1285.8258,13.4761,1.2992,151,151); //254
NRCar[4] = AddStaticVehicle(579,670.5449,-1297.4340,13.4775,358.3500,151,151); //255
NRCar[5] = AddStaticVehicle(428,661.6361,-1244.6534,14.2406,339.7596,151,0); //256
NRCar[6] = AddStaticVehicle(411,657.3334,-1291.8466,13.3597,316.5354,151,151); //257
NRCar[7] = AddStaticVehicle(411,657.4366,-1281.3335,13.3618,312.8622,151,151); //258
NRCar[8] = AddStaticVehicle(487,770.8971,-1258.1542,13.7361,0.0015,151,151); //259
NRCar[9] = AddStaticVehicle(487,748.6345,-1256.6588,13.7074,358.8492,151,151); //260

ovde mi baca erore
if(newcar == ballaskola[0] || newcar == ballaskola[1] || newcar == ballaskola[2] || newcar == ballaskola[3] || newcar == ballaskola[4] || newcar == ballaskola[5])
      {
   PlayerInfo[playerid][pMember] ==17||PlayerInfo[playerid][pLeader] == 17){ }
         else
         {
             format(string, sizeof(string), "~b~Ballas");
                GameTextForPlayer(playerid, string, 3000, 5);
             RemovePlayerFromVehicle(playerid);
            TogglePlayerControllable(playerid, 1);
         }
      }

Nzm sta je , pogledaj imas tut organizacije sa vozilima ,  :)

Kad ubacujes nova vozila moras namestiti stare ID-ove !!