Guten Mittag,
ich bin dabei ein Fraktions fahrzeug system zu schreiben und habe probleme beim laden also der Punkt ist es werden keine fahrzeuge erstellt
hir mein lade stock :
public LoadFraktionCars() {
new fc;
while(fc<sizeof(FraktionCar)) {
FraktionCar[fc][VehID] = mysql_GetFraktionInt("FraktionsCars","VehID","FraktionsID",FraktionCar[fc][FraktionsID]);
FraktionCar[fc][Pos][0] = mysql_GetFraktionFloat("FraktionsCars","X","FraktionsID",FraktionCar[fc][FraktionsID]);
FraktionCar[fc][Pos][1] = mysql_GetFraktionFloat("FraktionsCars","Y","FraktionsID",FraktionCar[fc][FraktionsID]);
FraktionCar[fc][Pos][2] = mysql_GetFraktionFloat("FraktionsCars","Z","FraktionsID",FraktionCar[fc][FraktionsID]);
FraktionCar[fc][Pos][3] = mysql_GetFraktionFloat("FraktionsCars","A","FraktionsID",FraktionCar[fc][FraktionsID]);
FraktionCar[fc][Color][0] = mysql_GetFraktionInt("FraktionsCars","Color1","FraktionsID",FraktionCar[fc][FraktionsID]);
FraktionCar[fc][Color][1] = mysql_GetFraktionInt("FraktionsCars","Color2","FraktionsID",FraktionCar[fc][FraktionsID]);
FraktionCar[fc][ZiviCar] = mysql_GetFraktionInt("FraktionsCars","ZiviCar","FraktionsID",FraktionCar[fc][FraktionsID]);
FraktionCar[fc][fCarid] = CreateVehicle(FraktionCar[fc][VehID],FraktionCar[fc][Pos][0],FraktionCar[fc][Pos][1],FraktionCar[fc][Pos][2],FraktionCar[fc][Pos][3],FraktionCar[fc][Color][0],FraktionCar[fc][Color][1],-1);
fc++;
}
return printf(" '%d' Fraktionsfahrzeuge wurden geladen & erstellt.",fc);
}
Debug:
[12:59:33] [12:59:33] ---------------------------[12:59:33] MySQL Debugging activated (06/25/13)[12:59:33] ---------------------------[12:59:33] [12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(fraktionscars); - Escaped 13 characters to fraktionscars.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(VehID); - Escaped 5 characters to VehID.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(FraktionsID); - Escaped 11 characters to FraktionsID.[12:59:33] >> mysql_query( Connection handle: 1 )[12:59:33] CMySQLHandler::Query(SELECT `VehID` FROM `fraktionscars` WHERE `FraktionsID` = '0') - Successfully executed.[12:59:33] >> mysql_store_result( Connection handle: 1 )[12:59:33] CMySQLHandler::StoreResult() - Result was stored.[12:59:33] >> mysql_fetch_int( Connection handle: 1 )[12:59:33] >> mysql_free_result( Connection handle: 1 )[12:59:33] CMySQLHandler::FreeResult() - Result was successfully free'd.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(fraktionscars); - Escaped 13 characters to fraktionscars.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(X); - Escaped 1 characters to X.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(FraktionsID); - Escaped 11 characters to FraktionsID.[12:59:33] >> mysql_query( Connection handle: 1 )[12:59:33] CMySQLHandler::Query(SELECT X FROM fraktionscars WHERE FraktionsID = '0') - Successfully executed.[12:59:33] >> mysql_store_result( Connection handle: 1 )[12:59:33] CMySQLHandler::StoreResult() - Result was stored.[12:59:33] >> mysql_fetch_float( Connection handle: 1 )[12:59:33] >> mysql_free_result( Connection handle: 1 )[12:59:33] CMySQLHandler::FreeResult() - Result was successfully free'd.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(fraktionscars); - Escaped 13 characters to fraktionscars.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(Y); - Escaped 1 characters to Y.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(FraktionsID); - Escaped 11 characters to FraktionsID.[12:59:33] >> mysql_query( Connection handle: 1 )[12:59:33] CMySQLHandler::Query(SELECT Y FROM fraktionscars WHERE FraktionsID = '0') - Successfully executed.[12:59:33] >> mysql_store_result( Connection handle: 1 )[12:59:33] CMySQLHandler::StoreResult() - Result was stored.[12:59:33] >> mysql_fetch_float( Connection handle: 1 )[12:59:33] >> mysql_free_result( Connection handle: 1 )[12:59:33] CMySQLHandler::FreeResult() - Result was successfully free'd.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(fraktionscars); - Escaped 13 characters to fraktionscars.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(Z); - Escaped 1 characters to Z.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(FraktionsID); - Escaped 11 characters to FraktionsID.[12:59:33] >> mysql_query( Connection handle: 1 )[12:59:33] CMySQLHandler::Query(SELECT Z FROM fraktionscars WHERE FraktionsID = '0') - Successfully executed.[12:59:33] >> mysql_store_result( Connection handle: 1 )[12:59:33] CMySQLHandler::StoreResult() - Result was stored.[12:59:33] >> mysql_fetch_float( Connection handle: 1 )[12:59:33] >> mysql_free_result( Connection handle: 1 )[12:59:33] CMySQLHandler::FreeResult() - Result was successfully free'd.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(fraktionscars); - Escaped 13 characters to fraktionscars.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(A); - Escaped 1 characters to A.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(FraktionsID); - Escaped 11 characters to FraktionsID.[12:59:33] >> mysql_query( Connection handle: 1 )[12:59:33] CMySQLHandler::Query(SELECT A FROM fraktionscars WHERE FraktionsID = '0') - Successfully executed.[12:59:33] >> mysql_store_result( Connection handle: 1 )[12:59:33] CMySQLHandler::StoreResult() - Result was stored.[12:59:33] >> mysql_fetch_float( Connection handle: 1 )[12:59:33] >> mysql_free_result( Connection handle: 1 )[12:59:33] CMySQLHandler::FreeResult() - Result was successfully free'd.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(fraktionscars); - Escaped 13 characters to fraktionscars.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(Color1); - Escaped 6 characters to Color1.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(FraktionsID); - Escaped 11 characters to FraktionsID.[12:59:33] >> mysql_query( Connection handle: 1 )[12:59:33] CMySQLHandler::Query(SELECT `Color1` FROM `fraktionscars` WHERE `FraktionsID` = '0') - Successfully executed.[12:59:33] >> mysql_store_result( Connection handle: 1 )[12:59:33] CMySQLHandler::StoreResult() - Result was stored.[12:59:33] >> mysql_fetch_int( Connection handle: 1 )[12:59:33] >> mysql_free_result( Connection handle: 1 )[12:59:33] CMySQLHandler::FreeResult() - Result was successfully free'd.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(fraktionscars); - Escaped 13 characters to fraktionscars.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(Color2); - Escaped 6 characters to Color2.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(FraktionsID); - Escaped 11 characters to FraktionsID.[12:59:33] >> mysql_query( Connection handle: 1 )[12:59:33] CMySQLHandler::Query(SELECT `Color2` FROM `fraktionscars` WHERE `FraktionsID` = '0') - Successfully executed.[12:59:33] >> mysql_store_result( Connection handle: 1 )[12:59:33] CMySQLHandler::StoreResult() - Result was stored.[12:59:33] >> mysql_fetch_int( Connection handle: 1 )[12:59:33] >> mysql_free_result( Connection handle: 1 )[12:59:33] CMySQLHandler::FreeResult() - Result was successfully free'd.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(fraktionscars); - Escaped 13 characters to fraktionscars.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(ZiviCar); - Escaped 7 characters to ZiviCar.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(FraktionsID); - Escaped 11 characters to FraktionsID.[12:59:33] >> mysql_query( Connection handle: 1 )[12:59:33] CMySQLHandler::Query(SELECT `ZiviCar` FROM `fraktionscars` WHERE `FraktionsID` = '0') - Successfully executed.[12:59:33] >> mysql_store_result( Connection handle: 1 )[12:59:33] CMySQLHandler::StoreResult() - Result was stored.[12:59:33] >> mysql_fetch_int( Connection handle: 1 )[12:59:33] >> mysql_free_result( Connection handle: 1 )[12:59:33] CMySQLHandler::FreeResult() - Result was successfully free'd.
ich haffe mir kann jemand helfen