Szerző Téma: Kocsi betöltés probléma  (Megtekintve 460 alkalommal)

Nem elérhető myke

  • 213
    • Profil megtekintése
Kocsi betöltés probléma
« Dátum: 2014. Január 22. - 20:38:37 »
0 Show voters
Sziasztok.
Editelek egy defensive módot egy ideje.
És 2 napja valamiért nem tölti be a kocsikat.
Menteni menti a fájlokat, csak nem tölti be...
Mi lehet a gond?
GameModeInitnél lévõ függvény:
 
   for( new i; i < MAX_VEHICLES; i++ )
{
if(dini_Exists(vehicleFile(i)) )
{
   LoadVehicle( i );
   printf(\"Kocsi %d betöltve!\", i);
}
}

 
LoadVehicle függvény:
 
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;
}

 
Közbe a servelogba a függvény betöltése helyett kapok egy elég nagy hibát.
 
[18:07:23] [debug] Run time error 4: \"Array index out of bounds\"
[18:07:23] [debug]  Accessing element at index 65535 past array upper bound 4999
[18:07:23] [debug] AMX backtrace:
[18:07:23] [debug] #0 000b302c in ?? () from SeansRPG.amx
[18:07:23] [debug] #1 00011c44 in public Itter_OnGameModeInit () from SeansRPG.amx
[18:07:23] [debug] #2 native CallLocalFunction () [080d2960] from samp03svr
[18:07:23] [debug] #3 00009838 in public Streamer_OnGameModeInit () from SeansRPG.amx
[18:07:23] [debug] #4 native CallLocalFunction () [080d2960] from samp03svr
[18:07:23] [debug] #5 00008ee4 in public OPVD_OnGameModeInit () from SeansRPG.amx
[18:07:23] [debug] #6 native CallLocalFunction () [080d2960] from samp03svr
[18:07:23] [debug] #7 00008a04 in public zcmd_OnGameModeInit () from SeansRPG.amx
[18:07:23] [debug] #8 native CallLocalFunction () [080d2960] from samp03svr
[18:07:23] [debug] #9 00006740 in public SSCANF_OnGameModeInit () from SeansRPG.amx
[18:07:23] [debug] #10 native CallLocalFunction () [080d2960] from samp03svr
[18:07:23] [debug] #11 00000a1c in public OnGameModeInit () from SeansRPG.amx

 
Lehetséges, hogy ettõl nem mûködik a betöltés?
Hogy oldhatnám meg?

Nem elérhető Erik3333

  • 945
  • SMF | phpBB | TS3 | PHP | HTML | CSS | JS | PAWN | JAVA
    • Profil megtekintése
Kocsi betöltés probléma
« Válasz #1 Dátum: 2014. Január 27. - 20:40:01 »
0 Show voters
Ellenõrizd, hogy a Vehicles mappában van-e egy 0.ini nevû fájl.
Ha van, akkor töröld ki és jó lesz(legalábbis nálam megjavult).

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal