[POMOĆ] Ne loada aute?

Započeo tasty, Januar 02, 2014, 04:38:31 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: GodFather
Detaljan opis problema: Prebacio sam aute u array, da bi ih pripisao organizaciji i definirao ih sve fino i nije bilo apsolutno nikakvih errora. MeÄ'utim kad pokrenem server ne loadaju se ti auti i nema ih.
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):

U forwardu imam npr:

forward IsATruck(carid);
forward IsAnAmbulance(carid);
forward IsACopCar(carid);
forward IsALCNCar(carid);
forward IsAPlane(carid);
forward IsABus(carid);
forward IsARMCar(carid);
forward IsATaxi(carid);
forward IsABoat(carid);


U NEW

new CopCar[30];
new Ambulance[3];
new Bus[2];
new Truck[4];
new Taxi[3];
new RMCar[3];
new LCNCar[3];


U addstaticvehicle:

Ambulance[0] = AddStaticVehicleEx(416,-2637.0630,617.3499,14.3281,90.1464, -1, -1, 60000);/*Ambulance*/
Ambulance[1] = AddStaticVehicleEx(416,-2661.4282,617.3460,14.3288,89.2072, -1, -1, 60000);/*Ambulance*/
Ambulance[2] = AddStaticVehicleEx(416,-2662.4568,595.3354,14.3281,273.2716, -1, -1, 60000);/*Ambulance*/
Bus[0] = AddStaticVehicleEx(431,1172.5,-1795.5,13.1,0.0, -1, -1, 60000);//64/*Bus*/
Bus[1] = AddStaticVehicleEx(431,1182.1,-1795.9,13.1,0.0, -1, -1, 60000);//65/*Bus*/
Truck[0] = AddStaticVehicleEx(456,2795.2,-2417.8,13.4,90.8,-1,-1,60000);//Component Truck/*Yankee*/
Truck[1] = AddStaticVehicleEx(456,2783.9,-2417.9,13.4,90.8,-1,-1,60000);//Component Truck/*Yankee*/
Truck[2] = AddStaticVehicleEx(440,2794.1,-2455.9,13.4,90.8,-1,-1,60000);//Component Truck/*Rumpo*/
Truck[3] = AddStaticVehicleEx(440,2782.9,-2455.6,13.4,90.8,-1,-1,60000);//Component Truck/*Rumpo*/
Taxi[0] = AddStaticVehicleEx(420,-1986.4958,115.9394,27.3324,0.1277,-1, -1, 60000);//Taxi/*Taxi*/
Taxi[1] = AddStaticVehicleEx(420,-1986.5049,129.1749,27.3299,359.6938,-1, -1, 60000);//Taxi/*Taxi*/
Taxi[2] = AddStaticVehicleEx(420,-1986.4310,150.1195,27.3299,0.0329,-1, -1, 60000);//Taxi //CAR ID 85/*Taxi*/
CopCar[0] = AddStaticVehicle(523,1526.7754,-1645.0999,5.7166,179.6456,0,1); // pdmotor
CopCar[1] = AddStaticVehicle(523,1530.4576,-1645.6852,5.7145,181.4052,0,1); // pdmotor2
CopCar[2] = AddStaticVehicle(523,1534.9275,-1644.6899,5.7156,179.3486,0,1); // pdmotor3
CopCar[3] = AddStaticVehicle(523,1538.6843,-1645.3335,5.7160,178.9720,0,1); // pdmotor4
CopCar[4] = AddStaticVehicle(596,1544.7357,-1651.1580,5.7166,89.8233,1,1); // pdautobijelo
CopCar[5] = AddStaticVehicle(596,1544.5602,-1655.1118,5.7141,89.9714,1,1); // pdautobijelo
CopCar[6] = AddStaticVehicle(596,1545.1997,-1659.0835,5.7159,91.2899,1,1); // pdautobijelo
CopCar[7] = AddStaticVehicle(596,1544.2079,-1663.1014,5.7154,90.8088,1,1); // pdautobijelo
CopCar[8] = AddStaticVehicle(596,1544.4419,-1668.0073,5.7150,89.7824,1,1); // pdautobijelo
CopCar[9] = AddStaticVehicle(596,1544.6982,-1672.1233,5.7162,89.7071,1,1); // pdautobijelo
CopCar[10] = AddStaticVehicle(596,1544.9788,-1675.9292,5.7170,89.7151,1,1); // pdautobijelo
CopCar[11] = AddStaticVehicle(596,1544.8342,-1680.2574,5.7143,90.9208,1,1); // pdautobijelo
CopCar[12] = AddStaticVehicle(596,1544.5933,-1684.4363,5.7155,88.2358,1,1); // pdautobijelo
CopCar[13] = AddStaticVehicle(528,1529.0348,-1683.8110,5.7144,269.2787,1,1); // FBI AUTO
CopCar[14] = AddStaticVehicle(427,1564.3064,-1710.1290,5.7166,359.1145,0,1); // pdmarica
CopCar[15] = AddStaticVehicle(596,1570.3048,-1710.0280,5.7150,359.0802,0,1); // pdcrnobijelo
CopCar[16] = AddStaticVehicle(596,1574.6610,-1709.4696,5.7155,1.7984,0,1); // pdcrnobijelo
CopCar[17] = AddStaticVehicle(596,1578.8944,-1710.6718,5.7158,359.7419,0,1); // pdcrnobijelo
CopCar[18] = AddStaticVehicle(596,1583.6595,-1710.0695,5.7167,358.8985,0,1); // pdcrnobijelo
CopCar[19] = AddStaticVehicle(596,1587.4216,-1709.9547,5.7172,0.4737,0,1); // pdcrnobijelo
CopCar[20] = AddStaticVehicle(596,1591.6796,-1710.7180,5.7137,2.8070,0,1); // pdcrnobijelo
CopCar[21] = AddStaticVehicle(596,1595.4248,-1710.0751,5.7153,359.3854,0,1); // pdcrnobijelo
CopCar[22] = AddStaticVehicle(596,1601.0237,-1704.3939,5.7140,90.8663,7,1); // pdplavo
CopCar[23] = AddStaticVehicle(596,1601.6160,-1700.2859,5.7156,89.0663,7,1); // pdplavo
CopCar[24] = AddStaticVehicle(596,1601.2029,-1695.8531,5.7149,90.2223,7,1); // pdplavo
CopCar[25] = AddStaticVehicle(596,1600.5592,-1691.9988,5.7170,89.5620,7,1); // pdplavo
CopCar[26] = AddStaticVehicle(596,1602.1860,-1688.0197,5.7156,90.3480,7,1); // pdplavo
CopCar[27] = AddStaticVehicle(596,1601.6487,-1683.9188,5.7167,90.7023,7,1); // pdplavo
CopCar[28] = AddStaticVehicle(507,1585.6080,-1671.6160,5.7204,269.7375,1,1); // pdcivilno
CopCar[29] = AddStaticVehicle(507,1586.0624,-1667.7312,5.7169,269.3996,3,3); // pdcivilno2
    RMCar [0] = AddStaticVehicle(579,974.2376,-914.0699,45.6931,276.0768,22,22); // rm džip
    RMCar [1] = AddStaticVehicle(413,973.9111,-920.2064,45.6994,272.6327,22,22); // rmkombi
    RMCar [2] = AddStaticVehicle(426,974.9130,-926.1754,45.6932,274.8763,22,22); // rmobično
    LCNCar [0] = AddStaticVehicleEx(426,1242.7739,-2031.1902,59.7773,178.8082,0,0,60000); // Elegant LaCosaNostra
