Szerző Téma: Defensive Mód Kocsi bug.  (Megtekintve 940 alkalommal)

Defensive Mód Kocsi bug.
« Dátum: 2013. Június 28. - 15:55:45 »
0 Show voters
Üdv!
Lenne egy problémánk egy ideje próbálkozunk, hogy mitõl lehet a bug mert nem tudjuk.
Minden restart elõtt beírjuk /kocsikment -ki is írja, hogy elmenteted a kocsikat stb, stb...
De viszont Restart és elveszik mindegyik, de a kulcs mindenkinek megvan ez miért van?
Vagy esetleg ezt, hogy lehet orvosolni?

Defensive Mód Kocsi bug.
« Válasz #1 Dátum: 2013. Június 28. - 16:57:56 »
0 Show voters
Ez bent van a mododban?
 
stock SaveVehicle( vehicleid )
{
if(!dini_Exists(vehicleFile(vehicleid)) )
{
    dini_Create( vehicleFile(vehicleid) );
}
dini_IntSet( vehicleFile(vehicleid), \"MODEL\", vInfo[vehicleid][MODEL] );
    dini_FloatSet( vehicleFile(vehicleid), \"X\", vInfo[vehicleid][X] );
    dini_FloatSet( vehicleFile(vehicleid), \"Y\", vInfo[vehicleid][Y] );
    dini_FloatSet( vehicleFile(vehicleid), \"Z\", vInfo[vehicleid][Z] );
    dini_FloatSet( vehicleFile(vehicleid), \"A\", vInfo[vehicleid][A] );
    dini_IntSet( vehicleFile(vehicleid), \"COLOR\", vInfo[vehicleid][color] );
    dini_IntSet( vehicleFile(vehicleid), \"COLOR2\", vInfo[vehicleid][color2] );
    dini_IntSet( vehicleFile(vehicleid), \"SOLD\", vInfo[vehicleid][sOLD] );
    dini_Set( vehicleFile(vehicleid), \"PLATE\", vInfo[vehicleid][PLATE] );
    dini_IntSet( vehicleFile(vehicleid), \"PRICE\", vInfo[vehicleid][PRICE] );
    dini_IntSet( vehicleFile(vehicleid), \"LOCKED\", vInfo[vehicleid][LOCKED] );
    dini_IntSet(vehicleFile(vehicleid), \"ÜzemanyagTipus\", vInfo[vehicleid][uZEMANYAGTIPUS]);
dini_IntSet(vehicleFile(vehicleid), \"MilyenVanBenne\", vInfo[vehicleid][uZEMANYAGTIPUSVAN]);
dini_IntSet(vehicleFile(vehicleid), \"MaxÜzemAnyag\", vInfo[vehicleid][MAXUZEMANYAG]);
dini_IntSet(vehicleFile(vehicleid), \"ÜzemAnyag\", vInfo[vehicleid][uZEMANYAG]);
dini_IntSet(vehicleFile(vehicleid), \"KerékBilincs\", vInfo[vehicleid][KEREKBILINCS]);
    return 1;
}
stock LoadVehicle( vehicleid )
{
vInfo[vehicleid][MODEL] = dini_Int( vehicleFile(vehicleid), \"MODEL\" );
    vInfo[vehicleid][X] = dini_Float( vehicleFile(vehicleid), \"X\" );
    vInfo[vehicleid][Y] = dini_Float( vehicleFile(vehicleid), \"Y\" );
    vInfo[vehicleid][Z] = dini_Float( vehicleFile(vehicleid), \"Z\" );
    vInfo[vehicleid][A] = dini_Float( vehicleFile(vehicleid), \"A\" );
    vInfo[vehicleid][color] = dini_Int( vehicleFile(vehicleid), \"COLOR\" );
    vInfo[vehicleid][color2] = dini_Int( vehicleFile(vehicleid), \"COLOR2\" );
    vInfo[vehicleid][sOLD] = dini_Int( vehicleFile(vehicleid), \"SOLD\" );
    format( vInfo[vehicleid][PLATE], (8),\"%s\", dini_Get( vehicleFile(vehicleid), \"PLATE\") );
    vInfo[vehicleid][PRICE] = dini_Int( vehicleFile(vehicleid), \"PRICE\" );
    vInfo[vehicleid][LOCKED] = dini_Int( vehicleFile(vehicleid), \"LOCKED\" );
    vInfo[vehicleid][uZEMANYAGTIPUS] = dini_Int(vehicleFile(vehicleid), \"ÜzemanyagTipus\");
vInfo[vehicleid][uZEMANYAGTIPUSVAN] = dini_Int(vehicleFile(vehicleid), \"MilyenVanBenne\");
vInfo[vehicleid][MAXUZEMANYAG] = dini_Int(vehicleFile(vehicleid), \"MaxÜzemAnyag\");
vInfo[vehicleid][uZEMANYAG] = dini_Int(vehicleFile(vehicleid), \"ÜzemAnyag\");
vInfo[vehicleid][KEREKBILINCS] = dini_Int(vehicleFile(vehicleid), \"KerékBilincs\");
    vehicleid = CreateVehicle( vInfo[vehicleid][MODEL], vInfo[vehicleid][X], vInfo[vehicleid][Y], vInfo[vehicleid][Z], vInfo[vehicleid][A],
vInfo[vehicleid][color], vInfo[vehicleid][color2], 0 );
SetVehicleNumberPlate( vehicleid, vInfo[vehicleid][PLATE] );
if (dini_Int(vehicleFile(vehicleid), \"Hidraulika\") == 1)
      {
         AddVehicleComponent(vehicleid, 1087);
      }
      
      if(dini_Int(vehicleFile(vehicleid), \"Kerék\") != 0)
      {
AddVehicleComponent(vehicleid, dini_Int(vehicleFile(vehicleid), \"Kerék\"));
}
return 1;
}

Defensive Mód Kocsi bug.
« Válasz #2 Dátum: 2013. Június 28. - 17:01:54 »
0 Show voters
Ha hostod van akkor, ellenõrizd hogy a scriptfilesbe a vehicles nagy V betüvel van e írva nekem is ez volt a gond. Mert házi szerveren mind1 hogy kicsi e vagy nagy.

Defensive Mód Kocsi bug.
« Válasz #3 Dátum: 2013. Június 29. - 08:41:07 »
0 Show voters
Idézetet írta: Ryan_Adam date=1372431714\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"39016\" data-ipsquote-contentclass=\"forums_Topic
Ha hostod van akkor, ellenõrizd hogy a scriptfilesbe a vehicles nagy V betüvel van e írva nekem is ez volt a gond. Mert házi szerveren mind1 hogy kicsi e vagy nagy.
 
Úgy van írva...

Dupla hozzászólás automatikusan összefûzve. ( 2013. Június 29. - 08:57:50 )


Ez bent van a mododban?
 
stock SaveVehicle( vehicleid )
{
if(!dini_Exists(vehicleFile(vehicleid)) )
{
    dini_Create( vehicleFile(vehicleid) );
}
dini_IntSet( vehicleFile(vehicleid), \"MODEL\", vInfo[vehicleid][MODEL] );
    dini_FloatSet( vehicleFile(vehicleid), \"X\", vInfo[vehicleid][X] );
    dini_FloatSet( vehicleFile(vehicleid), \"Y\", vInfo[vehicleid][Y] );
    dini_FloatSet( vehicleFile(vehicleid), \"Z\", vInfo[vehicleid][Z] );
    dini_FloatSet( vehicleFile(vehicleid), \"A\", vInfo[vehicleid][A] );
    dini_IntSet( vehicleFile(vehicleid), \"COLOR\", vInfo[vehicleid][color] );
    dini_IntSet( vehicleFile(vehicleid), \"COLOR2\", vInfo[vehicleid][color2] );
    dini_IntSet( vehicleFile(vehicleid), \"SOLD\", vInfo[vehicleid][sOLD] );
    dini_Set( vehicleFile(vehicleid), \"PLATE\", vInfo[vehicleid][PLATE] );
    dini_IntSet( vehicleFile(vehicleid), \"PRICE\", vInfo[vehicleid][PRICE] );
    dini_IntSet( vehicleFile(vehicleid), \"LOCKED\", vInfo[vehicleid][LOCKED] );
    dini_IntSet(vehicleFile(vehicleid), \"ÜzemanyagTipus\", vInfo[vehicleid][uZEMANYAGTIPUS]);
dini_IntSet(vehicleFile(vehicleid), \"MilyenVanBenne\", vInfo[vehicleid][uZEMANYAGTIPUSVAN]);
dini_IntSet(vehicleFile(vehicleid), \"MaxÜzemAnyag\", vInfo[vehicleid][MAXUZEMANYAG]);
dini_IntSet(vehicleFile(vehicleid), \"ÜzemAnyag\", vInfo[vehicleid][uZEMANYAG]);
dini_IntSet(vehicleFile(vehicleid), \"KerékBilincs\", vInfo[vehicleid][KEREKBILINCS]);
    return 1;
}
stock LoadVehicle( vehicleid )
{
vInfo[vehicleid][MODEL] = dini_Int( vehicleFile(vehicleid), \"MODEL\" );
    vInfo[vehicleid][X] = dini_Float( vehicleFile(vehicleid), \"X\" );
    vInfo[vehicleid][Y] = dini_Float( vehicleFile(vehicleid), \"Y\" );
    vInfo[vehicleid][Z] = dini_Float( vehicleFile(vehicleid), \"Z\" );
    vInfo[vehicleid][A] = dini_Float( vehicleFile(vehicleid), \"A\" );
    vInfo[vehicleid][color] = dini_Int( vehicleFile(vehicleid), \"COLOR\" );
    vInfo[vehicleid][color2] = dini_Int( vehicleFile(vehicleid), \"COLOR2\" );
    vInfo[vehicleid][sOLD] = dini_Int( vehicleFile(vehicleid), \"SOLD\" );
    format( vInfo[vehicleid][PLATE], (8),\"%s\", dini_Get( vehicleFile(vehicleid), \"PLATE\") );
    vInfo[vehicleid][PRICE] = dini_Int( vehicleFile(vehicleid), \"PRICE\" );
    vInfo[vehicleid][LOCKED] = dini_Int( vehicleFile(vehicleid), \"LOCKED\" );
    vInfo[vehicleid][uZEMANYAGTIPUS] = dini_Int(vehicleFile(vehicleid), \"ÜzemanyagTipus\");
vInfo[vehicleid][uZEMANYAGTIPUSVAN] = dini_Int(vehicleFile(vehicleid), \"MilyenVanBenne\");
vInfo[vehicleid][MAXUZEMANYAG] = dini_Int(vehicleFile(vehicleid), \"MaxÜzemAnyag\");
vInfo[vehicleid][uZEMANYAG] = dini_Int(vehicleFile(vehicleid), \"ÜzemAnyag\");
vInfo[vehicleid][KEREKBILINCS] = dini_Int(vehicleFile(vehicleid), \"KerékBilincs\");
    vehicleid = CreateVehicle( vInfo[vehicleid][MODEL], vInfo[vehicleid][X], vInfo[vehicleid][Y], vInfo[vehicleid][Z], vInfo[vehicleid][A],
vInfo[vehicleid][color], vInfo[vehicleid][color2], 0 );
SetVehicleNumberPlate( vehicleid, vInfo[vehicleid][PLATE] );
if (dini_Int(vehicleFile(vehicleid), \"Hidraulika\") == 1)
      {
         AddVehicleComponent(vehicleid, 1087);
      }
      
      if(dini_Int(vehicleFile(vehicleid), \"Kerék\") != 0)
      {
AddVehicleComponent(vehicleid, dini_Int(vehicleFile(vehicleid), \"Kerék\"));
}
return 1;
}

 

[/quote]
Igen bent van.
« Utoljára szerkesztve: 2013. Június 29. - 08:57:50 írta Nemes Máté »

Nem elérhető Blaise

  • 1002
    • Profil megtekintése
Defensive Mód Kocsi bug.
« Válasz #4 Dátum: 2013. Június 29. - 09:27:32 »
0 Show voters
Vehicles mappából törölj mindent, valószínûleg bent van ott valami, aminek nem kellene...

Defensive Mód Kocsi bug.
« Válasz #5 Dátum: 2013. Június 29. - 11:05:57 »
0 Show voters
Törölve! Ugyan az a hiba!

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal