Fahrzeuge werden nicht geladen

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

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Hallo zusammen,
    aus irgendeinem Grund werden meine Fraktionsfahrzeuge nicht geladen


    ich habe zusätzlich probiert die Frakcars manuell zu laden


    so sähe das dann aus


    forward OnFrakCarsLoad();
    public OnFrakCarsLoad()
    {
    new num_fields,num_rows;
    cache_get_data(num_rows,num_fields,dbhandle);
    if(!num_rows)return 1;
    for(new i=0; i<num_rows; i++)
    {
    for(new id = 0; id<MAX_CARS; id++){
    //new id=getFreeCarID();
    fInfo[id][model]=cache_get_field_content_int(id,"model",dbhandle);
    fInfo[id][fid]=cache_get_field_content_int(id,"Frakid",dbhandle);
    fInfo[id][f_c1]=cache_get_field_content_int(id,"color1",dbhandle);
    fInfo[id][f_c2]=cache_get_field_content_int(id,"color2",dbhandle);
    fInfo[id][f_x]=cache_get_field_content_float(id,"PosX",dbhandle);
    fInfo[id][f_y]=cache_get_field_content_float(id,"Posy",dbhandle);
    fInfo[id][f_z]=cache_get_field_content_float(id,"PosZ",dbhandle);
    fInfo[id][f_r]=cache_get_field_content_float(id,"PosR",dbhandle);
    fInfo[id][caridd]=cache_get_field_content_int(id,"carid",dbhandle);
    //cInfo[id][db_id]=cache_get_field_content_int(i,"id",dbhandle);
    //fInfo[id][kmstand]=cache_get_field_content_float(id,"kmstand",dbhandle);
    fInfo[id][id_x]=CreateVehicle(fInfo[id][model],fInfo[id][f_x],fInfo[id][f_y],fInfo[id][f_z],fInfo[id][f_r],fInfo[id][f_c1],fInfo[id][f_c2],-1);
    print("Fahrzeuge geladen und erstellt");
    }

    }
    return 1;
    }
    ocmd:loadfcar(playerid,params[])
    {
    new query[2048];
    format(query,sizeof(query),"SELECT * FROM Frakcars");
    mysql_function_query(dbhandle,query,true,"OnFrakCarsLoad","");
    print("Befehl ausgeführt");
    SendClientMessage(playerid,-1,"Befehl ausgeführt");

    }



    im Log und auch Ingame wird nur die Meldung ausgeführt


    print("Befehl ausgeführt"); SendClientMessage(playerid,-1,"Befehl ausgeführt");



    Wenn ihr mir da irgendwie weiterhelfen könntet wäre ich euch mehr als dankbar


    MFG

    Einmal editiert, zuletzt von AssassinsCreedUnity () aus folgendem Grund: Code richtig eingefügt

  • könntest du denn Code einmal richtig einfügen, dh. nicht alles in einer Zeile
    und ein Debug, bei der Schleife machen.

    Mit Freundlichen Grüßen
    Whitetiiger aka. Kaito-sensei
    P.s. Alle mit #IRONIE bestätigten Sätze von mir, sind als Ironie anzusehen.

  • in meiner MYSQL Log steht folgendes



    Spoiler anzeigen
    [14:43:09] [DEBUG] cache_get_data - connection: 1
    [14:43:09] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called
    [14:43:22] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM Frakcars", callback: "OnFrakCarsLoad", format: "(null)"
    [14:43:22] [DEBUG] CMySQLQuery::Execute[OnFrakCarsLoad] - starting query execution
    [14:43:22] [DEBUG] CMySQLQuery::Execute[OnFrakCarsLoad] - query was successfully executed within 0.174 milliseconds
    [14:43:22] [DEBUG] CMySQLResult::CMySQLResult() - constructor called
    [14:43:22] [DEBUG] Calling callback "OnFrakCarsLoad"..
    [14:43:22] [DEBUG] cache_get_data - connection: 1
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 0, field_name: "model", connection: 1
    [14:43:22] [WARNING] CMySQLResult::GetRowDataByName - field not found ("model")
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Frakid", connection: 1
    [14:43:22] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Frakid", data: "0"
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 0, field_name: "color1", connection: 1
    [14:43:22] [WARNING] CMySQLResult::GetRowDataByName - field not found ("color1")
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 0, field_name: "color2", connection: 1
    [14:43:22] [WARNING] CMySQLResult::GetRowDataByName - field not found ("color2")
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosX", connection: 1
    [14:43:22] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosX", data: "1216.44"
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 0, field_name: "Posy", connection: 1
    [14:43:22] [WARNING] CMySQLResult::GetRowDataByName - field not found ("Posy")
    [14:43:22] [ERROR] cache_get_field_content_float - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosZ", connection: 1
    [14:43:22] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosZ", data: "42.9056"
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosR", connection: 1
    [14:43:22] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosR", data: "201.765"
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 0, field_name: "carid", connection: 1
    [14:43:22] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "carid", data: "1"
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 1, field_name: "model", connection: 1
    [14:43:22] [WARNING] CMySQLResult::GetRowDataByName - field not found ("model")
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 1, field_name: "Frakid", connection: 1
    [14:43:22] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "Frakid", data: "0"
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 1, field_name: "color1", connection: 1
    [14:43:22] [WARNING] CMySQLResult::GetRowDataByName - field not found ("color1")
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 1, field_name: "color2", connection: 1
    [14:43:22] [WARNING] CMySQLResult::GetRowDataByName - field not found ("color2")
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 1, field_name: "PosX", connection: 1
    [14:43:22] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "PosX", data: "1216.44"
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 1, field_name: "Posy", connection: 1
    [14:43:22] [WARNING] CMySQLResult::GetRowDataByName - field not found ("Posy")
    [14:43:22] [ERROR] cache_get_field_content_float - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 1, field_name: "PosZ", connection: 1
    [14:43:22] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "PosZ", data: "42.9056"
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 1, field_name: "PosR", connection: 1
    [14:43:22] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "PosR", data: "201.765"
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 1, field_name: "carid", connection: 1
    [14:43:22] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "carid", data: "2"
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 2, field_name: "model", connection: 1
    [14:43:22] [WARNING] CMySQLResult::GetRowDataByName - field not found ("model")
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 2, field_name: "Frakid", connection: 1
    [14:43:22] [DEBUG] CMySQLResult::GetRowDataByName - row: '2', field: "Frakid", data: "0"
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 2, field_name: "color1", connection: 1
    [14:43:22] [WARNING] CMySQLResult::GetRowDataByName - field not found ("color1")
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 2, field_name: "color2", connection: 1
    [14:43:22] [WARNING] CMySQLResult::GetRowDataByName - field not found ("color2")
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 2, field_name: "PosX", connection: 1
    [14:43:22] [DEBUG] CMySQLResult::GetRowDataByName - row: '2', field: "PosX", data: "1216.44"
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 2, field_name: "Posy", connection: 1
    [14:43:22] [WARNING] CMySQLResult::GetRowDataByName - field not found ("Posy")
    [14:43:22] [ERROR] cache_get_field_content_float - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 2, field_name: "PosZ", connection: 1
    [14:43:22] [DEBUG] CMySQLResult::GetRowDataByName - row: '2', field: "PosZ", data: "42.9056"
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 2, field_name: "PosR", connection: 1
    [14:43:22] [DEBUG] CMySQLResult::GetRowDataByName - row: '2', field: "PosR", data: "201.765"
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 2, field_name: "carid", connection: 1
    [14:43:22] [DEBUG] CMySQLResult::GetRowDataByName - row: '2', field: "carid", data: "3"
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 3, field_name: "model", connection: 1
    [14:43:22] [WARNING] CMySQLResult::GetRowDataByName - field not found ("model")
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 3, field_name: "Frakid", connection: 1
    [14:43:22] [DEBUG] CMySQLResult::GetRowDataByName - row: '3', field: "Frakid", data: "0"
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 3, field_name: "color1", connection: 1
    [14:43:22] [WARNING] CMySQLResult::GetRowDataByName - field not found ("color1")
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 3, field_name: "color2", connection: 1
    [14:43:22] [WARNING] CMySQLResult::GetRowDataByName - field not found ("color2")
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 3, field_name: "PosX", connection: 1
    [14:43:22] [DEBUG] CMySQLResult::GetRowDataByName - row: '3', field: "PosX", data: "1216.44"
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 3, field_name: "Posy", connection: 1
    [14:43:22] [WARNING] CMySQLResult::GetRowDataByName - field not found ("Posy")
    [14:43:22] [ERROR] cache_get_field_content_float - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 3, field_name: "PosZ", connection: 1
    [14:43:22] [DEBUG] CMySQLResult::GetRowDataByName - row: '3', field: "PosZ", data: "42.9056"
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 3, field_name: "PosR", connection: 1
    [14:43:22] [DEBUG] CMySQLResult::GetRowDataByName - row: '3', field: "PosR", data: "201.765"
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 3, field_name: "carid", connection: 1
    [14:43:22] [DEBUG] CMySQLResult::GetRowDataByName - row: '3', field: "carid", data: "4"
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 4, field_name: "model", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('4')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 4, field_name: "Frakid", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('4')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 4, field_name: "color1", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('4')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 4, field_name: "color2", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('4')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 4, field_name: "PosX", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('4')
    [14:43:22] [ERROR] cache_get_field_content_float - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 4, field_name: "Posy", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('4')
    [14:43:22] [ERROR] cache_get_field_content_float - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 4, field_name: "PosZ", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('4')
    [14:43:22] [ERROR] cache_get_field_content_float - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 4, field_name: "PosR", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('4')
    [14:43:22] [ERROR] cache_get_field_content_float - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 4, field_name: "carid", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('4')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 5, field_name: "model", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('5')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 5, field_name: "Frakid", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('5')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 5, field_name: "color1", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('5')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 5, field_name: "color2", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('5')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 5, field_name: "PosX", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('5')
    [14:43:22] [ERROR] cache_get_field_content_float - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 5, field_name: "Posy", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('5')
    [14:43:22] [ERROR] cache_get_field_content_float - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 5, field_name: "PosZ", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('5')
    [14:43:22] [ERROR] cache_get_field_content_float - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 5, field_name: "PosR", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('5')
    [14:43:22] [ERROR] cache_get_field_content_float - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 5, field_name: "carid", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('5')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 6, field_name: "model", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('6')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 6, field_name: "Frakid", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('6')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 6, field_name: "color1", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('6')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 6, field_name: "color2", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('6')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 6, field_name: "PosX", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('6')
    [14:43:22] [ERROR] cache_get_field_content_float - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 6, field_name: "Posy", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('6')
    [14:43:22] [ERROR] cache_get_field_content_float - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 6, field_name: "PosZ", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('6')
    [14:43:22] [ERROR] cache_get_field_content_float - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 6, field_name: "PosR", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('6')
    [14:43:22] [ERROR] cache_get_field_content_float - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 6, field_name: "carid", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('6')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 7, field_name: "model", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('7')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 7, field_name: "Frakid", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('7')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 7, field_name: "color1", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('7')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 7, field_name: "color2", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('7')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 7, field_name: "PosX", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('7')
    [14:43:22] [ERROR] cache_get_field_content_float - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 7, field_name: "Posy", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('7')
    [14:43:22] [ERROR] cache_get_field_content_float - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 7, field_name: "PosZ", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('7')
    [14:43:22] [ERROR] cache_get_field_content_float - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 7, field_name: "PosR", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('7')
    [14:43:22] [ERROR] cache_get_field_content_float - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 7, field_name: "carid", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('7')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 8, field_name: "model", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('8')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 8, field_name: "Frakid", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('8')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 8, field_name: "color1", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('8')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 8, field_name: "color2", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('8')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 8, field_name: "PosX", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('8')
    [14:43:22] [ERROR] cache_get_field_content_float - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 8, field_name: "Posy", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('8')
    [14:43:22] [ERROR] cache_get_field_content_float - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 8, field_name: "PosZ", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('8')
    [14:43:22] [ERROR] cache_get_field_content_float - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 8, field_name: "PosR", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('8')
    [14:43:22] [ERROR] cache_get_field_content_float - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 8, field_name: "carid", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('8')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 9, field_name: "model", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('9')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 9, field_name: "Frakid", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('9')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 9, field_name: "color1", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('9')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 9, field_name: "color2", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('9')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 9, field_name: "PosX", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('9')
    [14:43:22] [ERROR] cache_get_field_content_float - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 9, field_name: "Posy", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('9')
    [14:43:22] [ERROR] cache_get_field_content_float - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 9, field_name: "PosZ", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('9')
    [14:43:22] [ERROR] cache_get_field_content_float - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 9, field_name: "PosR", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('9')
    [14:43:22] [ERROR] cache_get_field_content_float - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 9, field_name: "carid", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('9')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 10, field_name: "model", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('10')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 10, field_name: "Frakid", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('10')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 10, field_name: "color1", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('10')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 10, field_name: "color2", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('10')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 10, field_name: "PosX", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('10')
    [14:43:22] [ERROR] cache_get_field_content_float - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 10, field_name: "Posy", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('10')
    [14:43:22] [ERROR] cache_get_field_content_float - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 10, field_name: "PosZ", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('10')
    [14:43:22] [ERROR] cache_get_field_content_float - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 10, field_name: "PosR", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('10')
    [14:43:22] [ERROR] cache_get_field_content_float - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 10, field_name: "carid", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('10')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 11, field_name: "model", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('11')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 11, field_name: "Frakid", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('11')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 11, field_name: "color1", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('11')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 11, field_name: "color2", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('11')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 11, field_name: "PosX", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('11')
    [14:43:22] [ERROR] cache_get_field_content_float - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 11, field_name: "Posy", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('11')
    [14:43:22] [ERROR] cache_get_field_content_float - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 11, field_name: "PosZ", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('11')
    [14:43:22] [ERROR] cache_get_field_content_float - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_float - row: 11, field_name: "PosR", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('11')
    [14:43:22] [ERROR] cache_get_field_content_float - invalid datatype
    [14:43:22] [DEBUG] cache_get_field_content_int - row: 11, field_name: "carid", connection: 1
    [14:43:22] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('11')
    [14:43:22] [ERROR] cache_get_field_content_int - invalid datatype
    [14:43:22] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called
    [14:43:26] [DEBUG] mysql_tquery - connection: 1, query: "UPDATE autos SET x='1188.466308',y='-882.772155',z='42.634738',r", callback: "(null)", format: "(null)"
    [14:43:26] [DEBUG] mysql_tquery - connection: 1, query: "UPDATE autos SET x='1539.310058',y='-1660.890014',z='5.890620',r", callback: "(null)", format: "(null)"
    [14:43:26] [DEBUG] mysql_tquery - connection: 1, query: "UPDATE autos SET x='1550.479980',y='-1625.109985',z='13.382800',", callback: "(null)", format: "(null)"
    [14:43:26] [DEBUG] mysql_tquery - connection: 1, query: "UPDATE autos SET x='1584.939941',y='-1634.319946',z='13.382800',", callback: "(null)", format: "(null)"
    [14:43:26] [DEBUG] mysql_tquery - connection: 1, query: "UPDATE autos SET x='1585.229980',y='-1634.849975',z='14.829199',", callback: "(null)", format: "(null)"
    [14:43:26] [DEBUG] mysql_tquery - connection: 1, query: "UPDATE autos SET x='1540.520019',y='-1647.660034',z='5.890620',r", callback: "(null)", format: "(null)"
    [14:43:26] [DEBUG] mysql_tquery - connection: 1, query: "UPDATE autos SET x='1201.701293',y='-880.929199',z='42.495357',r", callback: "(null)", format: "(null)"
    [14:43:26] [DEBUG] mysql_tquery - connection: 1, query: "UPDATE user SET level='15',Money='3172267',alevel='9',fraktion='", callback: "(null)", format: "(null)"
    [14:43:26] [DEBUG] CMySQLQuery::Execute[] - starting query execution
    [14:43:26] [DEBUG] CMySQLQuery::Execute[] - query was successfully executed within 0.295 milliseconds
    [14:43:26] [DEBUG] CMySQLQuery::Execute[] - no callback specified, skipping result saving
    [14:43:26] [DEBUG] CMySQLQuery::Execute[] - starting query execution
    [14:43:26] [DEBUG] CMySQLQuery::Execute[] - query was successfully executed within 0.72 milliseconds
    [14:43:26] [DEBUG] CMySQLQuery::Execute[] - no callback specified, skipping result saving
    [14:43:26] [DEBUG] CMySQLQuery::Execute[] - starting query execution
    [14:43:26] [DEBUG] CMySQLQuery::Execute[] - query was successfully executed within 0.78 milliseconds
    [14:43:26] [DEBUG] CMySQLQuery::Execute[] - no callback specified, skipping result saving
    [14:43:26] [DEBUG] CMySQLQuery::Execute[] - starting query execution
    [14:43:26] [DEBUG] CMySQLQuery::Execute[] - query was successfully executed within 0.75 milliseconds
    [14:43:26] [DEBUG] CMySQLQuery::Execute[] - no callback specified, skipping result saving
    [14:43:26] [DEBUG] CMySQLQuery::Execute[] - starting query execution
    [14:43:26] [DEBUG] CMySQLQuery::Execute[] - query was successfully executed within 0.65 milliseconds
    [14:43:26] [DEBUG] CMySQLQuery::Execute[] - no callback specified, skipping result saving
    [14:43:26] [DEBUG] CMySQLQuery::Execute[] - starting query execution
    [14:43:26] [DEBUG] CMySQLQuery::Execute[] - query was successfully executed within 0.64 milliseconds
    [14:43:26] [DEBUG] CMySQLQuery::Execute[] - no callback specified, skipping result saving
    [14:43:26] [DEBUG] CMySQLQuery::Execute[] - starting query execution
    [14:43:26] [DEBUG] CMySQLQuery::Execute[] - query was successfully executed within 0.77 milliseconds
    [14:43:26] [DEBUG] CMySQLQuery::Execute[] - no callback specified, skipping result saving
    [14:43:26] [DEBUG] CMySQLQuery::Execute[] - starting query execution
    [14:43:26] [DEBUG] CMySQLQuery::Execute[] - query was successfully executed within 0.117 milliseconds
    [14:43:26] [DEBUG] CMySQLQuery::Execute[] - no callback specified, skipping result saving


  • Probier das mal

    Mit Freundlichen Grüßen
    Whitetiiger aka. Kaito-sensei
    P.s. Alle mit #IRONIE bestätigten Sätze von mir, sind als Ironie anzusehen.

  • Fahrzeuge werden leider immernoch nicht geladen




    Spoiler anzeigen

    [14:58:25] [DEBUG] cache_get_field_content_int - row: 10, field_name: "ModelID", connection: 1
    [14:58:25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('10')
    [14:58:25] [ERROR] cache_get_field_content_int - invalid datatype
    [14:58:25] [DEBUG] cache_get_field_content_int - row: 10, field_name: "Frakid", connection: 1
    [14:58:25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('10')
    [14:58:25] [ERROR] cache_get_field_content_int - invalid datatype
    [14:58:25] [DEBUG] cache_get_field_content_int - row: 10, field_name: "Farbe1", connection: 1
    [14:58:25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('10')
    [14:58:25] [ERROR] cache_get_field_content_int - invalid datatype
    [14:58:25] [DEBUG] cache_get_field_content_int - row: 10, field_name: "Farbe2", connection: 1
    [14:58:25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('10')
    [14:58:25] [ERROR] cache_get_field_content_int - invalid datatype
    [14:58:25] [DEBUG] cache_get_field_content_float - row: 10, field_name: "PosX", connection: 1
    [14:58:25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('10')
    [14:58:25] [ERROR] cache_get_field_content_float - invalid datatype
    [14:58:25] [DEBUG] cache_get_field_content_float - row: 10, field_name: "Posy", connection: 1
    [14:58:25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('10')
    [14:58:25] [ERROR] cache_get_field_content_float - invalid datatype
    [14:58:25] [DEBUG] cache_get_field_content_float - row: 10, field_name: "PosZ", connection: 1
    [14:58:25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('10')
    [14:58:25] [ERROR] cache_get_field_content_float - invalid datatype
    [14:58:25] [DEBUG] cache_get_field_content_float - row: 10, field_name: "PosR", connection: 1
    [14:58:25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('10')
    [14:58:25] [ERROR] cache_get_field_content_float - invalid datatype
    [14:58:25] [DEBUG] cache_get_field_content_int - row: 10, field_name: "carid", connection: 1
    [14:58:25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('10')
    [14:58:25] [ERROR] cache_get_field_content_int - invalid datatype

  • Spoiler anzeigen
    [15:33:35] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM Frakcars", callback: "OnFrakCarsLoad", format: "(null)"
    [15:33:35] [DEBUG] CMySQLQuery::Execute[OnFrakCarsLoad] - starting query execution
    [15:33:35] [DEBUG] CMySQLQuery::Execute[OnFrakCarsLoad] - query was successfully executed within 0.448 milliseconds
    [15:33:35] [DEBUG] CMySQLResult::CMySQLResult() - constructor called
    [15:33:35] [DEBUG] Calling callback "OnFrakCarsLoad"..
    [15:33:35] [DEBUG] cache_get_data - connection: 1
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 0, field_name: "ModelID", connection: 1
    [15:33:35] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "ModelID", data: "596"
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Frakid", connection: 1
    [15:33:35] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Frakid", data: "1"
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Farbe1", connection: 1
    [15:33:35] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Farbe1", data: "3"
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Farbe2", connection: 1
    [15:33:35] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Farbe2", data: "5"
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosX", connection: 1
    [15:33:35] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosX", data: "1216.44"
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 0, field_name: "Posy", connection: 1
    [15:33:35] [WARNING] CMySQLResult::GetRowDataByName - field not found ("Posy")
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosZ", connection: 1
    [15:33:35] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosZ", data: "42.9056"
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosR", connection: 1
    [15:33:35] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosR", data: "201.765"
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 0, field_name: "carid", connection: 1
    [15:33:35] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "carid", data: "1"
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 1, field_name: "ModelID", connection: 1
    [15:33:35] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "ModelID", data: "411"
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 1, field_name: "Frakid", connection: 1
    [15:33:35] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "Frakid", data: "0"
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 1, field_name: "Farbe1", connection: 1
    [15:33:35] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "Farbe1", data: "1"
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 1, field_name: "Farbe2", connection: 1
    [15:33:35] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "Farbe2", data: "1"
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 1, field_name: "PosX", connection: 1
    [15:33:35] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "PosX", data: "1210.2"
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 1, field_name: "Posy", connection: 1
    [15:33:35] [WARNING] CMySQLResult::GetRowDataByName - field not found ("Posy")
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 1, field_name: "PosZ", connection: 1
    [15:33:35] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "PosZ", data: "42.9195"
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 1, field_name: "PosR", connection: 1
    [15:33:35] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "PosR", data: "281.353"
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 1, field_name: "carid", connection: 1
    [15:33:35] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "carid", data: "5"
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 2, field_name: "ModelID", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('2')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 2, field_name: "Frakid", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('2')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 2, field_name: "Farbe1", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('2')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 2, field_name: "Farbe2", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('2')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 2, field_name: "PosX", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('2')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 2, field_name: "Posy", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('2')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 2, field_name: "PosZ", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('2')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 2, field_name: "PosR", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('2')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 2, field_name: "carid", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('2')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 3, field_name: "ModelID", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 3, field_name: "Frakid", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 3, field_name: "Farbe1", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 3, field_name: "Farbe2", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 3, field_name: "PosX", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 3, field_name: "Posy", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 3, field_name: "PosZ", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 3, field_name: "PosR", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 3, field_name: "carid", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 4, field_name: "ModelID", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('4')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 4, field_name: "Frakid", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('4')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 4, field_name: "Farbe1", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('4')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 4, field_name: "Farbe2", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('4')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 4, field_name: "PosX", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('4')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 4, field_name: "Posy", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('4')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 4, field_name: "PosZ", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('4')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 4, field_name: "PosR", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('4')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 4, field_name: "carid", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('4')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 5, field_name: "ModelID", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('5')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 5, field_name: "Frakid", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('5')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 5, field_name: "Farbe1", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('5')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 5, field_name: "Farbe2", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('5')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 5, field_name: "PosX", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('5')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 5, field_name: "Posy", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('5')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 5, field_name: "PosZ", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('5')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 5, field_name: "PosR", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('5')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 5, field_name: "carid", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('5')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 6, field_name: "ModelID", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('6')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 6, field_name: "Frakid", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('6')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 6, field_name: "Farbe1", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('6')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 6, field_name: "Farbe2", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('6')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 6, field_name: "PosX", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('6')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 6, field_name: "Posy", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('6')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 6, field_name: "PosZ", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('6')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 6, field_name: "PosR", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('6')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 6, field_name: "carid", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('6')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 7, field_name: "ModelID", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('7')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 7, field_name: "Frakid", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('7')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 7, field_name: "Farbe1", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('7')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 7, field_name: "Farbe2", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('7')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 7, field_name: "PosX", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('7')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 7, field_name: "Posy", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('7')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 7, field_name: "PosZ", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('7')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 7, field_name: "PosR", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('7')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 7, field_name: "carid", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('7')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 8, field_name: "ModelID", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('8')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 8, field_name: "Frakid", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('8')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 8, field_name: "Farbe1", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('8')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 8, field_name: "Farbe2", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('8')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 8, field_name: "PosX", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('8')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 8, field_name: "Posy", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('8')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 8, field_name: "PosZ", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('8')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 8, field_name: "PosR", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('8')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 8, field_name: "carid", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('8')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 9, field_name: "ModelID", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('9')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 9, field_name: "Frakid", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('9')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 9, field_name: "Farbe1", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('9')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 9, field_name: "Farbe2", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('9')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 9, field_name: "PosX", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('9')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 9, field_name: "Posy", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('9')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 9, field_name: "PosZ", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('9')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 9, field_name: "PosR", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('9')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 9, field_name: "carid", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('9')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 10, field_name: "ModelID", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('10')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 10, field_name: "Frakid", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('10')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 10, field_name: "Farbe1", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('10')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 10, field_name: "Farbe2", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('10')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 10, field_name: "PosX", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('10')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 10, field_name: "Posy", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('10')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 10, field_name: "PosZ", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('10')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 10, field_name: "PosR", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('10')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 10, field_name: "carid", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('10')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 11, field_name: "ModelID", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('11')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 11, field_name: "Frakid", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('11')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 11, field_name: "Farbe1", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('11')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 11, field_name: "Farbe2", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('11')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 11, field_name: "PosX", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('11')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 11, field_name: "Posy", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('11')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 11, field_name: "PosZ", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('11')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 11, field_name: "PosR", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('11')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype
    [15:33:35] [DEBUG] cache_get_field_content_int - row: 11, field_name: "carid", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('11')
    [15:33:35] [ERROR] cache_get_field_content_int - invalid datatype[15:33:35] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called



    das sagt der MYSQL_LOG
    Also Debug

  • ich kenne mich nicht mit der Mysql Version aus, jedoch sollte dies nicht kommen.

    PHP
    [15:33:35] [DEBUG] cache_get_field_content_float - row: 11, field_name: "PosR", connection: 1
    [15:33:35] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('11')
    [15:33:35] [ERROR] cache_get_field_content_float - invalid datatype


    kann dies vll daran liegen, dass du vll ein Anderen Type genommen hast oder das Feld nicht existiert.

    Mit Freundlichen Grüßen
    Whitetiiger aka. Kaito-sensei
    P.s. Alle mit #IRONIE bestätigten Sätze von mir, sind als Ironie anzusehen.

  • Da steht "Invalid Row Index", nicht "Invalid Column Index".
    Column = Spalte
    Row = Zeile.


    Du gehst die Zeilen falsch durch. Der Ansatz von [GSR]Kaito-sensei ist eigentlich schon ganz okay, nur stimmt dort bei cache_get_field_content_int etwas nicht. Dort solltest du nicht id nehmen. id ist nicht die Zeile die du gerade aus der DB hast sondern für die Variable fInfo den Index den du belegst.
    Ausgehend vom o.g. Code:
    forward OnFrakCarsLoad();
    public OnFrakCarsLoad()
    {
    new num_fields,num_rows;
    cache_get_data(num_rows,num_fields,dbhandle);
    printf("num_rows=%d,num_fields=%d",num_rows,num_fields);
    if(!num_rows)return 1;
    for(new i=0; i<num_rows; i++) // i ist der "Row Index" für dein MySQL Ergebnis. Bloß nicht id!
    {
    new id=getFreeCarID(); // Ob du wirklich id brauchst kann ich nicht unbedingt beurteilen.
    fInfo[id][model]=cache_get_field_content_int(i,"model",dbhandle); // i, nicht id
    fInfo[id][fid]=cache_get_field_content_int(i,"Frakid",dbhandle);// i, nicht id
    fInfo[id][f_c1]=cache_get_field_content_int(i,"color1",dbhandle);// i, nicht id
    fInfo[id][f_c2]=cache_get_field_content_int(i,"color2",dbhandle);// i, nicht id
    fInfo[id][f_x]=cache_get_field_content_float(i,"PosX",dbhandle);// i, nicht id
    fInfo[id][f_y]=cache_get_field_content_float(i,"Posy",dbhandle);// i, nicht id
    fInfo[id][f_z]=cache_get_field_content_float(i,"PosZ",dbhandle);// i, nicht id
    fInfo[id][f_r]=cache_get_field_content_float(i,"PosR",dbhandle);// i, nicht id
    fInfo[id][caridd]=cache_get_field_content_int(i,"carid",dbhandle);// i, nicht id
    fInfo[id][db_id]=cache_get_field_content_int(i,"id",dbhandle);// i, nicht id
    //fInfo[id][kmstand]=cache_get_field_content_float(i,"kmstand",dbhandle);// i, nicht id
    fInfo[id][id_x]=CreateVehicle(fInfo[id][model],fInfo[id][f_x],fInfo[id][f_y],fInfo[id][f_z],fInfo[id][f_r],fInfo[id][f_c1],fInfo[id][f_c2],-1);
    printf("Fahrzeuge geladen und erstellt %d", /* fInfo[id][model] */ fInfo[id][id_x] );
    }
    return 1;
    }

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • okay, danke werde es sofort mal probieren



    Edit: habs ausprobiert fahrzeuge werden wieder nicht geladen



    folgendes steht in meinem Debug


    Spoiler anzeigen
    [19:05:34] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM Frakcars", callback: "OnFrakCarsLoad", format: "(null)"
    [19:05:34] [DEBUG] CMySQLQuery::Execute[OnFrakCarsLoad] - starting query execution
    [19:05:34] [DEBUG] CMySQLQuery::Execute[OnFrakCarsLoad] - query was successfully executed within 0.147 milliseconds
    [19:05:34] [DEBUG] CMySQLResult::CMySQLResult() - constructor called
    [19:05:34] [DEBUG] Calling callback "OnFrakCarsLoad"..
    [19:05:34] [DEBUG] cache_get_data - connection: 1
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "ModelID", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "ModelID", data: "596"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Frakid", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Frakid", data: "1"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Farbe1", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Farbe1", data: "3"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Farbe2", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Farbe2", data: "5"
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosX", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosX", data: "1216.44"
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "Posy", connection: 1
    [19:05:34] [WARNING] CMySQLResult::GetRowDataByName - field not found ("Posy")
    [19:05:34] [ERROR] cache_get_field_content_float - invalid datatype
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosZ", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosZ", data: "42.9056"
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosR", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosR", data: "201.765"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "carid", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "carid", data: "1"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "ModelID", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "ModelID", data: "596"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Frakid", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Frakid", data: "1"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Farbe1", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Farbe1", data: "3"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Farbe2", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Farbe2", data: "5"
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosX", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosX", data: "1216.44"
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "Posy", connection: 1
    [19:05:34] [WARNING] CMySQLResult::GetRowDataByName - field not found ("Posy")
    [19:05:34] [ERROR] cache_get_field_content_float - invalid datatype
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosZ", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosZ", data: "42.9056"
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosR", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosR", data: "201.765"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "carid", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "carid", data: "1"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "ModelID", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "ModelID", data: "596"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Frakid", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Frakid", data: "1"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Farbe1", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Farbe1", data: "3"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Farbe2", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Farbe2", data: "5"
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosX", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosX", data: "1216.44"
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "Posy", connection: 1
    [19:05:34] [WARNING] CMySQLResult::GetRowDataByName - field not found ("Posy")
    [19:05:34] [ERROR] cache_get_field_content_float - invalid datatype
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosZ", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosZ", data: "42.9056"
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosR", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosR", data: "201.765"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "carid", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "carid", data: "1"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "ModelID", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "ModelID", data: "596"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Frakid", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Frakid", data: "1"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Farbe1", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Farbe1", data: "3"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Farbe2", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Farbe2", data: "5"
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosX", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosX", data: "1216.44"
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "Posy", connection: 1
    [19:05:34] [WARNING] CMySQLResult::GetRowDataByName - field not found ("Posy")
    [19:05:34] [ERROR] cache_get_field_content_float - invalid datatype
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosZ", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosZ", data: "42.9056"
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosR", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosR", data: "201.765"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "carid", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "carid", data: "1"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "ModelID", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "ModelID", data: "596"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Frakid", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Frakid", data: "1"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Farbe1", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Farbe1", data: "3"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Farbe2", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Farbe2", data: "5"
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosX", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosX", data: "1216.44"
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "Posy", connection: 1
    [19:05:34] [WARNING] CMySQLResult::GetRowDataByName - field not found ("Posy")
    [19:05:34] [ERROR] cache_get_field_content_float - invalid datatype
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosZ", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosZ", data: "42.9056"
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosR", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosR", data: "201.765"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "carid", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "carid", data: "1"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "ModelID", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "ModelID", data: "596"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Frakid", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Frakid", data: "1"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Farbe1", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Farbe1", data: "3"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Farbe2", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Farbe2", data: "5"
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosX", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosX", data: "1216.44"
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "Posy", connection: 1
    [19:05:34] [WARNING] CMySQLResult::GetRowDataByName - field not found ("Posy")
    [19:05:34] [ERROR] cache_get_field_content_float - invalid datatype
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosZ", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosZ", data: "42.9056"
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosR", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosR", data: "201.765"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "carid", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "carid", data: "1"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "ModelID", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "ModelID", data: "596"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Frakid", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Frakid", data: "1"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Farbe1", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Farbe1", data: "3"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Farbe2", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Farbe2", data: "5"
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosX", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosX", data: "1216.44"
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "Posy", connection: 1
    [19:05:34] [WARNING] CMySQLResult::GetRowDataByName - field not found ("Posy")
    [19:05:34] [ERROR] cache_get_field_content_float - invalid datatype
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosZ", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosZ", data: "42.9056"
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosR", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosR", data: "201.765"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "carid", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "carid", data: "1"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "ModelID", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "ModelID", data: "596"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Frakid", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Frakid", data: "1"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Farbe1", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Farbe1", data: "3"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Farbe2", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Farbe2", data: "5"
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosX", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosX", data: "1216.44"
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "Posy", connection: 1
    [19:05:34] [WARNING] CMySQLResult::GetRowDataByName - field not found ("Posy")
    [19:05:34] [ERROR] cache_get_field_content_float - invalid datatype
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosZ", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosZ", data: "42.9056"
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosR", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosR", data: "201.765"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "carid", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "carid", data: "1"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "ModelID", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "ModelID", data: "596"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Frakid", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Frakid", data: "1"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Farbe1", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Farbe1", data: "3"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Farbe2", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Farbe2", data: "5"
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosX", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosX", data: "1216.44"
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "Posy", connection: 1
    [19:05:34] [WARNING] CMySQLResult::GetRowDataByName - field not found ("Posy")
    [19:05:34] [ERROR] cache_get_field_content_float - invalid datatype
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosZ", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosZ", data: "42.9056"
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosR", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosR", data: "201.765"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "carid", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "carid", data: "1"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "ModelID", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "ModelID", data: "596"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Frakid", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Frakid", data: "1"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Farbe1", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Farbe1", data: "3"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Farbe2", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Farbe2", data: "5"
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosX", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosX", data: "1216.44"
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "Posy", connection: 1
    [19:05:34] [WARNING] CMySQLResult::GetRowDataByName - field not found ("Posy")
    [19:05:34] [ERROR] cache_get_field_content_float - invalid datatype
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosZ", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosZ", data: "42.9056"
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosR", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosR", data: "201.765"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "carid", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "carid", data: "1"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "ModelID", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "ModelID", data: "596"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Frakid", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Frakid", data: "1"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Farbe1", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Farbe1", data: "3"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Farbe2", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Farbe2", data: "5"
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosX", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosX", data: "1216.44"
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "Posy", connection: 1
    [19:05:34] [WARNING] CMySQLResult::GetRowDataByName - field not found ("Posy")
    [19:05:34] [ERROR] cache_get_field_content_float - invalid datatype
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosZ", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosZ", data: "42.9056"
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosR", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosR", data: "201.765"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "carid", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "carid", data: "1"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "ModelID", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "ModelID", data: "596"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Frakid", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Frakid", data: "1"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Farbe1", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Farbe1", data: "3"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Farbe2", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Farbe2", data: "5"
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosX", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosX", data: "1216.44"
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "Posy", connection: 1
    [19:05:34] [WARNING] CMySQLResult::GetRowDataByName - field not found ("Posy")
    [19:05:34] [ERROR] cache_get_field_content_float - invalid datatype
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosZ", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosZ", data: "42.9056"
    [19:05:34] [DEBUG] cache_get_field_content_float - row: 0, field_name: "PosR", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "PosR", data: "201.765"
    [19:05:34] [DEBUG] cache_get_field_content_int - row: 0, field_name: "carid", connection: 1
    [19:05:34] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "carid", data: "1"
    [19:05:34] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called



    hab den PosY fehler gerade behoben - mal gucken obs geht

  • Die mysql_log alleine bringt in dem Fall nicht alles.
    Was steht denn in der server_log ?
    Falls du dir mal die mysql_log anschaust,dann siehst du,dass die Daten aus der Datenbank geladen werden. Komischerweise aber immer aus row 0. Daher wäre die server_log nicht schlecht.
    Außerdem:
    new id=getFreeCarID(); // Ob du wirklich id brauchst kann ich nicht unbedingt beurteilen.
    printf("id = %d , i = %d",id,i);
    Zu dem Posy:
    fInfo[id][f_y]=cache_get_field_content_float(i,"PosY",dbhandle);// i, nicht id
    Der Fehler stand ja in der mysql_log ;).

  • das sieht dann so aus




    [19:20:41] Befehl ausgef�hrt
    [19:20:41] num_rows=2,num_fields=10
    [19:20:41] Fahrzeuge geladen und erstellt 54
    [19:20:41] Fahrzeuge geladen und erstellt 55
    [19:20:41] Fahrzeuge geladen und erstellt 56
    [19:20:41] Fahrzeuge geladen und erstellt 57
    [19:20:41] Fahrzeuge geladen und erstellt 58
    [19:20:41] Fahrzeuge geladen und erstellt 59
    [19:20:41] Fahrzeuge geladen und erstellt 60
    [19:20:41] Fahrzeuge geladen und erstellt 61
    [19:20:41] Fahrzeuge geladen und erstellt 62
    [19:20:41] Fahrzeuge geladen und erstellt 63
    [19:20:41] Fahrzeuge geladen und erstellt 64
    [19:20:41] Fahrzeuge geladen und erstellt 65



  • Du solltest es so machen

    PHP
    printf("id = %d , i = %d",id,i);


    Goldkiller: Danke, dass du es mir nebenbei auch noch erklärt hast, werde es für die nächsten Fehlerbehebungen auch verwenden.

    Mit Freundlichen Grüßen
    Whitetiiger aka. Kaito-sensei
    P.s. Alle mit #IRONIE bestätigten Sätze von mir, sind als Ironie anzusehen.

  • Wieso klammerst du denn auch die Zeile aus?
    //new id=getFreeCarID(); // Ob du wirklich id brauchst kann ich nicht unbedingt beurteilen.
    Natürlich kommt dann "Undefined id". Du lässt es ja auch nie erstellen.



    forward OnFrakCarsLoad();
    public OnFrakCarsLoad()
    {
    new num_fields,num_rows;
    cache_get_data(num_rows,num_fields,dbhandle);
    printf("num_rows=%d,num_fields=%d",num_rows,num_fields);
    if(!num_rows)return 1;
    for(new i=0; i<num_rows; i++) // i ist der "Row Index" für dein MySQL Ergebnis. Bloß nicht id!
    {
    new id=getFreeCarID(); // Ob du wirklich id brauchst kann ich nicht unbedingt beurteilen.
    printf("id = %d, i = %d",id,i);
    fInfo[id][model]=cache_get_field_content_int(i,"model",dbhandle); // i, nicht id
    fInfo[id][fid]=cache_get_field_content_int(i,"Frakid",dbhandle);// i, nicht id
    fInfo[id][f_c1]=cache_get_field_content_int(i,"color1",dbhandle);// i, nicht id
    fInfo[id][f_c2]=cache_get_field_content_int(i,"color2",dbhandle);// i, nicht id
    fInfo[id][f_x]=cache_get_field_content_float(i,"PosX",dbhandle);// i, nicht id
    fInfo[id][f_y]=cache_get_field_content_float(i,"PosY",dbhandle);// i, nicht id
    fInfo[id][f_z]=cache_get_field_content_float(i,"PosZ",dbhandle);// i, nicht id
    fInfo[id][f_r]=cache_get_field_content_float(i,"PosR",dbhandle);// i, nicht id
    fInfo[id][caridd]=cache_get_field_content_int(i,"carid",dbhandle);// i, nicht id
    fInfo[id][db_id]=cache_get_field_content_int(i,"id",dbhandle);// i, nicht id
    //fInfo[id][kmstand]=cache_get_field_content_float(i,"kmstand",dbhandle);// i, nicht id
    fInfo[id][id_x]=CreateVehicle(fInfo[id][model],fInfo[id][f_x],fInfo[id][f_y],fInfo[id][f_z],fInfo[id][f_r],fInfo[id][f_c1],fInfo[id][f_c2],-1);
    printf("Fahrzeuge geladen und erstellt %d", /* fInfo[id][model] */ fInfo[id][id_x] );
    }
    return 1;
    }
    Ob du getFreeCarID() brauchst weiss ich nicht. Ich habe nie gesehen was die Funktion macht und daher musst du selber wissen, ob du das brauchst. Wenn du es nicht brauchst, dann macht natürlich auch id (Variable) keinen Sinn. Die Funktion sucht dir ja nur den nächsten freien Index bei fInfo aus (klingt zumindest so).

  • //edit


    Goldkiller:

    Zitat

    Ob du getFreeCarID() brauchst weiss ich nicht. Ich habe nie gesehen was die Funktion macht und daher musst du selber wissen, ob du das brauchst. Wenn du es nicht brauchst, dann macht natürlich auch id (Variable) keinen Sinn. Die Funktion sucht dir ja nur den nächsten freien Index bei fInfo aus (klingt zumindest so).


    So ist es auch

    Mit Freundlichen Grüßen
    Whitetiiger aka. Kaito-sensei
    P.s. Alle mit #IRONIE bestätigten Sätze von mir, sind als Ironie anzusehen.

  • nun die fahrzeuge werden gespawnt


    da ich nur 1 drinne hatte wird nur 1 gespawnt


    allerdings spawnen aufm Server 11 Stück



    [20:35:46] num_rows=2,num_fields=10
    [20:35:46] id = 0 , i = 0
    [20:35:46] Fahrzeuge geladen und erstellt 30
    [20:35:46] id = 1 , i = 0
    [20:35:46] Fahrzeuge geladen und erstellt 31
    [20:35:46] id = 2 , i = 0
    [20:35:46] Fahrzeuge geladen und erstellt 32
    [20:35:46] id = 3 , i = 0
    [20:35:46] Fahrzeuge geladen und erstellt 33
    [20:35:46] id = 4 , i = 0
    [20:35:46] Fahrzeuge geladen und erstellt 34
    [20:35:46] id = 5 , i = 0
    [20:35:46] Fahrzeuge geladen und erstellt 35
    [20:35:46] id = 6 , i = 0
    [20:35:46] Fahrzeuge geladen und erstellt 36
    [20:35:46] id = 7 , i = 0
    [20:35:46] Fahrzeuge geladen und erstellt 37
    [20:35:46] id = 8 , i = 0
    [20:35:46] Fahrzeuge geladen und erstellt 38
    [20:35:46] id = 9 , i = 0
    [20:35:46] Fahrzeuge geladen und erstellt 39
    [20:35:46] id = 10 , i = 0
    [20:35:46] Fahrzeuge geladen und erstellt 40
    [20:35:46] id = 11 , i = 0
    [20:35:46] Fahrzeuge geladen und erstellt 41
    [20:35:46] id = 12 , i = 0











    Vielleicht liegt das daran dass ich 11 Fraktionen habe...