Autos alle auf 1 Position

In 10 Minuten startet der nächtliche Backupvorgang! Es kann währenddessen (ca. 10 Minuten) zu Einschränkungen bei der Nutzung des Forums kommen
Weitere Infos findet ihr im Thema Backup des Forums
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
  • Gleiches Problem besteht weiterhin


    public loadCar(playerid)
    {
    new Car,rows,fields;
    cache_get_data(rows,fields);
    if(rows)
    {
    for(new i=0; i<rows; i++)
    {
    cInfo[i][model] = cache_get_field_content_int(0,"model",dbhandle);
    //cInfo[i][besitzer] = cache_get_field_content_int(0,"besitzer",dbhandle);
    //cInfo[i][firma] = cache_get_field_content_int(0,"firma",dbhandle);
    cInfo[i][c_x] = cache_get_field_content_int(0,"x",dbhandle);
    cInfo[i][c_y] = cache_get_field_content_int(0,"y",dbhandle);
    cInfo[i][c_z] = cache_get_field_content_int(0,"z",dbhandle);
    cInfo[i][c_r] = cache_get_field_content_int(0,"r",dbhandle);
    cInfo[i][Color_1] = cache_get_field_content_int(0,"Color_1",dbhandle);
    cInfo[i][Color_2] = cache_get_field_content_int(0,"Color_2",dbhandle);
    cInfo[i][db_id] = cache_get_field_content_int(0,"db_id",dbhandle);
    CreateVehicle(cInfo[i][model],cInfo[i][c_x],cInfo[i][c_y],cInfo[i][c_z],cInfo[i][c_r],cInfo[i][Color_1],cInfo[i][Color_2],-1);
    Car ++;
    }
    }
    return true;
    }


    Hat jemand ne Idee?

    Einmal editiert, zuletzt von Nicolas9897 ()

  • Hat jemand ne Idee?


    public loadCar(playerid)
    {
    new Car,rows,fields;
    cache_get_data(rows,fields);
    if(rows)
    {
    for(new i=0; i<rows; i++)
    {
    cInfo[i][model] = cache_get_field_content_int(i,"model",dbhandle);
    //cInfo[i][besitzer] = cache_get_field_content_int(i,"besitzer",dbhandle);
    //cInfo[i][firma] = cache_get_field_content_int(i,"firma",dbhandle);
    cInfo[i][c_x] = cache_get_field_content_int(i,"x",dbhandle);
    cInfo[i][c_y] = cache_get_field_content_int(i,"y",dbhandle);
    cInfo[i][c_z] = cache_get_field_content_int(i,"z",dbhandle);
    cInfo[i][c_r] = cache_get_field_content_int(i,"r",dbhandle);
    cInfo[i][Color_1] = cache_get_field_content_int(i,"Color_1",dbhandle);
    cInfo[i][Color_2] = cache_get_field_content_int(i,"Color_2",dbhandle);
    cInfo[i][db_id] = cache_get_field_content_int(i,"db_id",dbhandle);
    CreateVehicle(cInfo[i][model],cInfo[i][c_x],cInfo[i][c_y],cInfo[i][c_z],cInfo[i][c_r],cInfo[i][Color_1],cInfo[i][Color_2],-1);
    Car++;
    }
    }
    return true;
    }


  • Geht komischer Weise nicht