Auto spawnt net

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
  • HeyHo ich bins mal wieder...


    Warum spawnt das auto nicht ?
    for(new i; i<MAX_AUTOS; i++)
    {
    e_auto[i][a_id] = CreateVehicle(e_auto[i][a_vID],e_auto[i][a_x],e_auto[i][a_y],e_auto[i][a_z],44.44,e_auto[i][a_c1],e_auto[i][a_c2],-1);
    printf("%i",e_auto[i][a_vID]);
    }


    #define MAX_AUTOS 40


    enum autohaus
    {
    a_id,
    a_vID,
    a_besitzer,
    Float:a_x,
    Float:a_y,
    Float:a_z,
    a_c1,
    a_c2,
    a_r,
    a_preis
    }
    new e_auto[MAX_AUTOS][autohaus];


    stock loadautos()
    {
    //x,y,z
    e_auto[30][a_x] = mysql_GetFloatWithInt("autohaus", "x", "id", e_auto[30][a_id]);
    e_auto[30][a_y] = mysql_GetFloatWithInt("autohaus", "y", "id", e_auto[30][a_id]);
    e_auto[30][a_z] = mysql_GetFloatWithInt("autohaus", "z", "id", e_auto[30][a_id]);
    //besitzer
    strmid(e_auto[35][a_besitzer], mysql_GetStringByInt("autohaus","Besitzer","id",e_auto[30][a_id]), 0, 256,256);
    //vID
    e_auto[30][a_vID] = mysql_GetInt("autohaus", "vID", "id",e_auto[30][a_id]);
    //c1,c2
    e_auto[30][a_c1] = mysql_GetInt("autohaus", "color1", "id",e_auto[30][a_id]);
    e_auto[30][a_c2] = mysql_GetInt("autohaus", "color2", "id",e_auto[30][a_id]);
    e_auto[30][a_preis] = mysql_GetInt("autohaus", "preis", "id",e_auto[30][a_id]);
    }