Erstellen speichern alles funktioniert nur beim laden hat er Probleme ich schreibe euch kurz wie ich das im Script vermerkt habe.
Benutze MySQL R41-4
public OnGameModeInit()
{
for(new l=0;l<MAX_CARS;l++)
{
new query[2000];
mysql_format(handle, query, sizeof(query), "SELECT * FROM fracvehicles WHERE ID = '%e'", l);
mysql_pquery(handle, query, "LFC", "d", l);
//LFC(l);
}
stock LFC(autoid)
{
new rows;
cache_get_row_count(rows);
cache_get_value_name_int(0, "ID", autoid);
cache_get_value_name_int(0, "Model", FCInfo[autoid][carvehid]);
cache_get_value_name_float(0, "X", FCInfo[autoid][fcx]);
cache_get_value_name_float(0, "Y", FCInfo[autoid][fcy]);
cache_get_value_name_float(0, "Z", FCInfo[autoid][fcz]);
cache_get_value_name_float(0, "A", FCInfo[autoid][fca]);
cache_get_value_name_int(0, "Fraktion", FCInfo[autoid][Frakid]);
cache_get_value_name_int(0, "Farbe1", FCInfo[autoid][fcc1]);
cache_get_value_name_int(0, "Farbe2", FCInfo[autoid][fcc2]);
cache_get_value_name_int(0, "Opark", FCInfo[autoid][Opark]);
cache_get_value_name_int(0, "Paintjob", FCInfo[autoid][Paintjob]);
cache_get_value_name_int(0, "spoiler", FCInfo[autoid][spoiler]);
cache_get_value_name_int(0, "Wheels", FCInfo[autoid][Wheels]);
cache_get_value_name_int(0, "Nitro", FCInfo[autoid][Nitro]);
cache_get_value_name_int(0, "Roof", FCInfo[autoid][Roof]);
cache_get_value_name_int(0, "Hood", FCInfo[autoid][Hood]);
cache_get_value_name_int(0, "Sideskirt", FCInfo[autoid][Sideskirt]);
cache_get_value_name_int(0, "Lamps", FCInfo[autoid][Lamps]);
cache_get_value_name_int(0, "Exhaust", FCInfo[autoid][Exhaust]);
cache_get_value_name_int(0, "Stereo", FCInfo[autoid][Stereo]);
cache_get_value_name_int(0, "Hydraulics", FCInfo[autoid][Hydraulics]);
cache_get_value_name_int(0, "VentRight", FCInfo[autoid][VentRight]);
cache_get_value_name_int(0, "VentLeft", FCInfo[autoid][VentLeft]);
cache_get_value_name_int(0, "FrontBumper", FCInfo[autoid][FrontBumper]);
cache_get_value_name_int(0, "RearBumper", FCInfo[autoid][RearBumper]);
FCInfo[autoid][open] = 1;
Frakcar[autoid] = CreateVehicle(FCInfo[autoid][carvehid],FCInfo[autoid][fcx],FCInfo[autoid][fcy],FCInfo[autoid][fcz],FCInfo[autoid][fca],FCInfo[autoid][fcc1],FCInfo[autoid][fcc2],-1);
//ab hier errors
if(FCInfo[autoid][Paintjob] >= 0) //zeile 49702
{
ChangeVehiclePaintjob(FCInfo[autoid],FCInfo[autoid][Paintjob]);
}
if(FCInfo[autoid][spoiler] >= 999){ AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][spoiler]); }
if(FCInfo[autoid][Hood] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][Hood]); }
if(FCInfo[autoid][Roof] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][Roof]); }
if(FCInfo[autoid][Sideskirt] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][Sideskirt]); }
if(FCInfo[autoid][Lamps] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][Lamps]); }
if(FCInfo[autoid][Nitro] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][Nitro]); }
if(FCInfo[autoid][Exhaust] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][Exhaust]); }
if(FCInfo[autoid][Wheels] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][Wheels]); }
if(FCInfo[autoid][Stereo] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][Stereo]); }
if(FCInfo[autoid][Hydraulics] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][Hydraulics]); }
if(FCInfo[autoid][FrontBumper] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][FrontBumper]); }
if(FCInfo[autoid][RearBumper] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][RearBumper]); }
if(FCInfo[autoid][VentRight] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][VentRight]); }
if(FCInfo[autoid][VentLeft] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][VentLeft]); }
if(FCInfo[autoid][Frakid] == 1) {SetVehicleNumberPlate(Frakcar[autoid], "LSPD"); }
if(FCInfo[autoid][Frakid] == 2) {SetVehicleNumberPlate(Frakcar[autoid], "FBI"); }
if(FCInfo[autoid][Frakid] == 3) {SetVehicleNumberPlate(Frakcar[autoid], "Medic"); }
if(FCInfo[autoid][Frakid] == 4) {SetVehicleNumberPlate(Frakcar[autoid], "Unknown"); }
if(FCInfo[autoid][Frakid] == 5) {SetVehicleNumberPlate(Frakcar[autoid], "News"); }
if(FCInfo[autoid][Frakid] == 6) {SetVehicleNumberPlate(Frakcar[autoid], "Penner"); }
if(FCInfo[autoid][Frakid] == 7) {SetVehicleNumberPlate(Frakcar[autoid], "Oamt"); }
if(FCInfo[autoid][Frakid] == 8) {SetVehicleNumberPlate(Frakcar[autoid], "Russen"); }
if(FCInfo[autoid][Frakid] == 9) {SetVehicleNumberPlate(Frakcar[autoid], "Yakuza"); }
if(FCInfo[autoid][Frakid] == 10) {SetVehicleNumberPlate(Frakcar[autoid], "Ballas"); }
if(FCInfo[autoid][Frakid] == 11) {SetVehicleNumberPlate(Frakcar[autoid], "Grove"); }
if(FCInfo[autoid][Frakid] == 12) {SetVehicleNumberPlate(Frakcar[autoid], "LCM"); }
if(FCInfo[autoid][Frakid] == 13) {SetVehicleNumberPlate(Frakcar[autoid], "Feuerwehr"); }
if(FCInfo[autoid][Frakid] == 14) {SetVehicleNumberPlate(Frakcar[autoid], "Army"); }
if(FCInfo[autoid][Frakid] == 15) {SetVehicleNumberPlate(Frakcar[autoid], "SWAT"); }
if(FCInfo[autoid][Frakid] == 16) {SetVehicleNumberPlate(Frakcar[autoid], "Biker"); }
if(FCInfo[autoid][Frakid] == 17) {SetVehicleNumberPlate(Frakcar[autoid], "Aztecas"); }
if(FCInfo[autoid][Frakid] == 18) {SetVehicleNumberPlate(Frakcar[autoid], "Vagos"); }
if(FCInfo[autoid][Frakid] == 19) {SetVehicleNumberPlate(Frakcar[autoid], "WestCoast"); }
if(FCInfo[autoid][Frakid] == 20) {SetVehicleNumberPlate(Frakcar[autoid], "2F2F"); }
if(FCInfo[autoid][Frakid] == 21) {SetVehicleNumberPlate(Frakcar[autoid], "Al quaida"); }
return 1;
}
Wenn mir jemand helfen könnte wäre mega nett danke
Mit Freundlichen Grüßen
Steven