LCNCar [1] = AddStaticVehicleEx(440,1242.9808,-2015.0297,59.7788,180.6815,0,0,60000); // kombi LaCosaNostra
LCNCar [2] = AddStaticVehicleEx(580,1275.1589,-2046.2448,58.9736,87.6114,0,0,60000); // lcn stafford


Onda za IsACopCar itd:

public IsACopCar(carid)
{
for(new i = 0; i < sizeof(CopCar); i++)
{
    if(carid == CopCar[i]) return 1;
return 1;
}
return 0;
}

public IsAnAmbulance(carid)
{
for(new i = 0; i < sizeof(Ambulance); i++)
{
    if(carid == Ambulance[i]) return 1;
return 1;
}
return 0;
}

public IsATruck(carid)
{
for(new i = 0; i < sizeof(Truck); i++)
{
if(carid == Truck[i]) return 1;
}
return 0;
}

public IsABus(carid)
{
for(new i = 0; i < sizeof(Bus); i++)
{
    if(carid == Bus[i]) return 1;
return 1;
}
return 0;
}

public IsATaxi(carid)
{
for(new i = 0; i < sizeof(Taxi); i++)
{
    if(carid == Taxi[i]) return 1;
return 1;
}
return 0;
}

public IsARMCar(carid)
{
for(new i = 0; i < sizeof(RMCar); i++)
{
    if(carid == RMCar[i]) return 1;
return 1;
}
return 0;
}

