Beiträge von Corvus

    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.

    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.

    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.

    Hey
    Das Car wird erstellt aber nicht gespeichert.
    if(strcmp("/buygangcar", cmd, true) == 0)
    {
    if(PlayerInfo[playerid][pLeader] != -1 || PlayerInfo[playerid][pRank] == 12)
    {
    new Farbe,
    GangCars = 0;
    if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pMember] == 16)
    {
    SendClientMessage(playerid, COLOR_ERRORTEXT, " Deine Fraktion ist nicht Berechtigt Gangautos zu Kaufen.");
    return 1;
    }
    if(IsPlayerInAnyVehicle(playerid) && GangAutoSpectating[playerid] != -1)
    {
    new GangAutoPreis = GangAutoKaufliste[GangAutoSpectating[playerid]][GAPreis];
    if(GangAutoPreis >= KassenInfo[PlayerInfo[playerid][pMember]][tKasse])
    {
    SendClientMessage(playerid, COLOR_ERRORTEXT, " Es ist nicht mehr genug Geld in der Teamkasse !");
    return 1;
    }
    else
    {
    if(PlayerInfo[playerid][pMember] == 1)
    {
    Farbe = 0;
    }
    if(PlayerInfo[playerid][pMember] == 2)
    {
    Farbe = 154;
    }
    if(PlayerInfo[playerid][pMember] == 3)
    {
    Farbe = 120;
    }
    if(PlayerInfo[playerid][pMember] == 4)
    {
    Farbe = 3;
    }
    if(PlayerInfo[playerid][pMember] == 5)
    {
    Farbe = 0;
    }
    if(PlayerInfo[playerid][pMember] == 6)
    {
    Farbe = 8;
    }
    if(PlayerInfo[playerid][pMember] == 7)
    {
    Farbe = -1;
    }
    if(PlayerInfo[playerid][pMember] == 8)
    {
    Farbe = -1;
    }
    if(PlayerInfo[playerid][pMember] == 9)
    {
    Farbe = 61;
    }
    if(PlayerInfo[playerid][pMember] == 10)
    {
    Farbe = -1;
    }
    if(PlayerInfo[playerid][pMember] == 11)
    {
    Farbe = 1;
    }
    if(PlayerInfo[playerid][pMember] == 12)
    {
    Farbe = 0;
    }
    if(PlayerInfo[playerid][pMember] == 13)
    {
    Farbe = 1;
    }
    if(PlayerInfo[playerid][pMember] == 14)
    {
    Farbe = -1;
    }
    if(PlayerInfo[playerid][pMember] == 15)
    {
    Farbe = 0;
    }
    if(PlayerInfo[playerid][pMember] == 16)
    {
    Farbe = -1;
    }
    if(PlayerInfo[playerid][pMember] == 17)
    {
    Farbe = 152;
    }
    if(PlayerInfo[playerid][pMember] == 18)
    {
    Farbe = 93;
    }
    if(PlayerInfo[playerid][pMember] == 19)
    {
    Farbe = 86;
    }
    if(PlayerInfo[playerid][pMember] == 20)
    {
    Farbe = 85;
    }
    if(PlayerInfo[playerid][pMember] == 21)
    {
    Farbe = 66;
    }
    if(PlayerInfo[playerid][pMember] == 22)
    {
    Farbe = 79;
    }
    if(PlayerInfo[playerid][pMember] == 23)
    {
    Farbe = 3;
    }
    if(PlayerInfo[playerid][pMember] == 24)
    {
    Farbe = 6;
    }
    if(PlayerInfo[playerid][pMember] == 25)
    {
    Farbe = 104;
    }
    if(PlayerInfo[playerid][pMember] == 26)
    {
    Farbe = 123;
    }
    for(new h = 0; h < sizeof(GangAutoInfo); h++){
    if(GangAutoInfo[h][cOwner] == PlayerInfo[playerid][pMember])
    {
    GangCars += 1;
    }
    if(GangCars >= 25)
    {
    SendClientMessage(playerid, COLOR_ERRORTEXT, " Deine Gang hat schon 25 Gangautos!");
    return 1;
    }
    }
    for(new h = 0; h < sizeof(GangAutoInfo); h++){
    if(GangAutoInfo[h][cOwner] == -1 && GangAutoInfo[h][cTyp] == -1 && GangAutoInfo[h][cColor1] == -1 && GangAutoInfo[h][cColor2] == -1){
    GangAutoInfo[h][cOwner] = PlayerInfo[playerid][pMember];
    GangAutoInfo[h][cID] = -1;
    GangAutoInfo[h][cTyp] = GangAutoKaufliste[GangAutoSpectating[playerid]][GAModelid];
    new Zufall = random(3);
    if(Zufall == 0)
    {
    GangAutoInfo[h][cPosX] = 1981.9377;
    GangAutoInfo[h][cPosY] = 1981.9377;
    GangAutoInfo[h][cPosZ] = 10.8203;
    }
    else if(Zufall == 1)
    {
    GangAutoInfo[h][cPosX] = 1981.2240;
    GangAutoInfo[h][cPosY] = 2051.2224;
    GangAutoInfo[h][cPosZ] = 10.8203;
    }
    else if(Zufall == 2)
    {
    GangAutoInfo[h][cPosX] = 1980.0446;
    GangAutoInfo[h][cPosY] = 2044.4808;
    GangAutoInfo[h][cPosZ] = 10.8203;
    }
    GangAutoInfo[h][cRot] = 90;
    GangAutoInfo[h][cColor1] = Farbe;
    GangAutoInfo[h][cColor2] = Farbe;
    GangAutoInfo[h][cStatus] = 0;
    GangAutoInfo[h][cTank] = 100;
    GangAutoInfo[h][cMeter] = 0;
    CreateNewlyGangAutos(h);
    KassenInfo[PlayerInfo[playerid][pMember]][tKasse] -= GangAutoPreis;
    format(string, sizeof(string), "Gang Car erfolgreich gekauft für %s$, das Geld wurde von der Teamkasse abgezogen.", GetPoint(GangAutoPreis));
    SendClientMessage(playerid, COLOR_YELLOW, string);
    SetPlayerCheckpoint(playerid,2229.0725,1811.6196,10.4595,5.0);
    SendClientMessage(playerid, COLOR_GRAD2,"Du Kannst dir das Fahrzeug am roten Checkpoint abholen.");
    TogglePlayerControllable(playerid,1);
    ForAllPlayers(i){
    if(IsPlayerConnected(i)){
    SetVehicleParamsForPlayer(GangAutoKaufliste[GangAutoSpectating[playerid]][GACarid],i,0,0);
    }}
    GangAutoSpectating[playerid] = -1;
    RemovePlayerFromVehicle(playerid);
    break;
    }
    }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_ERRORTEXT, " Du besichtigst kein Gang Auto !");
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_ERRORTEXT, " Du bist kein Leader !");
    return 1;
    }
    return 1;
    }


    LoadGangautos:
    else
    {
    new string[128];
    for(new i = 0; i < sizeof(GangAutoInfo); i++)
    {
    format(string, sizeof(string),"SELECT * FROM `gangautos` WHERE `SlotID` = '%d'", i);
    self_mysql_query(string);
    mysql_store_result(MySQLConnection);
    if(mysql_num_rows(MySQLConnection) != 0)
    {
    mysql_fetch_row_format(string);
    new val[ 256 ];
    self_mysql_get_field("CarID", val); GangAutoInfo[i][cID] = strval( val );
    self_mysql_get_field("OwnerID", val); GangAutoInfo[i][cOwner] = strval( val );
    self_mysql_get_field("TypID", val); GangAutoInfo[i][cTyp] = strval( val );
    self_mysql_get_field("PosX", val); GangAutoInfo[i][cPosX] = floatstr( val );
    self_mysql_get_field("PosY", val); GangAutoInfo[i][cPosY] = floatstr( val );
    self_mysql_get_field("PosZ", val); GangAutoInfo[i][cPosZ] = floatstr( val );
    self_mysql_get_field("Rotation", val); GangAutoInfo[i][cRot] = floatstr( val );
    self_mysql_get_field("Farbe1", val); GangAutoInfo[i][cColor1] = strval( val );
    self_mysql_get_field("Farbe2", val); GangAutoInfo[i][cColor2] = strval( val );
    self_mysql_get_field("Status", val); GangAutoInfo[i][cStatus] = strval( val );
    self_mysql_get_field("Tank", val); GangAutoInfo[i][cTank] = strval( val );
    self_mysql_get_field("ReSpawnTime", val); GangAutoInfo[i][cReSpawnTime] = strval( val );
    //self_mysql_get_field("StandTime", val); GangAutoInfo[i][cStandTime] = strval( val );
    }
    else
    {
    GangAutoInfo[i][cID] = -1;
    GangAutoInfo[i][cOwner] = -1;
    GangAutoInfo[i][cTyp] = -1;
    GangAutoInfo[i][cPosX] = 0;
    GangAutoInfo[i][cPosY] = 0;
    GangAutoInfo[i][cPosZ] = 0;
    GangAutoInfo[i][cRot] = 0;
    GangAutoInfo[i][cColor1] = -1;
    GangAutoInfo[i][cColor2] = -1;
    GangAutoInfo[i][cStatus] = -1;
    GangAutoInfo[i][cTank] = 50;
    GangAutoInfo[i][cReSpawnTime] = 1800;
    GangAutoInfo[i][cStandTime] = 0;
    }
    mysql_free_result(MySQLConnection);
    if(GangAutoInfo[i][cID] == 65535)
    {
    GangAutoInfo[i][cID] = -1;
    }
    }
    }
    return 1;
    }


    Save Gangcar:
    else
    {
    new string[128];
    for(new i = 0; i < sizeof(GangAutoInfo); i++)
    {
    if(TankSave == 1)
    {
    if(GangAutoInfo[i][cID] != -1)
    {
    GangAutoInfo[i][cTank] = Gas[GangAutoInfo[i][cID]];
    }
    }
    format(string, sizeof(string), "SELECT * FROM `gangautos` WHERE `SlotID` = '%d'", i);
    self_mysql_query(string);
    mysql_store_result(MySQLConnection);
    if(mysql_num_rows(MySQLConnection) == 0)
    {
    format(string, sizeof(string), "INSERT INTO `gangautos` (`SlotID`) VALUES ('%d')", i);
    self_mysql_query(string);
    }
    mysql_free_result(MySQLConnection);
    new var[256];
    format(var, sizeof(var), "UPDATE `gangautos` SET `CarID`='%d', `OwnerID`='%d', `TypID`='%d', `PosX`='%.1f', `PosY`='%.1f', `PosZ`='%.1f', `Rotation`='%.1f', `Farbe1`='%d', `Farbe2`='%d', `Status`='%d', `Tank`='%d', `ReSpawnTime`='%d' WHERE `SlotID`='%d'",
    GangAutoInfo[i][cID],
    GangAutoInfo[i][cOwner],
    GangAutoInfo[i][cTyp],
    GangAutoInfo[i][cPosX],
    GangAutoInfo[i][cPosY],
    GangAutoInfo[i][cPosZ],
    GangAutoInfo[i][cRot],
    GangAutoInfo[i][cColor1],
    GangAutoInfo[i][cColor2],
    GangAutoInfo[i][cStatus],
    GangAutoInfo[i][cTank],
    GangAutoInfo[i][cReSpawnTime],
    //GangAutoInfo[i][cStandTime],
    i);
    self_mysql_query(var);
    }
    print("GangAutos Geladen");
    }
    return 1;
    }


    public CreateGangAutos()
    {
    for(new h = 0; h < sizeof(GangAutoInfo); h++){
    if(GangAutoInfo[h][cTyp] != -1){
    if(GangAutoInfo[h][cStatus] == 0){
    GangAutoInfo[h][cID] = CreateVehicle(GangAutoInfo[h][cTyp],GangAutoInfo[h][cPosX],GangAutoInfo[h][cPosY],GangAutoInfo[h][cPosZ],GangAutoInfo[h][cRot],GangAutoInfo[h][cColor1],GangAutoInfo[h][cColor2],GangAutoInfo[h][cReSpawnTime]);
    Gas[GangAutoInfo[h][cID]] = GangAutoInfo[h][cTank];
    new string[50];
    format(string, sizeof(string), "{FFFF00}ir-{21DD00}%d", GangAutoInfo[h][cID]);
    SetVehicleNumberPlate(GangAutoInfo[h][cID],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
    };

    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;
    }

    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

    Warum Errors:
    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)",
    C:\Users\Daniel\Desktop\irp.pwn(17172 -- 17184) : error 001: expected token: ",", but found "-identifier-"


    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,%i)",
    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]]
    C:\Users\Daniel\Desktop\irp.pwn(42879 -- 42891) : error 001: expected token: ",", but found "}"

    Komplette Code:
    for(new veh = 0; veh < MAX_VEHICLES; veh++)
    {
    Gas[veh] = vehTank[GetVehicleModel(veh)-400];
    VehicleObject[veh] = -1;
    }
    if(strcmp("/fuelcars", cmd, true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pAdmin] >= 5)
    {
    for(new veh = 0; veh < MAX_VEHICLES; veh++){
    Gas[veh] = vehTank[GetVehicleModel(veh)-400];
    }
    SendClientMessage(playerid, COLOR_ERRORTEXT, " Alle Autos wurden aufgetankt!");
    format(string,sizeof(string),"Admin %s hat alle cars gefüllt.", sendername);
    Entertolog("fuelcars",string);
    }
    else
    {
    SendClientMessage(playerid, COLOR_KEINADMIN, "Du kannst diesen Befehl nicht benutzen");
    return 1;
    }
    }
    return 1;
    }
    public Fillup(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    new VID,
    FillUp,
    string[256],
    TankKosten;
    VID = GetPlayerVehicleID(playerid);
    FillUp = vehTank[GetVehicleModel(VID)-400] - Gas[VID];
    TogglePlayerControllable(playerid, 1);
    if(Refueling[playerid] == 1){
    if(Gas[VID] < vehTank[GetVehicleModel(VID)-400]){
    for(new TB = 0; TB < sizeof(TankenBizInfo); TB++){
    if(PlayerToPoint(5, playerid, TankenBizInfo[TB][TBPosX], TankenBizInfo[TB][TBPosY], TankenBizInfo[TB][TBPosZ]) && TankenBizInfo[TB][TBProducts] > 0){
    TankKosten = FillUp * TankenBizInfo[TB][TBSpritPreis];
    if(IsACopCar(VID) || IsAOAmtCar(VID) || IsAMedicCar(VID))
    {
    Gas[VID] += FillUp;
    TankenBizInfo[TB][TBProducts] -= FillUp;
    format(string,sizeof(string),"* Du hast deinen Dienstwagen für $%d auf Kosten des Staates betankt.", TankKosten);
    SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
    TankenBizInfo[TB][TBKasse] += TankKosten;
    ExtortionTankenBiz(TB, TankKosten/100*10);
    Refueling[playerid] = 0;
    Update3DTextTanke(TB);
    }
    else
    {
    TankKosten = FillUp * TankenBizInfo[TB][TBSpritPreis];
    if(GetPlayerMoney(playerid) >= TankKosten)
    {
    Gas[VID] += FillUp;
    TankenBizInfo[TB][TBProducts] -= FillUp;
    format(string,sizeof(string),"* Du hast dein Fahrzeug für $%d betankt.", TankKosten);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    GivePlayerMoneys(playerid, -TankKosten);
    TankenBizInfo[TB][TBKasse] += TankKosten;
    ExtortionTankenBiz(TB, TankKosten/100*10);
    Refueling[playerid] = 0;
    Update3DTextTanke(TB);
    }
    else
    {
    format(string,sizeof(string),"* Du hast nicht genug Geld dabei, das Tank auffüllen kostet $%d.", TankKosten);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    }
    }
    }
    }
    forward MustCarRefuel(playerid, carid);
    public MustCarRefuel(playerid, carid)
    {
    if(GetVehicleModel(carid) == 482)
    {
    if(Gas[carid] < 100)
    {
    new string[156];
    new FillUp,
    TankKosten;
    FillUp = vehTank[GetVehicleModel(carid)-400] - Gas[carid];
    TankKosten = FillUp * 30;
    Gas[carid] += FillUp;
    format(string,sizeof(string),"* Du hast das Fahrzeug für $%d (30$ pro Liter)betankt.", TankKosten);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    GivePlayerMoneys(playerid, -TankKosten);
    return 1;
    }
    }
    return 1;
    }


    Log:[19:48:52] [debug] Run time error 4: "Array index out of bounds"
    [19:48:52] [debug] Accessing element at negative index -400
    [19:48:52] [debug] AMX backtrace:
    [19:48:52] [debug] #0 00065ccc in public OnGameModeInit () from irp.amx

    Folgende Errors:
    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][h][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;
    } undefined symbol "h"


    C:\Users\Daniel\Desktop\irp.pwn(8977) : warning 219: local variable "CarID" shadows a variable at a preceding level
    C:\Users\Daniel\Desktop\irp.pwn(17172 -- 17184) : error 001: expected token: ",", but found "-identifier-"
    C:\Users\Daniel\Desktop\irp.pwn(42874) : warning 213: tag mismatch
    C:\Users\Daniel\Desktop\irp.pwn(42879 -- 42891) : error 001: expected token: ",", but found "}"
    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);
    if(Carlist[playerid][h][Typ] != -1 && Carlist[playerid][h][Status] == 0){
    printf("Fahrzeugspeicherung: Beginning Spawn.");
    Carlist[playerid][h][Carid] = CreateTunedCar(playerid, h);
    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,%i)",
    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]]
    }
    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 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]][TankVolumen] = 100;
    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;
    }

    So erstelle ich diese:
    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);
    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;
    }

    Jaa bekomme aber trotzdem Error Codes:
    C:\Users\Daniel\Desktop\irp.pwn(4541) : error 017: undefined symbol "CarID"
    C:\Users\Daniel\Desktop\irp.pwn(17171) : error 017: undefined symbol "h"
    C:\Users\Daniel\Desktop\irp.pwn(17176 -- 17187) : error 017: undefined symbol "CarID"
    C:\Users\Daniel\Desktop\irp.pwn(42878) : warning 213: tag mismatch
    C:\Users\Daniel\Desktop\irp.pwn(42883 -- 42894) : error 017: undefined symbol "CarID"
    C:\Users\Daniel\Desktop\irp.pwn(43399 -- 43403) : error 017: undefined symbol "CarID"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


    Error 1:
    for(new h = 0; h < MaxVeh[playerid]; h++){
    Carlist[playerid][h][Typ]=-1;
    Carlist[playerid][h][pos_x]=0.0;
    Carlist[playerid][h][pos_y]=0.0;
    Carlist[playerid][h][pos_z]=0.0;
    Carlist[playerid][h][z_angle]=0.0;
    Carlist[playerid][h][Status]=0;
    Carlist[playerid][h][Lock]=0;
    Carlist[playerid][h][Carid]=-1;
    Carlist[playerid][h][Farbe1]=-1;
    Carlist[playerid][h][Farbe2]=-1;
    Carlist[playerid][h][mod1]=-1;
    Carlist[playerid][h][mod2]=-1;
    Carlist[playerid][h][mod3]=-1;
    Carlist[playerid][h][mod4]=-1;
    Carlist[playerid][h][mod5]=-1;
    Carlist[playerid][h][mod6]=-1;
    Carlist[playerid][h][mod7]=-1;
    Carlist[playerid][h][mod8]=-1;
    Carlist[playerid][h][mod9]=-1;
    Carlist[playerid][h][mod10]=-1;
    Carlist[playerid][h][mod11]=-1;
    Carlist[playerid][h][mod12]=-1;
    Carlist[playerid][h][mod13]=-1;
    Carlist[playerid][h][mod14]=-1;
    Carlist[playerid][h][mod15]=-1;
    Carlist[playerid][h][mod16]=-1;
    Carlist[playerid][h][mod17]=-1;
    Carlist[playerid][h][Paintjob]=-1;
    Carlist[playerid][h][OwnerID] = playerid;
    Carlist[playerid][h][SpawnSaveX]=0.0;
    Carlist[playerid][h][SpawnSaveY]=0.0;
    Carlist[playerid][h][SpawnSaveZ]=0.0;
    Carlist[playerid][h][SpawnSaveRot]=0.0;
    Carlist[playerid][h][TankVolumen]=0;
    Carlist[playerid][h][cMats] = 0;
    Carlist[playerid][h][cDrugs] = 0;
    Carlist[playerid][h][StandTime] = 0;
    Kilometer[Carlist[playerid][h][CarID]] = 0;
    Spectating[playerid] = -1;
    }
    Error 2 und 3:
    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 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]][TankVolumen] = 100;
    Carlist[playerid][CarKey[playerid]][Carid] = CreateTunedCar(playerid, CarKey[playerid]);
    Kilometer[Carlist[playerid][h][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]]


    Error 4 und 5:
    self_mysql_get_field("AH_Meter", data); Kilometer[Carlist[playerid][h][h]] = strval(data);
    if(Carlist[playerid][h][Typ] != -1 && Carlist[playerid][h][Status] == 0){
    printf("Fahrzeugspeicherung: Beginning Spawn.");
    Carlist[playerid][h][Carid] = CreateTunedCar(playerid, h);
    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,%i)",
    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]]

    Hier:
    Carlist[playerid][h][Kilometer] = 0;
    Carlist[playerid][h][Kilometer]);
    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)",


    self_mysql_get_field("AH_Meter", data); Carlist[playerid][h][Kilometer] = strval(data);
    public PlayerCarUpdate(playerid)
    {
    if(IsPlayerNPC(playerid)) return 1;
    new string[2048], playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername, sizeof(playername));
    for(new h = 0; h < MaxVeh[playerid]; h++)
    {
    format(string, sizeof(string), "UPDATE `cars` SET `ingarage`=%i,`AH_Typ`=%i,`AH_X`='%f',`AH_Y`='%f',`AH_Z`='%f',`AH_Rot`='%f',`AH_Status`=%i,`AH_Lock`=%i,`AH_Paintjob`=%i,`AH_Farbe1`=%i,`AH_Farbe2`=%i,`AH_mod1`=%i,`AH_mod2`=%i,`AH_mod3`=%i,`AH_mod4`=%i,`AH_mod5`=%i,`AH_mod6`=%i,`AH_mod7`=%i,`AH_mod8`=%i,`AH_mod9`=%i,`AH_mod10`=%i,`AH_mod11`=%i,`AH_mod12`=%i,`AH_mod13`=%i,`AH_mod14`=%i,`AH_mod15`=%i,`AH_mod16`=%i,`AH_mod17`=%i,",
    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]);


    format(string, sizeof(string),"%s`AH_SpawnSaveX`=%f,`AH_SpawnSaveY`='%f',`AH_SpawnSaveZ`='%f',`AH_SpawnSaveRot`='%f',`AH_TankVolumen`=%i,`AH_Mats`=%i,`AH_Neon`=%i,`AH_NeonType`=%i,`AH_Drugs`=%i,`AH_StandTime`=%i,`AH_Meter`=%i WHERE `sqlid`=%i AND `carkey`=%i",
    string, 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],
    Carlist[playerid][h][Kilometer],PlayerInfo[playerid][pSQLID],h);


    self_mysql_query(string);
    }
    return 1;
    }

    Hab das Angepasst und bekomme Errors:
    :\Users\Daniel\Desktop\irp.pwn(1352) : error 021: symbol already defined: "Kilometer"
    C:\Users\Daniel\Desktop\irp.pwn(4542) : error 033: array must be indexed (variable "Kilometer")


    Sobald ich das mache bekomme ich Unknown Gamemode und es funktioniert nix Warnings hab ich nicht.