Car System bugt.

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Guten Abend,
    Mein Car System funktioniert nicht. Das Car wird nach dem Kauf gespawned aber dann ist es bei /carkey nicht zufinden und nach relog wurde es zwar gespeichert spawned aber nicht.


    Buy Befehl:
    if(strcmp("/buycar", cmd, true) == 0)
    {
    if(Spectating[playerid] != -1)
    {
    if(Carlist[playerid][CarKey[playerid]][Typ] == -1)
    {
    new preis = Kaufliste[Spectating[playerid]][Preis];
    if(preis <= PlayerInfo[playerid][pCash])
    {
    new VID = GetPlayerVehicleID(playerid);
    new autohaus = Kaufliste[Spectating[playerid]][Autohaus];
    GivePlayerMoneys(playerid, - preis);
    Carlist[playerid][CarKey[playerid]][Typ] = GetVehicleModel(GetPlayerVehicleID(playerid));
    Carlist[playerid][CarKey[playerid]][pos_x] = Autospawns[autohaus][pos_x];
    Carlist[playerid][CarKey[playerid]][pos_y] = Autospawns[autohaus][pos_y];
    Carlist[playerid][CarKey[playerid]][pos_z] = Autospawns[autohaus][pos_z];
    Carlist[playerid][CarKey[playerid]][z_angle] = Autospawns[autohaus][z_angle];
    Carlist[playerid][CarKey[playerid]][SpawnSaveX] = Autospawns[autohaus][pos_x];
    Carlist[playerid][CarKey[playerid]][SpawnSaveY] = Autospawns[autohaus][pos_y];
    Carlist[playerid][CarKey[playerid]][SpawnSaveZ] = Autospawns[autohaus][pos_z];
    Carlist[playerid][CarKey[playerid]][SpawnSaveRot] = Autospawns[autohaus][z_angle];
    Carlist[playerid][CarKey[playerid]][Status] = 0;
    Carlist[playerid][CarKey[playerid]][Lock] = 0;
    Carlist[playerid][CarKey[playerid]][ingarage] = 1;
    Carlist[playerid][CarKey[playerid]][TankVolumen] = vehTank[GetVehicleModel(VID)-400];
    Carlist[playerid][CarKey[playerid]][Carid] = CreateTunedCar(playerid, CarKey[playerid]);
    Kilometer[Carlist[playerid][CarKey[playerid]][Carid]] = 0;
    Gas[Carlist[playerid][CarKey[playerid]][Carid]] = Carlist[playerid][CarKey[playerid]][TankVolumen];
    SetPlayerCheckpoint(playerid,Carlist[playerid][CarKey[playerid]][pos_x],Carlist[playerid][CarKey[playerid]][pos_y],Carlist[playerid][CarKey[playerid]][pos_z],10.0);
    new query[900], h = CarKey[playerid];
    format(query,sizeof(query),"INSERT INTO `cars` (`sqlid`,`carkey`,`ingarage`,`AH_Typ`,`AH_X`,`AH_Y`,`AH_Z`,`AH_Rot`,`AH_Status`,`AH_Lock`,`AH_Paintjob`,`AH_Farbe1`,`AH_Farbe2`,`AH_Mod1`,`AH_Mod2`,`AH_Mod3`,`AH_Mod4`,`AH_Mod5`,`AH_Mod6`,`AH_Mod7`,`AH_Mod8`,`AH_Mod9`,`AH_Mod10`,`AH_Mod11`,`AH_Mod12`,`AH_Mod13`,`AH_Mod14`,`AH_Mod15`,`AH_Mod16`,`AH_Mod17`,");
    format(query,sizeof(query),"%s`AH_SpawnSaveX`,`AH_SpawnSaveY`,`AH_SpawnSaveZ`,`AH_SpawnSaveRot`,`AH_TankVolumen`,`AH_Mats`,`AH_Neon`,`AH_NeonType`,`AH_Drugs`,`AH_StandTime`,`AH_Meter`) VALUES (%d,%d,%i,%i,%f,%f,%f,%f,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%f,%f,%f,%f,%i,%i,%i,%i,%i,%i,%i)",
    query,PlayerInfo[playerid][pSQLID],h,Carlist[playerid][h][ingarage],Carlist[playerid][h][Typ],Carlist[playerid][h][pos_x],Carlist[playerid][h][pos_y],Carlist[playerid][h][pos_z],
    Carlist[playerid][h][z_angle],Carlist[playerid][h][Status],Carlist[playerid][h][Lock],Carlist[playerid][h][Paintjob],
    Carlist[playerid][h][Farbe1],Carlist[playerid][h][Farbe2],Carlist[playerid][h][mod1],Carlist[playerid][h][mod2],
    Carlist[playerid][h][mod3],Carlist[playerid][h][mod4],Carlist[playerid][h][mod5],Carlist[playerid][h][mod6],
    Carlist[playerid][h][mod7],Carlist[playerid][h][mod8],Carlist[playerid][h][mod9],Carlist[playerid][h][mod10],
    Carlist[playerid][h][mod11],Carlist[playerid][h][mod12],Carlist[playerid][h][mod13],Carlist[playerid][h][mod14],
    Carlist[playerid][h][mod15],Carlist[playerid][h][mod16],Carlist[playerid][h][mod17],
    Carlist[playerid][h][SpawnSaveX],Carlist[playerid][h][SpawnSaveY],Carlist[playerid][h][SpawnSaveZ],
    Carlist[playerid][h][SpawnSaveRot],Carlist[playerid][h][TankVolumen],Carlist[playerid][h][cMats],
    Carlist[playerid][h][Neon],Carlist[playerid][h][NeonType],Carlist[playerid][h][cDrugs],Carlist[playerid][h][StandTime],
    Kilometer[Carlist[playerid][h][CarID]]);
    mysql_query(query);
    ForAllPlayers(i){
    if(IsPlayerConnected(i)){
    SetVehicleParamsForPlayer(Kaufliste[Spectating[playerid]][Carid], i, 0, 0);
    print("OnPlayerDeath: message sent13");
    }}
    TogglePlayerControllable(playerid,1);
    RemovePlayerFromVehicle(playerid);
    format(string, sizeof(string), "Du hast dir erfolgreich für %s$ ein/einen %s gekauft!",GetPoint(preis),Kaufliste[Spectating[playerid]][Name]);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "öffnen und Schließen kannst du es mit /lock und /carlock.");
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Mehr Befehle kannst du unter /carhelp sehen.");
    SendClientMessage(playerid, COLOR_YELLOW, "Dein Auto steht am Ausgabepunkt(Roter Marker) bereit! Viel Spaß beim Fahren!");
    GetPlayerName(playerid, sendername, sizeof(sendername));
    if(Kaufliste[Spectating[playerid]][Autohaus] == 2)
    {
    BizInfo[13][bTill] += (preis/100)*19;
    }
    Spectating[playerid] = -1;
    }
    else
    {
    format(string, sizeof(string), " Du hast nicht genug Geld für das Auto (benötigt: $%i)!", preis);
    SendClientMessage(playerid, COLOR_ERRORTEXT, string);
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_ERRORTEXT, " Du besitzt bereits ein Auto auf dem ausgewählten Schlüssel!");
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_ERRORTEXT, " Du besichtigst kein Auto !");
    }
    return 1;
    }
    public PlayerCarConnect(playerid)
    {
    if(IsPlayerNPC(playerid))
    {
    return 1;
    }
    new playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername, sizeof(playername));
    for(new h = 0; h < MaxVeh[playerid]; h++)
    {
    new data[100],TextString[50];
    format(TextString, sizeof(TextString), "SELECT * FROM `cars` WHERE `id`=%i", PlayerInfo[playerid][pSQLID]);
    self_mysql_query(TextString);
    mysql_store_result(MySQLConnection);
    if(mysql_num_rows(MySQLConnection) != 0)
    {
    mysql_fetch_row_format(TextString);
    self_mysql_get_field("id", data); Carlist[playerid][h][cid] = strval( data );
    self_mysql_get_field("sqlid", data); Carlist[playerid][h][sqlid] = strval( data );
    self_mysql_get_field("ingarage", data); Carlist[playerid][h][ingarage] = strval( data );
    self_mysql_get_field("AH_Typ", data); Carlist[playerid][h][Typ] = strval( data );
    self_mysql_get_field("AH_X", data); Carlist[playerid][h][pos_x] = floatstr( data );
    self_mysql_get_field("AH_Y", data); Carlist[playerid][h][pos_y] = floatstr( data );
    self_mysql_get_field("AH_Z", data); Carlist[playerid][h][pos_z] = floatstr( data );
    self_mysql_get_field("AH_Rot", data); Carlist[playerid][h][z_angle] = floatstr( data );
    self_mysql_get_field("AH_Status", data); Carlist[playerid][h][Status] = strval( data );
    self_mysql_get_field("AH_Lock", data); Carlist[playerid][h][Lock] = strval( data );
    self_mysql_get_field("AH_Paintjob", data); Carlist[playerid][h][Paintjob] = strval( data );
    self_mysql_get_field("AH_Farbe1", data); Carlist[playerid][h][Farbe1] = strval( data );
    self_mysql_get_field("AH_Farbe2", data); Carlist[playerid][h][Farbe2] = strval( data );
    self_mysql_get_field("AH_mod1", data); Carlist[playerid][h][mod1] = strval( data );
    self_mysql_get_field("AH_mod2", data); Carlist[playerid][h][mod2] = strval( data );
    self_mysql_get_field("AH_mod3", data); Carlist[playerid][h][mod3] = strval( data );
    self_mysql_get_field("AH_mod4", data); Carlist[playerid][h][mod4] = strval( data );
    self_mysql_get_field("AH_mod5", data); Carlist[playerid][h][mod5] = strval( data );
    self_mysql_get_field("AH_mod6", data); Carlist[playerid][h][mod6] = strval( data );
    self_mysql_get_field("AH_mod7", data); Carlist[playerid][h][mod7] = strval( data );
    self_mysql_get_field("AH_mod8", data); Carlist[playerid][h][mod8] = strval( data );
    self_mysql_get_field("AH_mod9", data); Carlist[playerid][h][mod9] = strval( data );
    self_mysql_get_field("AH_mod10", data); Carlist[playerid][h][mod10] = strval( data );
    self_mysql_get_field("AH_mod11", data); Carlist[playerid][h][mod11] = strval( data );
    self_mysql_get_field("AH_mod12", data); Carlist[playerid][h][mod12] = strval( data );
    self_mysql_get_field("AH_mod13", data); Carlist[playerid][h][mod13] = strval( data );
    self_mysql_get_field("AH_mod14", data); Carlist[playerid][h][mod14] = strval( data );
    self_mysql_get_field("AH_mod15", data); Carlist[playerid][h][mod15] = strval( data );
    self_mysql_get_field("AH_mod16", data); Carlist[playerid][h][mod16] = strval( data );
    self_mysql_get_field("AH_mod17", data); Carlist[playerid][h][mod17] = strval( data );
    self_mysql_get_field("AH_SpawnSaveX", data); Carlist[playerid][h][SpawnSaveX] = floatstr( data );
    self_mysql_get_field("AH_SpawnSaveY", data); Carlist[playerid][h][SpawnSaveY] = floatstr( data );
    self_mysql_get_field("AH_SpawnSaveZ", data); Carlist[playerid][h][SpawnSaveZ] = floatstr( data );
    self_mysql_get_field("AH_SpawnSaveRot", data); Carlist[playerid][h][SpawnSaveRot] = floatstr( data );
    self_mysql_get_field("AH_TankVolumen", data); Carlist[playerid][h][TankVolumen] = strval( data );
    self_mysql_get_field("AH_Mats", data); Carlist[playerid][h][cMats] = strval(data);
    self_mysql_get_field("AH_Neon", data); Carlist[playerid][h][Neon] = strval(data);
    self_mysql_get_field("AH_NeonType", data); Carlist[playerid][h][NeonType] = strval(data);
    self_mysql_get_field("AH_Drugs", data); Carlist[playerid][h][cDrugs] = strval(data);
    self_mysql_get_field("AH_StandTime", data); Carlist[playerid][h][StandTime] = strval(data);
    self_mysql_get_field("AH_Meter", data); Kilometer[Carlist[playerid][h][h]] = strval(data);
    Carlist[playerid][h][Carid] = CreateTunedCar(playerid, h);
    if(Carlist[playerid][h][Typ] != -1 && Carlist[playerid][h][Status] == 0){
    printf("Fahrzeugspeicherung: Beginning Spawn.");
    printf("Fahrzeugspeicherung: End Spawn.");}
    printf("(%d,%d,%i,%i,%f,%f,%f,%f,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%f,%f,%f,%f,%i,%i,%i,%i,%i,%i,%f)",
    PlayerInfo[playerid][pSQLID],h,Carlist[playerid][h][ingarage],Carlist[playerid][h][Typ],Carlist[playerid][h][pos_x],Carlist[playerid][h][pos_y],Carlist[playerid][h][pos_z],
    Carlist[playerid][h][z_angle],Carlist[playerid][h][Status],Carlist[playerid][h][Lock],Carlist[playerid][h][Paintjob],
    Carlist[playerid][h][Farbe1],Carlist[playerid][h][Farbe2],Carlist[playerid][h][mod1],Carlist[playerid][h][mod2],
    Carlist[playerid][h][mod3],Carlist[playerid][h][mod4],Carlist[playerid][h][mod5],Carlist[playerid][h][mod6],
    Carlist[playerid][h][mod7],Carlist[playerid][h][mod8],Carlist[playerid][h][mod9],Carlist[playerid][h][mod10],
    Carlist[playerid][h][mod11],Carlist[playerid][h][mod12],Carlist[playerid][h][mod13],Carlist[playerid][h][mod14],
    Carlist[playerid][h][mod15],Carlist[playerid][h][mod16],Carlist[playerid][h][mod17],
    Carlist[playerid][h][SpawnSaveX],Carlist[playerid][h][SpawnSaveY],Carlist[playerid][h][SpawnSaveZ],
    Carlist[playerid][h][SpawnSaveRot],Carlist[playerid][h][TankVolumen],Carlist[playerid][h][cMats],
    Carlist[playerid][h][Neon],Carlist[playerid][h][NeonType],Carlist[playerid][h][cDrugs],Carlist[playerid][h][StandTime],
    Kilometer[Carlist[playerid][h][CarID]]);
    }
    }
    return 1;
    }


    public CreateTunedCar(playerid, CarKey1)
    {
    printf("ingarage=%i",Carlist[playerid][CarKey1][ingarage]);
    if(IsPlayerConnected(playerid) && Carlist[playerid][CarKey1][Typ] != -1)
    {
    printf("ingarage=%i",Carlist[playerid][CarKey1][ingarage]);
    if(Carlist[playerid][CarKey1][ingarage] == 1) return 1;
    new carid = CreateVehicle(Carlist[playerid][CarKey1][Typ],Carlist[playerid][CarKey1][pos_x],Carlist[playerid][CarKey1][pos_y],Carlist[playerid][CarKey1][pos_z],Carlist[playerid][CarKey1][z_angle],-1,-1,-1);
    Carlist[playerid][CarKey1][CarID] = carid;
    printf("carid = %d", carid);
    new string[50];
    format(string, sizeof(string), "{FFFF00}E-RP-{21DD00}%d", carid);
    printf("string=%s", string);
    SetVehicleNumberPlate(carid,string);
    Gas[carid] = Carlist[playerid][CarKey1][TankVolumen];
    printf("Gas: %d", Gas[carid]);
    Locked[carid] = Carlist[playerid][CarKey1][Lock];
    printf("Locked: %d", Locked[carid]);
    if(Carlist[playerid][CarKey1][Lock] == 1)
    {
    ForAllPlayers(i)
    {
    SetVehicleParamsForPlayer(carid,i,0,1);
    }
    }
    printf("Vor components");
    if(Carlist[playerid][CarKey1][mod1]!=-1) { AddVehicleComponent(carid,Carlist[playerid][CarKey1][mod1]); }
    if(Carlist[playerid][CarKey1][mod2]!=-1) { AddVehicleComponent(carid,Carlist[playerid][CarKey1][mod2]); }
    if(Carlist[playerid][CarKey1][mod3]!=-1) { AddVehicleComponent(carid,Carlist[playerid][CarKey1][mod3]); }
    if(Carlist[playerid][CarKey1][mod4]!=-1) { AddVehicleComponent(carid,Carlist[playerid][CarKey1][mod4]); }
    if(Carlist[playerid][CarKey1][mod5]!=-1) { AddVehicleComponent(carid,Carlist[playerid][CarKey1][mod5]); }
    if(Carlist[playerid][CarKey1][mod6]!=-1) { AddVehicleComponent(carid,Carlist[playerid][CarKey1][mod6]); }
    if(Carlist[playerid][CarKey1][mod7]!=-1) { AddVehicleComponent(carid,Carlist[playerid][CarKey1][mod7]); }
    if(Carlist[playerid][CarKey1][mod8]!=-1) { AddVehicleComponent(carid,Carlist[playerid][CarKey1][mod8]); }
    if(Carlist[playerid][CarKey1][mod9]!=-1) { AddVehicleComponent(carid,Carlist[playerid][CarKey1][mod9]); }
    if(Carlist[playerid][CarKey1][mod10]!=-1) { AddVehicleComponent(carid,Carlist[playerid][CarKey1][mod10]); }
    if(Carlist[playerid][CarKey1][mod11]!=-1) { AddVehicleComponent(carid,Carlist[playerid][CarKey1][mod11]); }
    if(Carlist[playerid][CarKey1][mod12]!=-1) { AddVehicleComponent(carid,Carlist[playerid][CarKey1][mod12]); }
    if(Carlist[playerid][CarKey1][mod13]!=-1) { AddVehicleComponent(carid,Carlist[playerid][CarKey1][mod13]); }
    if(Carlist[playerid][CarKey1][mod14]!=-1) { AddVehicleComponent(carid,Carlist[playerid][CarKey1][mod14]); }
    if(Carlist[playerid][CarKey1][mod15]!=-1) { AddVehicleComponent(carid,Carlist[playerid][CarKey1][mod15]); }
    if(Carlist[playerid][CarKey1][mod16]!=-1) { AddVehicleComponent(carid,Carlist[playerid][CarKey1][mod16]); }
    if(Carlist[playerid][CarKey1][mod17]!=-1) { AddVehicleComponent(carid,Carlist[playerid][CarKey1][mod17]); }
    if(Carlist[playerid][CarKey1][Paintjob]!=-1) { ChangeVehiclePaintjob(carid,Carlist[playerid][CarKey1][Paintjob]); }
    if(Carlist[playerid][CarKey1][Farbe1]!=-1) { ChangeVehicleColor(carid,Carlist[playerid][CarKey1][Farbe1],Carlist[playerid][CarKey1][Farbe2]); }
    printf("Nach components");
    for(new i; i<MaxVeh[playerid]; i++)
    {
    printf("i:%d", i);
    if(Carlist[playerid][i][Neon]!=0)
    {
    printf("Neon: %d", Carlist[playerid][i][NeonType]);
    switch(Carlist[playerid][i][NeonType])
    {
    case 0:AttachObjectToVehicle(CreateObject(18647,0,0,0,0,0,0), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0), AttachObjectToVehicle(CreateObject(18647,0,0,0,0,0,0), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    case 1:AttachObjectToVehicle(CreateObject(18648,0,0,0,0,0,0), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0), AttachObjectToVehicle(CreateObject(18648,0,0,0,0,0,0), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    case 2:AttachObjectToVehicle(CreateObject(18649,0,0,0,0,0,0), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0), AttachObjectToVehicle(CreateObject(18649,0,0,0,0,0,0), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    case 3:AttachObjectToVehicle(CreateObject(18650,0,0,0,0,0,0), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0), AttachObjectToVehicle(CreateObject(18650,0,0,0,0,0,0), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    case 4:AttachObjectToVehicle(CreateObject(18651,0,0,0,0,0,0), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0), AttachObjectToVehicle(CreateObject(18651,0,0,0,0,0,0), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    case 5:AttachObjectToVehicle(CreateObject(18652,0,0,0,0,0,0), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0), AttachObjectToVehicle(CreateObject(18652,0,0,0,0,0,0), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    }
    }
    }
    printf("returning: %d", carid);
    return carid;
    }
    printf("returning: error -1");
    return -1;
    }


    [16:58:07] ingarage=0
    [16:58:07] ingarage=0
    [16:58:07] carid = 283
    [16:58:07] string={FFFF00}E-RP-{21DD00}283
    [16:58:07] Gas: 100
    [16:58:07] Locked: 0
    [16:58:07] Vor components
    [16:58:07] Nach components
    [16:58:07] i:0
    [16:58:07] i:1
    [16:58:07] i:2
    [16:58:07] returning: 283
    [16:58:07] OnPlayerDeath: message sent13
    [16:58:12] [debug] Run time error 4: "Array index out of bounds"
    [16:58:12] [debug] Accessing element at index 419 past array upper bound 44
    [16:58:12] [debug] AMX backtrace:
    [16:58:12] [debug] #0 000ab5b4 in public ocmdOnPlayerCommandText (0, 4248436) from irp.amx
    [16:58:12] [debug] #1 native CallLocalFunction () from samp03svr
    [16:58:12] [debug] #2 00002164 in public OnPlayerCommandText (0, 4248404) from irp.amx

  • format(TextString, sizeof(TextString), "SELECT * FROM `cars` WHERE `id`=%i", PlayerInfo[playerid][pSQLID]);
    zu:
    format(TextString, sizeof(TextString), "SELECT * FROM `cars` WHERE `sqlid`=%i", PlayerInfo[playerid][pSQLID]);


    Dann sollte es laden.



    Zwecks des /carkey:
    Poste den Befehl mal.

  • Carkey:
    if(strcmp("/carkey", cmd, true) == 0)
    {
    if(MaxVeh[playerid] > 1)
    {
    CarKey[playerid] += 1;
    if(CarKey[playerid] == MaxVeh[playerid])
    {
    CarKey[playerid] = 0;
    }
    if(Carlist[playerid][CarKey[playerid]][Typ] != -1)
    {
    format(string, sizeof(string), "Du nimmst deinen %dten Auto-Schlüssel, für deinen %s !", CarKey[playerid]+1, Kaufliste[Carlist[playerid][CarKey[playerid]][Typ]][Name]);
    }
    else
    {
    format(string, sizeof(string), "Du nimmst deinen %dten Auto-Schlüssel !",CarKey[playerid]+1);
    }
    SendClientMessage(playerid,COLOR_YELLOW,string);
    }
    return 1;
    }

  • So sieht diese aus:
    new Kaufliste[45][ahModell] =
    {
    /////////////////////////////Intercars//////////////////////////////////
    {"Tampa",0,549,-1,6600,100,766.3573,-1378.6475,13.3541,269.4215}, //intercars
    {"Bobcat",0,422,-1,8600,100,766.2212,-1373.8983,13.5806,269.0165},
    {"Burrito",0,482,-1,12000,640,766.4193,-1368.8649,13.6737,266.4977},
    {"Nebula",0,516,-1,12500,150,766.1318,-1364.1688,13.3903,269.4459},
    {"Phoenix",0,603,-1,13500,250,766.2344,-1359.5094,13.4226,268.1375},
    {"Savanna",0,567,-1,13000,150,783.5147,-1367.2809,13.4088,92.8256},
    {"Slamvan",0,535,-1,30000,300,783.8260,-1356.5822,13.3273,90.1728},
    {"Voodoo",0,412,-1,25500,250,782.9839,-1335.4767,13.4323,88.8266},
    {"Tornado",0,576,-1,15000,175,783.2136,-1377.6055,13.2309,88.6873},
    {"Broadway",0,575,-1,9000,200,783.5681,-1372.7090,13.2070,94.9154},
    {"Balde",0,536,-1,150,15000,783.5160,-1361.8856,13.3241,89.2535},
    {"Remington",0,534,-1,12000,650,783.4966,-1351.3638,13.2953,88.0422},
    {"Buccaneer",0,518,-1,55000,1500,783.2993,-1346.0609,13.2515,79.4080},
    {"Esperanto",0,419,-1,8000,700,783.4002,-1340.4026,13.4123,91.5259},
    {"Hustler",0,545,-1,12500,300,771.0963,-1333.1886,13.2466,179.9259},
    {"Blista",0,496,-1,4500,350,766.1276,-1333.2665,13.2896,179.4678},
    {"Comet",0,480,-1,18000,80,761.2780,-1333.2695,13.3010,176.7838},
    {"Elegy",0,562,-1,20000,80,756.5835,-1333.0814,13.1270,182.4252},
    {"Huntley",0,579,-1,100000,1000,751.5070,-1334.0564,13.5520,182.1816},
    {"Mesa",0,500,-1,8000,250,746.6382,-1333.4875,13.6658,179.9870},
    {"Moonbeam",0,418,-1,15000,245,741.8511,-1333.5743,13.6650,180.3323},//intercars ende 21
    /////////////////////////////////Grottis//////////////////////////////////////
    {"Buffalo",1,402,-1,155000,350,558.8314,-1289.5635,17.0566,359.8489}, //Grottis
    {"Bullet",1,541,-1,180000,450,537.7307,-1289.6569,16.8788,359.9076},
    {"Cheetah",1,415,-1,185000,360,548.5411,-1289.2894,17.0168,6.7969},
    {"Banshee",1,429,-1,23000,150,563.1986,-1289.0668,16.9284,2.2992},
    {"Infernus",1,411,-1,50000,120,553.5667,-1289.6110,16.9802,4.0815},
    {"Turismo",1,451,-1,300000,680,542.7256,-1289.3339,16.9663,3.7311},
    {"Jester",1,559,-1,260000,150,532.2188,-1290.0289,16.9184,8.3362},
    {"Sultan",1,560,-1,27500,100,527.2485,-1290.7981,16.8880,1.5522},//Grottis Ende 8
    //////////////////////////////////2RadShop////////////////////////////////////
    {"Wayfarer",2,586,-1,11000,300,2117.6641,-1135.7371,24.7074,244.4122},
    {"BF-400",2,581,-1,12500,350,2117.6621,-1133.0946,24.7906,263.1818},
    {"NRG-500",2,522,-1,60000,450,2117.3479,-1130.3920,24.7793,255.9238},
    {"BMX",2,481,-1,1500,260,2118.0095,-1127.1219,24.7798,253.3480},
    {"Sanchez",2,468,-1,20000,75,2137.8049,-1139.0826,25.1447,104.7127},
    {"Freeway",2,463,-1,12000,100,2137.4783,-1136.2334,25.2795,105.0719},
    {"FRC-900",2,521,-1,15000,150,2117.8870,-1123.9498,24.8825,269.8976},
    {"PCJ-600",2,461,-1,10000,150,2002136.4927,-1127.3752,25.1272,102.8394},
    {"Faggio",2,462,-1,500000,200,2137.6379,-1131.5999,25.2480,108.6290},//9
    ////////////////////////////////Flugplatz///////////////////////////////////
    {"Maverick",2,487,-1,650000,200,1888.9150,-2624.0420,13.6997,0.2435},
    {"Dodo",2,593,-1,150000,200,1822.2716,-2625.2224,14.0106,359.9549},
    {"Shamal",2,519,-1,1200000,250,1754.4678,-2625.8228,14.4726,354.9949},//3
    ///////////////////////////////Gold/Traktoren/////////////////////////////
    {"Flatbed",4,455,-1,150000,250,-589.8594,-1078.3411,23.1886,241.0025},
    {"Willard",4,529,-1,25000,250,585.7016,-1072.6453,22.9929,235.4666},
    {"Traktore",4,531,-1,50000,150,-582.1254,-1066.7961,23.3816,235.8263},
    {"DFT-300",4,578,-1,120000,300,-563.4022,-1039.2424,24.7588,237.1086}//4
    };

  • Schreibe es so:
    if(strcmp("/carkey", cmd, true) == 0)
    {
    if(MaxVeh[playerid] > 1)
    {
    CarKey[playerid] += 1;
    if(CarKey[playerid] == MaxVeh[playerid])
    {
    CarKey[playerid] = 0;
    }
    if(Carlist[playerid][CarKey[playerid]][Typ] != -1)
    {
    new index = -1;
    for(new i=0; i<sizeof(Kaufliste); i++)
    {
    if(Kaufliste[i][Modelid] == Carlist[playerid][CarKey[playerid]][Typ])
    {
    index = i;
    break;
    }
    }
    if(index == -1) format(string, sizeof(string), "Du nimmst deinen %dten Auto-Schlüssel, für deinen <unbekannt> !", CarKey[playerid]+1);
    else format(string, sizeof(string), "Du nimmst deinen %dten Auto-Schlüssel, für deinen %s !", CarKey[playerid]+1, Kaufliste[index][Name]);
    }
    else
    {
    format(string, sizeof(string), "Du nimmst deinen %dten Auto-Schlüssel !",CarKey[playerid]+1);
    }
    SendClientMessage(playerid,COLOR_YELLOW,string);
    }
    return 1;
    }

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • Jeztt hat er das Atuo zwar in der CarKey Liste aber es spawned nicht.
    Mysql Log:
    [17:31:22] CMySQLHandler::Query(UPDATE `cars` SET `ingarage`=1,`AH_Typ`=516,`AH_X`='748.975219',`AH_Y`='-1345.818237',`AH_Z`='13.515500',`AH_Rot`='270.000000',`AH_Status`=0,`AH_Lock`=0,`AH_Paintjob`=-1,`AH_Farbe1`=-1,`AH_Farbe2`=-1,`AH_mod1`=-1,`AH_mod2`=-1,`AH_mod3`=-1,`AH_mod4`=-1,`AH_mod5`=0,`AH_mod6`=-1,`AH_mod7`=-1,`AH_mod8`=-1,`AH_mod9`=-1,`AH_mod10`=-1,`AH_mod11`=-1,`AH_mod12`=-1,`AH_mod13`=-1,`AH_mod14`=-1,`AH_mod15`=-1,`AH_mod16`=-1,`AH_mod17`=-1,`AH_SpawnSaveX`=92.706398,`AH_SpawnSaveY`='-300.199584',`AH_SpawnSaveZ`='1.746000',`AH_SpawnSaveRot`='359.820190',`AH_TankVolumen`=100,`AH_Mats`=0,`AH_Neon`=0,`AH_NeonType`=0,`AH_Drugs`=0,`AH_StandTime`=0,`AH_Meter`=0 WHERE `sqlid`=1 AND `carkey`=0) - Successfully executed.
    [17:31:22] >> mysql_query( Connection handle: 1 )
    [17:31:22] CMySQLHandler::Query(UPDATE `cars` SET `ingarage`=0,`AH_Typ`=-1,`AH_X`='0.000000',`AH_Y`='0.000000',`AH_Z`='0.000000',`AH_Rot`='0.000000',`AH_Status`=0,`AH_Lock`=0,`AH_Paintjob`=-1,`AH_Farbe1`=-1,`AH_Farbe2`=-1,`AH_mod1`=-1,`AH_mod2`=-1,`AH_mod3`=-1,`AH_mod4`=-1,`AH_mod5`=0,`AH_mod6`=-1,`AH_mod7`=-1,`AH_mod8`=-1,`AH_mod9`=-1,`AH_mod10`=-1,`AH_mod11`=-1,`AH_mod12`=-1,`AH_mod13`=-1,`AH_mod14`=-1,`AH_mod15`=-1,`AH_mod16`=-1,`AH_mod17`=-1,`AH_SpawnSaveX`=0.000000,`AH_SpawnSaveY`='0.000000',`AH_SpawnSaveZ`='0.000000',`AH_SpawnSaveRot`='0.000000',`AH_TankVolumen`=0,`AH_Mats`=0,`AH_Neon`=0,`AH_NeonType`=0,`AH_Drugs`=0,`AH_StandTime`=0,`AH_Meter`=0 WHERE `sqlid`=1 AND `carkey`=1) - Successfully executed.
    [17:31:22] >> mysql_query( Connection handle: 1 )
    [17:31:22] CMySQLHandler::Query(UPDATE `cars` SET `ingarage`=0,`AH_Typ`=-1,`AH_X`='0.000000',`AH_Y`='0.000000',`AH_Z`='0.000000',`AH_Rot`='0.000000',`AH_Status`=0,`AH_Lock`=0,`AH_Paintjob`=-1,`AH_Farbe1`=-1,`AH_Farbe2`=-1,`AH_mod1`=-1,`AH_mod2`=-1,`AH_mod3`=-1,`AH_mod4`=-1,`AH_mod5`=0,`AH_mod6`=-1,`AH_mod7`=-1,`AH_mod8`=-1,`AH_mod9`=-1,`AH_mod10`=-1,`AH_mod11`=-1,`AH_mod12`=-1,`AH_mod13`=-1,`AH_mod14`=-1,`AH_mod15`=-1,`AH_mod16`=-1,`AH_mod17`=-1,`AH_SpawnSaveX`=0.000000,`AH_SpawnSaveY`='0.000000',`AH_SpawnSaveZ`='0.000000',`AH_SpawnSaveRot`='0.000000',`AH_TankVolumen`=0,`AH_Mats`=0,`AH_Neon`=0,`AH_NeonType`=0,`AH_Drugs`=0,`AH_StandTime`=0,`AH_Meter`=0 WHERE `sqlid`=1 AND `carkey`=2) - Successfully executed.

  • Ja, das ist ja auch gut so, das haben wir ja oben behoben.



    Der Log den du gepostet hast ist der Log vom speichern. Wenn das Fahrzeug nicht lädt, dann musst du den Log vom Laden der Fahrzeuge posten. ;)
    Mit dem Log den du gepostet hast fange ich nichts an.


    Und wenn du schon dabei bist, poste zum Log vom laden auch gleich den Code vom laden dazu, dann habe ich das auch gleich.

  • Dort werden Cars geladen:
    public PlayerCarConnect(playerid)
    {
    if(IsPlayerNPC(playerid))
    {
    return 1;
    }
    new playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername, sizeof(playername));
    for(new h = 0; h < MaxVeh[playerid]; h++)
    {
    new data[100],TextString[50];
    format(TextString, sizeof(TextString), "SELECT * FROM `cars` WHERE `sqlid`=%i", PlayerInfo[playerid][pSQLID]);
    self_mysql_query(TextString);
    mysql_store_result(MySQLConnection);
    if(mysql_num_rows(MySQLConnection) != 0)
    {
    mysql_fetch_row_format(TextString);
    self_mysql_get_field("id", data); Carlist[playerid][h][cid] = strval( data );
    self_mysql_get_field("sqlid", data); Carlist[playerid][h][sqlid] = strval( data );
    self_mysql_get_field("ingarage", data); Carlist[playerid][h][ingarage] = strval( data );
    self_mysql_get_field("AH_Typ", data); Carlist[playerid][h][Typ] = strval( data );
    self_mysql_get_field("AH_X", data); Carlist[playerid][h][pos_x] = floatstr( data );
    self_mysql_get_field("AH_Y", data); Carlist[playerid][h][pos_y] = floatstr( data );
    self_mysql_get_field("AH_Z", data); Carlist[playerid][h][pos_z] = floatstr( data );
    self_mysql_get_field("AH_Rot", data); Carlist[playerid][h][z_angle] = floatstr( data );
    self_mysql_get_field("AH_Status", data); Carlist[playerid][h][Status] = strval( data );
    self_mysql_get_field("AH_Lock", data); Carlist[playerid][h][Lock] = strval( data );
    self_mysql_get_field("AH_Paintjob", data); Carlist[playerid][h][Paintjob] = strval( data );
    self_mysql_get_field("AH_Farbe1", data); Carlist[playerid][h][Farbe1] = strval( data );
    self_mysql_get_field("AH_Farbe2", data); Carlist[playerid][h][Farbe2] = strval( data );
    self_mysql_get_field("AH_mod1", data); Carlist[playerid][h][mod1] = strval( data );
    self_mysql_get_field("AH_mod2", data); Carlist[playerid][h][mod2] = strval( data );
    self_mysql_get_field("AH_mod3", data); Carlist[playerid][h][mod3] = strval( data );
    self_mysql_get_field("AH_mod4", data); Carlist[playerid][h][mod4] = strval( data );
    self_mysql_get_field("AH_mod5", data); Carlist[playerid][h][mod5] = strval( data );
    self_mysql_get_field("AH_mod6", data); Carlist[playerid][h][mod6] = strval( data );
    self_mysql_get_field("AH_mod7", data); Carlist[playerid][h][mod7] = strval( data );
    self_mysql_get_field("AH_mod8", data); Carlist[playerid][h][mod8] = strval( data );
    self_mysql_get_field("AH_mod9", data); Carlist[playerid][h][mod9] = strval( data );
    self_mysql_get_field("AH_mod10", data); Carlist[playerid][h][mod10] = strval( data );
    self_mysql_get_field("AH_mod11", data); Carlist[playerid][h][mod11] = strval( data );
    self_mysql_get_field("AH_mod12", data); Carlist[playerid][h][mod12] = strval( data );
    self_mysql_get_field("AH_mod13", data); Carlist[playerid][h][mod13] = strval( data );
    self_mysql_get_field("AH_mod14", data); Carlist[playerid][h][mod14] = strval( data );
    self_mysql_get_field("AH_mod15", data); Carlist[playerid][h][mod15] = strval( data );
    self_mysql_get_field("AH_mod16", data); Carlist[playerid][h][mod16] = strval( data );
    self_mysql_get_field("AH_mod17", data); Carlist[playerid][h][mod17] = strval( data );
    self_mysql_get_field("AH_SpawnSaveX", data); Carlist[playerid][h][SpawnSaveX] = floatstr( data );
    self_mysql_get_field("AH_SpawnSaveY", data); Carlist[playerid][h][SpawnSaveY] = floatstr( data );
    self_mysql_get_field("AH_SpawnSaveZ", data); Carlist[playerid][h][SpawnSaveZ] = floatstr( data );
    self_mysql_get_field("AH_SpawnSaveRot", data); Carlist[playerid][h][SpawnSaveRot] = floatstr( data );
    self_mysql_get_field("AH_TankVolumen", data); Carlist[playerid][h][TankVolumen] = strval( data );
    self_mysql_get_field("AH_Mats", data); Carlist[playerid][h][cMats] = strval(data);
    self_mysql_get_field("AH_Neon", data); Carlist[playerid][h][Neon] = strval(data);
    self_mysql_get_field("AH_NeonType", data); Carlist[playerid][h][NeonType] = strval(data);
    self_mysql_get_field("AH_Drugs", data); Carlist[playerid][h][cDrugs] = strval(data);
    self_mysql_get_field("AH_StandTime", data); Carlist[playerid][h][StandTime] = strval(data);
    self_mysql_get_field("AH_Meter", data); Kilometer[Carlist[playerid][h][h]] = strval(data);
    Carlist[playerid][h][Carid] = CreateTunedCar(playerid, h);
    if(Carlist[playerid][h][Typ] != -1 && Carlist[playerid][h][Status] == 0){
    printf("Fahrzeugspeicherung: Beginning Spawn.");
    printf("Fahrzeugspeicherung: End Spawn.");}
    printf("(%d,%d,%i,%i,%f,%f,%f,%f,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%f,%f,%f,%f,%i,%i,%i,%i,%i,%i,%f)",
    PlayerInfo[playerid][pSQLID],h,Carlist[playerid][h][ingarage],Carlist[playerid][h][Typ],Carlist[playerid][h][pos_x],Carlist[playerid][h][pos_y],Carlist[playerid][h][pos_z],
    Carlist[playerid][h][z_angle],Carlist[playerid][h][Status],Carlist[playerid][h][Lock],Carlist[playerid][h][Paintjob],
    Carlist[playerid][h][Farbe1],Carlist[playerid][h][Farbe2],Carlist[playerid][h][mod1],Carlist[playerid][h][mod2],
    Carlist[playerid][h][mod3],Carlist[playerid][h][mod4],Carlist[playerid][h][mod5],Carlist[playerid][h][mod6],
    Carlist[playerid][h][mod7],Carlist[playerid][h][mod8],Carlist[playerid][h][mod9],Carlist[playerid][h][mod10],
    Carlist[playerid][h][mod11],Carlist[playerid][h][mod12],Carlist[playerid][h][mod13],Carlist[playerid][h][mod14],
    Carlist[playerid][h][mod15],Carlist[playerid][h][mod16],Carlist[playerid][h][mod17],
    Carlist[playerid][h][SpawnSaveX],Carlist[playerid][h][SpawnSaveY],Carlist[playerid][h][SpawnSaveZ],
    Carlist[playerid][h][SpawnSaveRot],Carlist[playerid][h][TankVolumen],Carlist[playerid][h][cMats],
    Carlist[playerid][h][Neon],Carlist[playerid][h][NeonType],Carlist[playerid][h][cDrugs],Carlist[playerid][h][StandTime],
    Kilometer[Carlist[playerid][h][CarID]]);
    }
    }
    return 1;
    }Log:


    [17:48:54] CMySQLHandler::FetchField("AH_mod1") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod2") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod3") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod4") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod5") -
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod6") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod7") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod8") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod9") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod10") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod11") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod12") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod13") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod14") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod15") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod16") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod17") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_SpawnSaveX") - 92.7064
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_SpawnSaveY") - -300.2
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_SpawnSaveZ") - 1.746
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_SpawnSaveRot") - 359.82
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_TankVolumen") - 100
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_Mats") - 0
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_Neon") - 0
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_NeonType") - 0
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_Drugs") - 0
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_StandTime") - 0
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_Meter") - 0
    [17:48:54] >> mysql_query( Connection handle: 1 )
    [17:48:54] CMySQLHandler::Query(SELECT * FROM `cars` WHERE `sqlid`=1) - Successfully executed.
    [17:48:54] >> mysql_store_result( Connection handle: 1 )
    [17:48:54] CMySQLHandler::StoreResult() - Result was stored.
    [17:48:54] >> mysql_num_rows( Connection handle: 1 )
    [17:48:54] CMySQLHandler::NumRows() - Returned 6 row(s)
    [17:48:54] >> mysql_fetch_row_format( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchRow() - Return: 11|1|0|1|516|748.975|-1345.82|13.5155|270|0|0|-1|-1|-1|-1|-1|-1|-1|-1|-1|-1|-1|-1|-1|-1|-1|-1|-1|-1|-1|92.7064|-300.2|1.746|359.82|100|0|0|0|0|0|0|0|0
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("id") - 11
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("sqlid") - 1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("ingarage") - 1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_Typ") - 516
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_X") - 748.975
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_Y") - -1345.82
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_Z") - 13.5155
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_Rot") - 270
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_Status") - 0
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_Lock") - 0
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_Paintjob") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_Farbe1") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_Farbe2") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod1") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod2") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod3") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod4") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod5") -
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod6") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod7") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod8") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod9") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod10") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod11") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod12") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod13") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod14") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod15") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod16") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod17") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_SpawnSaveX") - 92.7064
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_SpawnSaveY") - -300.2
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_SpawnSaveZ") - 1.746
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_SpawnSaveRot") - 359.82
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_TankVolumen") - 100
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_Mats") - 0
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_Neon") - 0
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_NeonType") - 0
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_Drugs") - 0
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_StandTime") - 0
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_Meter") - 0
    [17:48:54] >> mysql_query( Connection handle: 1 )
    [17:48:54] CMySQLHandler::Query(SELECT * FROM `cars` WHERE `sqlid`=1) - Successfully executed.
    [17:48:54] >> mysql_store_result( Connection handle: 1 )
    [17:48:54] CMySQLHandler::StoreResult() - Result was stored.
    [17:48:54] >> mysql_num_rows( Connection handle: 1 )
    [17:48:54] CMySQLHandler::NumRows() - Returned 6 row(s)
    [17:48:54] >> mysql_fetch_row_format( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchRow() - Return: 11|1|0|1|516|748.975|-1345.82|13.5155|270|0|0|-1|-1|-1|-1|-1|-1|-1|-1|-1|-1|-1|-1|-1|-1|-1|-1|-1|-1|-1|92.7064|-300.2|1.746|359.82|100|0|0|0|0|0|0|0|0
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("id") - 11
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("sqlid") - 1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("ingarage") - 1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_Typ") - 516
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_X") - 748.975
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_Y") - -1345.82
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_Z") - 13.5155
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_Rot") - 270
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_Status") - 0
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_Lock") - 0
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_Paintjob") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_Farbe1") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_Farbe2") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod1") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod2") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod3") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod4") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod5") -
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod6") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod7") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod8") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod9") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod10") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod11") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod12") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod13") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod14") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod15") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod16") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_mod17") - -1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_SpawnSaveX") - 92.7064
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_SpawnSaveY") - -300.2
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_SpawnSaveZ") - 1.746
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_SpawnSaveRot") - 359.82
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_TankVolumen") - 100
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_Mats") - 0
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_Neon") - 0
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_NeonType") - 0
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_Drugs") - 0
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_StandTime") - 0
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_Meter") - 0
    [17:48:54] >> mysql_query( Connection handle: 1 )
    [17:48:54] CMySQLHandler::Query(SELECT * FROM `cars` WHERE `sqlid`=1) - Successfully executed.
    [17:48:54] >> mysql_store_result( Connection handle: 1 )
    [17:48:54] CMySQLHandler::StoreResult() - Result was stored.
    [17:48:54] >> mysql_num_rows( Connection handle: 1 )
    [17:48:54] CMySQLHandler::NumRows() - Returned 6 row(s)
    [17:48:54] >> mysql_fetch_row_format( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchRow() - Return: 11|1|0|1|516|748.975|-1345.82|13.5155|270|0|0|-1|-1|-1|-1|-1|-1|-1|-1|-1|-1|-1|-1|-1|-1|-1|-1|-1|-1|-1|92.7064|-300.2|1.746|359.82|100|0|0|0|0|0|0|0|0
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("id") - 11
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("sqlid") - 1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("ingarage") - 1
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_Typ") - 516
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_X") - 748.975
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_Y") - -1345.82
    [17:48:54] >> mysql_fetch_field_row( Connection handle: 1 )
    [17:48:54] CMySQLHandler::FetchField("AH_Z") - 13.5155
    So geht es immer weiter er lädt jetzt auch nichtmehr den Account richtig.

  • Ändere das query mal von:
    format(TextString, sizeof(TextString), "SELECT * FROM `cars` WHERE `sqlid`=%i", PlayerInfo[playerid][pSQLID]);
    zu:
    format(TextString, sizeof(TextString), "SELECT * FROM `cars` WHERE `sqlid`=%i AND `carkey`=%d", PlayerInfo[playerid][pSQLID], h);



    Was steht dann im Log?

  • Das Auto ist unter /carkey wd nicht sichtbar neu gekauftes Car spawned nicht im log folgendes:
    [21:19:39] CMySQLHandler::Query(INSERT INTO `cars` (`sqlid`,`carkey`,`ingarage`,`AH_Typ`,`AH_X`,`AH_Y`,`AH_Z`,`AH_Rot`,`AH_Status`,`AH_Lock`,`AH_Paintjob`,`AH_Farbe1`,`AH_Farbe2`,`AH_Mod1`,`AH_Mod2`,`AH_Mod3`,`AH_Mod4`,`AH_Mod5`,`AH_Mod6`,`AH_Mod7`,`AH_Mod8`,`AH_Mod9`,`AH_Mod10`,`AH_Mod11`,`AH_Mod12`,`AH_Mod13`,`AH_Mod14`,`AH_Mod15`,`AH_Mod16`,`AH_Mod17`,`AH_SpawnSaveX`,`AH_SpawnSaveY`,`AH_SpawnSaveZ`,`AH_SpawnSaveRot`,`AH_TankVolumen`,`AH_Mats`,`AH_Neon`,`AH_NeonType`,`AH_Drugs`,`AH_StandTime`,`AH_Meter`) VALUES (1,0,1,412,748.975219,-1345.818237,13.515500,270.000000,0,0,-1,-1,-1,-1,-1,-1,-1,0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,748.975219,-1345.818237,13.515500,270.000000,134,0,0,0,0,0,0)) - Successfully executed.
    [21:19:52] >> mysql_query( Connection handle: 1 )
    [21:19:52] CMySQLHandler::Query(UPDATE `users` SET `Online` = '0' WHERE Name = 'Heaven') - Successfully executed.
    [21:19:52] >> mysql_query( Connection handle: 1 )
    [21:19:52] CMySQLHandler::Query(UPDATE `cars` SET `ingarage`=1,`AH_Typ`=412,`AH_X`='748.975219',`AH_Y`='-1345.818237',`AH_Z`='13.515500',`AH_Rot`='270.000000',`AH_Status`=0,`AH_Lock`=0,`AH_Paintjob`=-1,`AH_Farbe1`=-1,`AH_Farbe2`=-1,`AH_mod1`=-1,`AH_mod2`=-1,`AH_mod3`=-1,`AH_mod4`=-1,`AH_mod5`=0,`AH_mod6`=-1,`AH_mod7`=-1,`AH_mod8`=-1,`AH_mod9`=-1,`AH_mod10`=-1,`AH_mod11`=-1,`AH_mod12`=-1,`AH_mod13`=-1,`AH_mod14`=-1,`AH_mod15`=-1,`AH_mod16`=-1,`AH_mod17`=-1,`AH_SpawnSaveX`=92.706398,`AH_SpawnSaveY`='-300.199584',`AH_SpawnSaveZ`='1.746000',`AH_SpawnSaveRot`='359.820190',`AH_TankVolumen`=134,`AH_Mats`=0,`AH_Neon`=0,`AH_NeonType`=0,`AH_Drugs`=0,`AH_StandTime`=0,`AH_Meter`=0 WHERE `sqlid`=1 AND `carkey`=0) - Successfully executed.
    [21:19:52] >> mysql_query( Connection handle: 1 )
    [21:19:52] CMySQLHandler::Query(UPDATE `cars` SET `ingarage`=0,`AH_Typ`=-1,`AH_X`='0.000000',`AH_Y`='0.000000',`AH_Z`='0.000000',`AH_Rot`='0.000000',`AH_Status`=0,`AH_Lock`=0,`AH_Paintjob`=-1,`AH_Farbe1`=-1,`AH_Farbe2`=-1,`AH_mod1`=-1,`AH_mod2`=-1,`AH_mod3`=-1,`AH_mod4`=-1,`AH_mod5`=0,`AH_mod6`=-1,`AH_mod7`=-1,`AH_mod8`=-1,`AH_mod9`=-1,`AH_mod10`=-1,`AH_mod11`=-1,`AH_mod12`=-1,`AH_mod13`=-1,`AH_mod14`=-1,`AH_mod15`=-1,`AH_mod16`=-1,`AH_mod17`=-1,`AH_SpawnSaveX`=0.000000,`AH_SpawnSaveY`='0.000000',`AH_SpawnSaveZ`='0.000000',`AH_SpawnSaveRot`='0.000000',`AH_TankVolumen`=0,`AH_Mats`=0,`AH_Neon`=0,`AH_NeonType`=0,`AH_Drugs`=0,`AH_StandTime`=0,`AH_Meter`=0 WHERE `sqlid`=1 AND `carkey`=1) - Successfully executed.
    [21:19:52] >> mysql_query( Connection handle: 1 )
    [21:19:52] CMySQLHandler::Query(UPDATE `cars` SET `ingarage`=0,`AH_Typ`=-1,`AH_X`='0.000000',`AH_Y`='0.000000',`AH_Z`='0.000000',`AH_Rot`='0.000000',`AH_Status`=0,`AH_Lock`=0,`AH_Paintjob`=-1,`AH_Farbe1`=-1,`AH_Farbe2`=-1,`AH_mod1`=-1,`AH_mod2`=-1,`AH_mod3`=-1,`AH_mod4`=-1,`AH_mod5`=0,`AH_mod6`=-1,`AH_mod7`=-1,`AH_mod8`=-1,`AH_mod9`=-1,`AH_mod10`=-1,`AH_mod11`=-1,`AH_mod12`=-1,`AH_mod13`=-1,`AH_mod14`=-1,`AH_mod15`=-1,`AH_mod16`=-1,`AH_mod17`=-1,`AH_SpawnSaveX`=0.000000,`AH_SpawnSaveY`='0.000000',`AH_SpawnSaveZ`='0.000000',`AH_SpawnSaveRot`='0.000000',`AH_TankVolumen`=0,`AH_Mats`=0,`AH_Neon`=0,`AH_NeonType`=0,`AH_Drugs`=0,`AH_StandTime`=0,`AH_Meter`=0 WHERE `sqlid`=1 AND `carkey`=2) - Successfully executed.

  • Das kann aber nicht durch diese eine Änderung passieren, daß PlayerCarConnect hat ja gar nichts mit dem kaufen des Fahrzeugs zu tun.


    Oder hast du es noch woanders geändert?
    An dem was zuvor getan hat darf sich eigentlich nichts ändern durch diese eine Änderung.


    Der Log den du gepostet hast ist ok, daran ist nichts falsch. Das Fahrzeug sollte korrekt in der Datenbank stehen.

  • Versuchs mal so, bin mir aber unsicher.

    Spoiler anzeigen
    if(strcmp("/carkey", cmd, true) == 0)
    {
    if(MaxVeh[playerid] >= 1)
    {
    CarKey[playerid] += 1;
    if(CarKey[playerid] == MaxVeh[playerid])
    {
    CarKey[playerid] = 0;
    }
    if(Carlist[playerid][CarKey[playerid]][Typ] != -1)
    {
    format(string, sizeof(string), "Du nimmst deinen %dten Auto-Schlüssel, für deinen %s !", CarKey[playerid]+1, Kaufliste[Carlist[playerid][CarKey[playerid]][Typ]][Name]);
    }
    else
    {
    format(string, sizeof(string), "Du nimmst deinen %dten Auto-Schlüssel !",CarKey[playerid]+1);
    }
    SendClientMessage(playerid,COLOR_YELLOW,string);
    }
    return 1;
    }

    Edit:
    Achso, das Fahrzeug spawnt garnicht. Hatte es falsch verstanden.

  • Also, jetzt fangen wir nochmal von vorne an.


    Du kaufst das Fahrzeug und gibst dann /carkey ein? Und dann ist es dort nicht?
    Ist das so korrekt?
    Wenn ja, dann poste bitte die aktuelle Version des /buycar und des /carkey Befehls.
    Falls da Logs dabei sind, poste diese auch gleich.


    Und bitte nur erst mal das, die anderen Probleme beheben wir danach, sofern sie noch bestehen.

  • Ich kauf nun das Car es wird gespawned und nach relogg war es wd weg:
    MySQL Log:
    [19:21:08] >> mysql_store_result( Connection handle: 1 )
    [19:21:08] CMySQLHandler::StoreResult() - No data to store.
    [19:21:08] >> mysql_num_rows( Connection handle: 1 )
    [19:21:08] CMySQLHandler::NumRows() - You cannot call this function now. (Reason: Dead Connection)
    [19:21:14] >> mysql_ping( Connection handle: 1 )
    [19:21:14] CMySQLHandler::Ping() - Connection is still alive.
    [19:21:16] >> mysql_query( Connection handle: 1 )
    [19:21:16] CMySQLHandler::Query(UPDATE `users` SET `Online` = '0' WHERE Name = 'Heaven') - Successfully executed.
    [19:21:16] >> mysql_query( Connection handle: 1 )
    [19:21:16] CMySQLHandler::Query(UPDATE `cars` SET `ingarage`=0,`AH_Typ`=-1,`AH_X`='0.000000',`AH_Y`='0.000000',`AH_Z`='0.000000',`AH_Rot`='0.000000',`AH_Status`=0,`AH_Lock`=0,`AH_Paintjob`=-1,`AH_Farbe1`=-1,`AH_Farbe2`=-1,`AH_mod1`=-1,`AH_mod2`=-1,`AH_mod3`=-1,`AH_mod4`=-1,`AH_mod5`=-1,`AH_mod6`=-1,`AH_mod7`=-1,`AH_mod8`=-1,`AH_mod9`=-1,`AH_mod10`=-1,`AH_mod11`=-1,`AH_mod12`=-1,`AH_mod13`=-1,`AH_mod14`=-1,`AH_mod15`=-1,`AH_mod16`=-1,`AH_mod17`=-1,`AH_SpawnSaveX`=0.000000,`AH_SpawnSaveY`='0.000000',`AH_SpawnSaveZ`='0.000000',`AH_SpawnSaveRot`='0.000000',`AH_TankVolumen`=0,`AH_Mats`=0,`AH_Neon`=0,`AH_NeonType`=0,`AH_Drugs`=0,`AH_StandTime`=0,`AH_Meter`=0 WHERE `sqlid`=1 AND `carkey`=0) - Successfully executed.
    [19:21:16] >> mysql_query( Connection handle: 1 )
    [19:21:16] CMySQLHandler::Query(UPDATE `cars` SET `ingarage`=0,`AH_Typ`=-1,`AH_X`='0.000000',`AH_Y`='0.000000',`AH_Z`='0.000000',`AH_Rot`='0.000000',`AH_Status`=0,`AH_Lock`=0,`AH_Paintjob`=-1,`AH_Farbe1`=-1,`AH_Farbe2`=-1,`AH_mod1`=-1,`AH_mod2`=-1,`AH_mod3`=-1,`AH_mod4`=-1,`AH_mod5`=-1,`AH_mod6`=-1,`AH_mod7`=-1,`AH_mod8`=-1,`AH_mod9`=-1,`AH_mod10`=-1,`AH_mod11`=-1,`AH_mod12`=-1,`AH_mod13`=-1,`AH_mod14`=-1,`AH_mod15`=-1,`AH_mod16`=-1,`AH_mod17`=-1,`AH_SpawnSaveX`=0.000000,`AH_SpawnSaveY`='0.000000',`AH_SpawnSaveZ`='0.000000',`AH_SpawnSaveRot`='0.000000',`AH_TankVolumen`=0,`AH_Mats`=0,`AH_Neon`=0,`AH_NeonType`=0,`AH_Drugs`=0,`AH_StandTime`=0,`AH_Meter`=0 WHERE `sqlid`=1 AND `carkey`=1) - Successfully executed.
    [19:21:16] >> mysql_query( Connection handle: 1 )
    [19:21:16] CMySQLHandler::Query(UPDATE `cars` SET `ingarage`=0,`AH_Typ`=-1,`AH_X`='0.000000',`AH_Y`='0.000000',`AH_Z`='0.000000',`AH_Rot`='0.000000',`AH_Status`=0,`AH_Lock`=0,`AH_Paintjob`=-1,`AH_Farbe1`=-1,`AH_Farbe2`=-1,`AH_mod1`=-1,`AH_mod2`=-1,`AH_mod3`=-1,`AH_mod4`=-1,`AH_mod5`=-1,`AH_mod6`=-1,`AH_mod7`=-1,`AH_mod8`=-1,`AH_mod9`=-1,`AH_mod10`=-1,`AH_mod11`=-1,`AH_mod12`=-1,`AH_mod13`=-1,`AH_mod14`=-1,`AH_mod15`=-1,`AH_mod16`=-1,`AH_mod17`=-1,`AH_SpawnSaveX`=0.000000,`AH_SpawnSaveY`='0.000000',`AH_SpawnSaveZ`='0.000000',`AH_SpawnSaveRot`='0.000000',`AH_TankVolumen`=0,`AH_Mats`=0,`AH_Neon`=0,`AH_NeonType`=0,`AH_Drugs`=0,`AH_StandTime`=0,`AH_Meter`=0 WHERE `sqlid`=1 AND `carkey`=2) - Successfully executed.