public IsALCNCar(carid)
{
for(new i = 0; i < sizeof(LCNCar); i++)
{
    if(carid == LCNCar[i]) return 1;
return 1;
}
return 0;
}


Onda u onplayerenter vehicle:

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if (IsACopCar(vehicleid) && !ispassenger)
      {
         if(PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pMember]==1){}
       else {
       RemovePlayerFromVehicle(playerid);
       SendClientMessage(playerid, COLOR_GREY,"Nemate ključeve vozila.");}
            }
if (IsAnAmbulance(vehicleid) && !ispassenger)
      {
         if(PlayerInfo[playerid][pLeader]==4||PlayerInfo[playerid][pMember]==4){}
       else {
       RemovePlayerFromVehicle(playerid);
       SendClientMessage(playerid, COLOR_GREY,"Nemate ključeve vozila.");}
            }
           
if (IsABus(vehicleid) && !ispassenger)
      {
    if(PlayerInfo[playerid][pJob] != 14){}
       else {
       RemovePlayerFromVehicle(playerid);
       SendClientMessage(playerid, COLOR_GREY,"Nemate ključeve vozila.");}
            }
if (IsATaxi(vehicleid) && !ispassenger)
      {
    if(PlayerInfo[playerid][pLeader]==10||PlayerInfo[playerid][pMember]==10){}
       else {
       RemovePlayerFromVehicle(playerid);
       SendClientMessage(playerid, COLOR_GREY,"Nemate ključeve vozila.");}
            }
if (IsARMCar(vehicleid) && !ispassenger)
      {
    if(PlayerInfo[playerid][pLeader]==12||PlayerInfo[playerid][pMember]==12){}
       else {
       RemovePlayerFromVehicle(playerid);
       SendClientMessage(playerid, COLOR_GREY,"Nemate ključeve vozila.");}
            }
if (IsALCNCar(vehicleid) && !ispassenger)
      {
    if(PlayerInfo[playerid][pLeader]==5||PlayerInfo[playerid][pMember]==5){}
       else {
       RemovePlayerFromVehicle(playerid);
       SendClientMessage(playerid, COLOR_GREY,"Nemate ključeve vozila.");}
            }
      }
     

public IsAnInstructor(playerid)
{
if(IsPlayerConnected(playerid))
{
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if(member==11)
{
    return 1;
}
if(leader==11)
{
    return 1;
}
}
return 0;
}

Sorry Å¡to bumpam, hića mi je  :D Zna netko?

Prebaci ih iz addstaticvehicle u createvehicle.
Trazim web dizajnera.


Jesi li proverio koordinate? I jesi li na svim vozilima uradio array?
RESPECT: Blaeks, Yui_Sang, Gagi, Kapetan Husein, Luksa, Slay, Denis_Lapi, Zoran(Dude)

Programski jezici koje koristim: C, C#, Visual Basic, HTML, CSS, PHP (tek ucim).


Na svim osim na ovim biciklima. Dal i njih treba?