Hallo Community,
aus irgendeinen Grund verrutschen bei mir die ganzen Datensätze.
Mal ein Beispiel:
[20:50:23] ID: 35 | Fraktion: 15 | Rows:112
[20:50:23] ID: 36 | Fraktion: 15 | Rows:112
[20:50:23] ID: 37 | Fraktion: 12 | Rows:112
36 Gibt es in der Datenbank nicht aber wird trotzdem ausgeführt und somit rutschen alle ein Runter und es fehlen mehrer somit geht er nicht alle Fahrzeuge durch.
case _SQL_FVEH_LOAD:
{
cache_get_data(rows,fields);
new fv = 0;
while(fv <= rows)
{
if(rows)
{
cache_get_field_content(fv,"id",result);
Fahrzeug[fv][Carkey] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"Fraktion",result);
Fahrzeug[fv][Fraktion] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"modelid",result);
Fahrzeug[fv][modelid] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"Farbe1",result);
Fahrzeug[fv][Colour1] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"Farbe2",result);
Fahrzeug[fv][Colour2] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"Paintjob",result);
Fahrzeug[fv][Paintjob] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"HP",result);
Fahrzeug[fv][HP] = floatstr(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"posx",result);
Fahrzeug[fv][posx] = floatstr(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"posy",result);
Fahrzeug[fv][posy] = floatstr(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"posz",result);
Fahrzeug[fv][posz] = floatstr(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"posa",result);
Fahrzeug[fv][posa] = floatstr(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"Abgeschlossen",result);
Fahrzeug[fv][Abgeschlossen] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"Interior",result);
Fahrzeug[fv][Interior] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"VirtualWorld",result);
Fahrzeug[fv][VirtualWorld] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"Nummernschild",result);
strmid(Fahrzeug[fv][Nummernschild],result,0,strlen(result),64);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"Spoiler",result);
Fahrzeug[fv][Spoiler] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"Wheels",result);
Fahrzeug[fv][Wheels] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"Nitro",result);
Fahrzeug[fv][Nitro] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"Roof",result);
Fahrzeug[fv][Roof] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"Hood",result);
Fahrzeug[fv][Hood] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"Sideskirt",result);
Fahrzeug[fv][Sideskirt] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"Lamps",result);
Fahrzeug[fv][Lamps] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"Exhaust",result);
Fahrzeug[fv][Exhaust] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"Stereo",result);
Fahrzeug[fv][Stereo] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"Hydraulics",result);
Fahrzeug[fv][Hydraulics] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"VentRight",result);
Fahrzeug[fv][VentRight] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"VentLeft",result);
Fahrzeug[fv][VentLeft] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"FrontBumper",result);
Fahrzeug[fv][FrontBumper] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"RearBumper",result);
Fahrzeug[fv][RearBumper] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"KaufPreis",result);
Fahrzeug[fv][Preis] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"FraktionsRang",result);
Fahrzeug[fv][FraktionsRang] = strval(result);
strdel(result,0,sizeof(result));
Fahrzeug[fv][Vehicle] = CreateVehicleEx(Fahrzeug[fv][modelid],Fahrzeug[fv][posx],Fahrzeug[fv][posy],Fahrzeug[fv][posz],Fahrzeug[fv][posa],Fahrzeug[fv][Colour1],Fahrzeug[fv][Colour2],-1);
SetVehicleNumberPlate(Fahrzeug[fv][Vehicle],Fahrzeug[fv][Nummernschild]);
cache_get_field_content(fv,"Abgeschleppt",result);
vFahrzeug[Fahrzeug[fv][Vehicle]][Abgeschleppt] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"AbgeschlepptPreis",result);
vFahrzeug[Fahrzeug[fv][Vehicle]][AbgeschlepptPreis] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"AbgeschlepptGrund",result);
strmid(vFahrzeug[Fahrzeug[fv][Vehicle]][AbgeschlepptGrund],result,0,strlen(result),128);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"Neon",result);
vFahrzeug[Fahrzeug[fv][Vehicle]][Neon] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"Motorschaden",result);
MotorDown[Fahrzeug[fv][Vehicle]] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"FailGas",result);
vFahrzeug[Fahrzeug[fv][Vehicle]][FailGas] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"Tank",result);
vFahrzeug[Fahrzeug[fv][Vehicle]][Tank] = floatstr(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"Kilometerstand",result);
vFahrzeug[Fahrzeug[fv][Vehicle]][Kilometer] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"KofferraumGanja",result);
vFahrzeug[Fahrzeug[fv][Vehicle]][KofferraumGanja] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"KofferraumKokain",result);
vFahrzeug[Fahrzeug[fv][Vehicle]][KofferraumKokain] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"KofferraumMaterials",result);
vFahrzeug[Fahrzeug[fv][Vehicle]][KofferraumMaterials] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"KofferraumOpium",result);
vFahrzeug[Fahrzeug[fv][Vehicle]][KofferraumOpium] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"KofferraumSpice",result);
vFahrzeug[Fahrzeug[fv][Vehicle]][KofferraumSpice] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"KofferraumLunchpakete",result);
vFahrzeug[Fahrzeug[fv][Vehicle]][KofferraumLunchpakete] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"KofferraumC4",result);
vFahrzeug[Fahrzeug[fv][Vehicle]][KofferraumC4] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"KofferraumWerkzeugkasten",result);
vFahrzeug[Fahrzeug[fv][Vehicle]][KofferraumWerkzeugkasten] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"KofferraumBenzinkanister",result);
vFahrzeug[Fahrzeug[fv][Vehicle]][KofferraumBenzinkanister] = strval(result);
strdel(result,0,sizeof(result));
cache_get_field_content(fv,"Handbremse",result);
vFahrzeug[Fahrzeug[fv][Vehicle]][Handbremse] = strval(result);
strdel(result,0,sizeof(result));
FVehicleTuning(fv);
if(Fahrzeug[fv][modelid] == 578)
{
printf("Bug: Modelid:%d | Fraktion:%d | Nummernschild:%s", Fahrzeug[fv][modelid], Fahrzeug[fv][Fraktion],Fahrzeug[fv][Nummernschild]);
}
printf("ID: %d | Fraktion: %d | Rows:%d", fv, Fahrzeug[fv][Fraktion], rows);
fv++;
}
}
printf("- Fraktionsfahrzeuge geladen %i/%i -",rows, MAX_FVEHS);
return 1;
}
Hoffe mal ihr habt ne Ahnung Warum.
Plugin Version R35.
Mit Freundlichen Grüßen
Dragonfly