Also das else kann ja auch weg bleiben stimmt, aber es klappt immer noch nicht Werde mir mal kurz den ganzen Prozess printen lassen
edit: Hab's hinbekommen, nur ich habe nun noch ein Problem wenn ich mein Auto modifiziere, dann speichert er das nicht. Es ist auch ein Error da in der log. Hier mal der Error:
[11:53:31] CMySQLHandler::Query(UPADTE `pAutos` SET `aColor1` = '2' WHERE `aOwner` = 'ChaoZz__' AND `aCarkey` = '') - An error has occured. (Error ID: 1064, You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UPADTE `pAutos` SET `aColor1` = '2' WHERE `aOwner` = 'ChaoZz__' AND `aCarkey` = ' at line 1)
[11:53:31] >> mysql_query( Connection handle: 1 )
[11:53:31] CMySQLHandler::Query(UPADTE `pAutos` SET `aColor2` = '0' WHERE `aOwner` = 'ChaoZz__' AND `aCarkey` = '') - An error has occured. (Error ID: 1064, You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UPADTE `pAutos` SET `aColor2` = '0' WHERE `aOwner` = 'ChaoZz__' AND `aCarkey` = ' at line 1)
[11:53:32] >> mysql_query( Connection handle: 1 )
[11:53:32] CMySQLHandler::Query(UPADTE `pAutos` SET `aSpoiler` = '0' WHERE `aOwner` = 'ChaoZz__' AND `aCarkey` = '') - An error has occured. (Error ID: 1064, You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UPADTE `pAutos` SET `aSpoiler` = '0' WHERE `aOwner` = 'ChaoZz__' AND `aCarkey` =' at line 1)
[11:53:32] >> mysql_query( Connection handle: 1 )
[11:53:32] CMySQLHandler::Query(UPADTE `pAutos` SET `aHood` = '0' WHERE `aOwner` = 'ChaoZz__' AND `aCarkey` = '') - An error has occured. (Error ID: 1064, You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UPADTE `pAutos` SET `aHood` = '0' WHERE `aOwner` = 'ChaoZz__' AND `aCarkey` = ''' at line 1)
[11:53:32] >> mysql_query( Connection handle: 1 )
[11:53:32] CMySQLHandler::Query(UPADTE `pAutos` SET `aRoof` = '0' WHERE `aOwner` = 'ChaoZz__' AND `aCarkey` = '') - An error has occured. (Error ID: 1064, You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UPADTE `pAutos` SET `aRoof` = '0' WHERE `aOwner` = 'ChaoZz__' AND `aCarkey` = ''' at line 1)
[11:53:32] >> mysql_query( Connection handle: 1 )
[11:53:32] CMySQLHandler::Query(UPADTE `pAutos` SET `aSideskirt` = '0' WHERE `aOwner` = 'ChaoZz__' AND `aCarkey` = '') - An error has occured. (Error ID: 1064, You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UPADTE `pAutos` SET `aSideskirt` = '0' WHERE `aOwner` = 'ChaoZz__' AND `aCarkey`' at line 1)
[11:53:32] >> mysql_query( Connection handle: 1 )
[11:53:32] CMySQLHandler::Query(UPADTE `pAutos` SET `aLamps` = '0' WHERE `aOwner` = 'ChaoZz__' AND `aCarkey` = '') - An error has occured. (Error ID: 1064, You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UPADTE `pAutos` SET `aLamps` = '0' WHERE `aOwner` = 'ChaoZz__' AND `aCarkey` = '' at line 1)
[11:53:32] >> mysql_query( Connection handle: 1 )
[11:53:32] CMySQLHandler::Query(UPADTE `pAutos` SET `aNitro` = '0' WHERE `aOwner` = 'ChaoZz__' AND `aCarkey` = '') - An error has occured. (Error ID: 1064, You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UPADTE `pAutos` SET `aNitro` = '0' WHERE `aOwner` = 'ChaoZz__' AND `aCarkey` = '' at line 1)
[11:53:32] >> mysql_query( Connection handle: 1 )
[11:53:32] CMySQLHandler::Query(UPADTE `pAutos` SET `aExhaust` = '0' WHERE `aOwner` = 'ChaoZz__' AND `aCarkey` = '') - An error has occured. (Error ID: 1064, You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UPADTE `pAutos` SET `aExhaust` = '0' WHERE `aOwner` = 'ChaoZz__' AND `aCarkey` =' at line 1)
[11:53:32] >> mysql_query( Connection handle: 1 )
[11:53:32] CMySQLHandler::Query(UPADTE `pAutos` SET `aWheels` = '0' WHERE `aOwner` = 'ChaoZz__' AND `aCarkey` = '') - An error has occured. (Error ID: 1064, You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UPADTE `pAutos` SET `aWheels` = '0' WHERE `aOwner` = 'ChaoZz__' AND `aCarkey` = ' at line 1)
[11:53:32] >> mysql_query( Connection handle: 1 )
[11:53:32] CMySQLHandler::Query(UPADTE `pAutos` SET `aStereo` = '0' WHERE `aOwner` = 'ChaoZz__' AND `aCarkey` = '') - An error has occured. (Error ID: 1064, You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UPADTE `pAutos` SET `aStereo` = '0' WHERE `aOwner` = 'ChaoZz__' AND `aCarkey` = ' at line 1)
[11:53:32] >> mysql_query( Connection handle: 1 )
[11:53:32] CMySQLHandler::Query(UPADTE `pAutos` SET `aHydraulics` = '0' WHERE `aOwner` = 'ChaoZz__' AND `aCarkey` = '') - An error has occured. (Error ID: 1064, You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UPADTE `pAutos` SET `aHydraulics` = '0' WHERE `aOwner` = 'ChaoZz__' AND `aCarkey' at line 1)
[11:53:32] >> mysql_query( Connection handle: 1 )
[11:53:32] CMySQLHandler::Query(UPADTE `pAutos` SET `aFrontBumper` = '0' WHERE `aOwner` = 'ChaoZz__' AND `aCarkey` = '') - An error has occured. (Error ID: 1064, You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UPADTE `pAutos` SET `aFrontBumper` = '0' WHERE `aOwner` = 'ChaoZz__' AND `aCarke' at line 1)
[11:53:32] >> mysql_query( Connection handle: 1 )
[11:53:32] CMySQLHandler::Query(UPADTE `pAutos` SET `aRearBumper` = '0' WHERE `aOwner` = 'ChaoZz__' AND `aCarkey` = '') - An error has occured. (Error ID: 1064, You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UPADTE `pAutos` SET `aRearBumper` = '0' WHERE `aOwner` = 'ChaoZz__' AND `aCarkey' at line 1)
[11:53:32] >> mysql_query( Connection handle: 1 )
[11:53:32] CMySQLHandler::Query(UPADTE `pAutos` SET `aVentRight` = '0' WHERE `aOwner` = 'ChaoZz__' AND `aCarkey` = '') - An error has occured. (Error ID: 1064, You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UPADTE `pAutos` SET `aVentRight` = '0' WHERE `aOwner` = 'ChaoZz__' AND `aCarkey`' at line 1)
[11:53:32] >> mysql_query( Connection handle: 1 )
[11:53:32] CMySQLHandler::Query(UPADTE `pAutos` SET `aVentLeft` = '0' WHERE `aOwner` = 'ChaoZz__' AND `aCarkey` = '') - An error has occured. (Error ID: 1064, You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UPADTE `pAutos` SET `aVentLeft` = '0' WHERE `aOwner` = 'ChaoZz__' AND `aCarkey` ' at line 1)
[11:53:35] >> mysql_query( Connection handle: 1 )
Alles anzeigen
Bei aCarkey ist nichts hier mal der Code von OnVehicleMod:
new query[512];
format(query,sizeof query,"UPADTE `pAutos` SET `aSpoiler` = '%i' WHERE `aOwner` = '%s' AND `aCarkey` = '%s'",GetVehicleComponentInSlot(Spielercar[p][i],0),PlayerName(p),i);
mysql_query(query);
format(query,sizeof query,"UPADTE `pAutos` SET `aHood` = '%i' WHERE `aOwner` = '%s' AND `aCarkey` = '%s'",GetVehicleComponentInSlot(Spielercar[p][i],1),PlayerName(p),i);
mysql_query(query);
format(query,sizeof query,"UPADTE `pAutos` SET `aRoof` = '%i' WHERE `aOwner` = '%s' AND `aCarkey` = '%s'",GetVehicleComponentInSlot(Spielercar[p][i],2),PlayerName(p),i);
mysql_query(query);
format(query,sizeof query,"UPADTE `pAutos` SET `aSideskirt` = '%i' WHERE `aOwner` = '%s' AND `aCarkey` = '%s'",GetVehicleComponentInSlot(Spielercar[p][i],3),PlayerName(p),i);
mysql_query(query);
format(query,sizeof query,"UPADTE `pAutos` SET `aLamps` = '%i' WHERE `aOwner` = '%s' AND `aCarkey` = '%s'",GetVehicleComponentInSlot(Spielercar[p][i],4),PlayerName(p),i);
mysql_query(query);
format(query,sizeof query,"UPADTE `pAutos` SET `aNitro` = '%i' WHERE `aOwner` = '%s' AND `aCarkey` = '%s'",GetVehicleComponentInSlot(Spielercar[p][i],5),PlayerName(p),i);
mysql_query(query);
format(query,sizeof query,"UPADTE `pAutos` SET `aExhaust` = '%i' WHERE `aOwner` = '%s' AND `aCarkey` = '%s'",GetVehicleComponentInSlot(Spielercar[p][i],6),PlayerName(p),i);
mysql_query(query);
format(query,sizeof query,"UPADTE `pAutos` SET `aWheels` = '%i' WHERE `aOwner` = '%s' AND `aCarkey` = '%s'",GetVehicleComponentInSlot(Spielercar[p][i],7),PlayerName(p),i);
mysql_query(query);
format(query,sizeof query,"UPADTE `pAutos` SET `aStereo` = '%i' WHERE `aOwner` = '%s' AND `aCarkey` = '%s'",GetVehicleComponentInSlot(Spielercar[p][i],8),PlayerName(p),i);
mysql_query(query);
format(query,sizeof query,"UPADTE `pAutos` SET `aHydraulics` = '%i' WHERE `aOwner` = '%s' AND `aCarkey` = '%s'",GetVehicleComponentInSlot(Spielercar[p][i],9),PlayerName(p),i);
mysql_query(query);
format(query,sizeof query,"UPADTE `pAutos` SET `aFrontBumper` = '%i' WHERE `aOwner` = '%s' AND `aCarkey` = '%s'",GetVehicleComponentInSlot(Spielercar[p][i],10),PlayerName(p),i);
mysql_query(query);
format(query,sizeof query,"UPADTE `pAutos` SET `aRearBumper` = '%i' WHERE `aOwner` = '%s' AND `aCarkey` = '%s'",GetVehicleComponentInSlot(Spielercar[p][i],11),PlayerName(p),i);
mysql_query(query);
format(query,sizeof query,"UPADTE `pAutos` SET `aVentRight` = '%i' WHERE `aOwner` = '%s' AND `aCarkey` = '%s'",GetVehicleComponentInSlot(Spielercar[p][i],12),PlayerName(p),i);
mysql_query(query);
format(query,sizeof query,"UPADTE `pAutos` SET `aVentLeft` = '%i' WHERE `aOwner` = '%s' AND `aCarkey` = '%s'",GetVehicleComponentInSlot(Spielercar[p][i],13),PlayerName(p),i);
mysql_query(query);