stock SaveOnlyOneFveh(fv)
{
new mainquery[1024],query[1024];
if(Fahrzeug[fv][modelid] != 0)
{
GetVehiclePos(Fahrzeug[fv][Vehicle],Fahrzeug[fv][posx],Fahrzeug[fv][posy],Fahrzeug[fv][posz]);
GetVehicleHealth(Fahrzeug[fv][Vehicle],Fahrzeug[fv][HP]);
format(query,sizeof(query),"UPDATE "#SQL_TAG"_fraktion_vehicles SET Fraktion='%d',Rang='%d',modelid='%d',Farbe1='%d',Farbe2='%d',Paintjob='%d',HP='%f',posx='%f',posy='%f',posz='%f',posa='%f',Abgeschlossen='%d',Abgeschleppt='%d',Interior='%d',VirtualWorld='%d',",
Fahrzeug[fv][Fraktion],Fahrzeug[fv][FraktionsRang],Fahrzeug[fv][modelid],Fahrzeug[fv][Colour1],Fahrzeug[fv][Colour2],Fahrzeug[fv][Paintjob],Fahrzeug[fv][HP],Fahrzeug[fv][posx],Fahrzeug[fv][posy],Fahrzeug[fv][posz],Fahrzeug[fv][posa],Fahrzeug[fv][Abgeschlossen],vFahrzeug[Fahrzeug[fv][Vehicle]][Abgeschleppt],Fahrzeug[fv][Interior],Fahrzeug[fv][VirtualWorld]);
strcat(mainquery,query);
format(query,sizeof(query),"AbgeschlepptPreis='%d',AbgeschlepptGrund='%s',Nummernschild='%s',Neon='%d',Spoiler='%d',Hood='%d',Roof='%d',Sideskirt='%d',Lamps='%d',Nitro='%d',Exhaust='%d',Wheels='%d',Stereo='%d',Hydraulics='%d',FrontBumper='%d',RearBumper='%d',VentRight='%d',VentLeft='%d',",
vFahrzeug[Fahrzeug[fv][Vehicle]][AbgeschlepptPreis],vFahrzeug[Fahrzeug[fv][Vehicle]][AbgeschlepptGrund],Fahrzeug[fv][Nummernschild],vFahrzeug[Fahrzeug[fv][Vehicle]][Neon],Fahrzeug[fv][Hood],Fahrzeug[fv][Roof],Fahrzeug[fv][Sideskirt],Fahrzeug[fv][Lamps],Fahrzeug[fv][Nitro],Fahrzeug[fv][Exhaust],Fahrzeug[fv][Wheels],
Fahrzeug[fv][Stereo],Fahrzeug[fv][Hydraulics],Fahrzeug[fv][FrontBumper],Fahrzeug[fv][RearBumper],Fahrzeug[fv][VentRight],Fahrzeug[fv][VentLeft]);
strcat(mainquery,query);
format(query,sizeof(query),"KaufPreis='%d',Motorschaden='%d',FailGas='%d',Tank='%f',Kilometerstand='%d',KofferraumGanja='%d',KofferraumKokain='%d',KofferraumMaterials='%d',KofferraumOpium='%d',KofferraumSpice='%d',KofferraumLunchpakete='%d',KofferraumC4='%d',KofferraumWerkzeugkasten='%d',KofferraumBenzinkanister='%d',Handbremse='%d' WHERE id='%d'",
Fahrzeug[fv][Preis],MotorDown[Fahrzeug[fv][Vehicle]],vFahrzeug[Fahrzeug[fv][Vehicle]][FailGas],vFahrzeug[Fahrzeug[fv][Vehicle]][Tank],vFahrzeug[Fahrzeug[fv][Vehicle]][Kilometer],vFahrzeug[Fahrzeug[fv][Vehicle]][KofferraumGanja],vFahrzeug[Fahrzeug[fv][Vehicle]][KofferraumKokain],vFahrzeug[Fahrzeug[fv][Vehicle]][KofferraumMaterials],
vFahrzeug[Fahrzeug[fv][Vehicle]][KofferraumOpium],vFahrzeug[Fahrzeug[fv][Vehicle]][KofferraumSpice],vFahrzeug[Fahrzeug[fv][Vehicle]][KofferraumLunchpakete],vFahrzeug[Fahrzeug[fv][Vehicle]][KofferraumC4],vFahrzeug[Fahrzeug[fv][Vehicle]][KofferraumWerkzeugkasten],vFahrzeug[Fahrzeug[fv][Vehicle]][KofferraumBenzinkanister],vFahrzeug[Fahrzeug[fv][Vehicle]][Handbremse],Fahrzeug[fv][Carkey]);
strcat(mainquery,query);
mysql_function_query(MySqlConnection,mainquery,false,"","");
strdel(mainquery,0,sizeof(mainquery));
strdel(query,0,sizeof(query));
printf("SERVER » Fraktionsfahrzeug %d gespeichert",fv);
}
return 1;
}
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "id", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "Fraktion", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "modelid", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "Farbe1", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "Farbe2", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "Paintjob", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "HP", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "posx", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "posy", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "posz", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "posa", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "Abgeschlossen", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "Interior", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "VirtualWorld", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "Nummernschild", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "Spoiler", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "Wheels", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "Nitro", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "Roof", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "Hood", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "Sideskirt", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "Lamps", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "Exhaust", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "Stereo", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "Hydraulics", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "VentRight", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "VentLeft", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "FrontBumper", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "RearBumper", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "KaufPreis", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "FraktionsRang", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "Abgeschleppt", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "AbgeschlepptPreis", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "AbgeschlepptGrund", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "Neon", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "Motorschaden", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "FailGas", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "Tank", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "Kilometerstand", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "KofferraumGanja", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "KofferraumKokain", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "KofferraumMaterials", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "KofferraumOpium", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "KofferraumSpice", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "KofferraumLunchpakete", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "KofferraumC4", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "KofferraumWerkzeugkasten", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "KofferraumBenzinkanister", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] cache_get_field_content - row: 3, field_name: "Handbremse", connection: 1, max_len: 64
[20:17:54] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('3')
[20:17:54] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called
[20:17:54] [DEBUG] Calling callback "OnQueryFinish"..
Alles anzeigen