Heho.
Kommen wir gleich zu meinem Problem.
Zurzeit lade ich meine Fahrzeuge wie folgt:
vehs[i][model] = mysql_GetInt("autos","model", "ID", "i");
vehs[i][ahauto] = mysql_GetInt("autos","ahauto", "ID", "i");
vehs[i][kaufbar] = mysql_GetInt("autos","kaufbar", "ID", "i");
vehs[i][besitzer] = mysql_GetInt("autos","besitzer", "ID", "i");
vehs[i][preis] = mysql_GetInt("autos","preis", "ID", "i");
vehs[i][x] = mysql_GetFloat("autos","x", "ID", "i");
vehs[i][y] = mysql_GetFloat("autos","y", "ID", "i");
vehs[i][z] = mysql_GetFloat("autos","z", "ID", "i");
vehs[i][rot] = mysql_GetFloat("autos","rot", "ID", "i");
vehs[i][color11] = mysql_GetInt("autos","color1", "ID", "i");
vehs[i][color22] = mysql_GetInt("autos","color2", "ID", "i");
vehs[i][spoiler] = mysql_GetInt("autos","spoiler", "ID", "i");
vehs[i][hood] = mysql_GetInt("autos","hood", "ID", "i");
vehs[i][roof] = mysql_GetInt("autos","roof", "ID", "i");
vehs[i][sideskirt] = mysql_GetInt("autos","sideskirt", "ID", "i");
vehs[i][nitro] = mysql_GetInt("autos","nitro", "ID", "i");
vehs[i][lamps] = mysql_GetInt("autos","lamps", "ID", "i");
vehs[i][exhaust] = mysql_GetInt("autos","exhaust", "ID", "i");
vehs[i][wheels] = mysql_GetInt("autos","wheels", "ID", "i");
vehs[i][stereo] = mysql_GetInt("autos","stereo", "ID", "i");
vehs[i][hydraulics] = mysql_GetInt("autos","hydraulics", "ID", "i");
vehs[i][bullbars] = mysql_GetInt("autos","bullbars", "ID", "i");
vehs[i][bumper] = mysql_GetInt("autos","bumper", "ID", "i");
vehs[i][vents] = mysql_GetInt("autos","vents", "ID", "i");
Das ganze in einer For-Schleife für die ganzen Fahrzeuge.
Das braucht nur leider pro Fahrzeug gut 2 Sekunden. Kann ich das ganze irgendwie verkürzen, indem ich das alles in einen Query oder so mache?
Gruß,
Neo.