habs anders gelöst aber hab nen neues problem...
er speichert nur 2 sachen...
hier die log, und der pawn-code
[tabmenu]
[tab='MySQL LOG']
[20:52:11] CMySQLHandler::Query(UPDATE `PlayerCar` SET `Modell` = 541 WHERE `Fahrzeugnr` = 1 AND `Besitzer` = 'Aikochan') - Successfully executed.
[20:52:11] >> mysql_format( Connection handle: 1 )
[20:52:11] CMySQLHandler::EscapeString(Aikochan); - Escaped 8 characters to Aikochan.
[20:52:11] >> mysql_query( Connection handle: 1 )
[20:52:11] CMySQLHandler::Query(UPDATE `PlayerCar` SET `PosX` = 1461.900024 WHERE `Fahrzeugnr` = 1 AND `Besitzer` = 'Aikochan') - Successfully executed.
[20:52:11] >> mysql_format( Connection handle: 1 )
[tab='Pawn Code']
if(Acc[playerid][Auto1] == 1)
{
//i = 0;
mysql_format(1,query,"UPDATE `PlayerCar` SET `Modell` = %d WHERE `Fahrzeugnr` = 1 AND `Besitzer` = '%e'",a_PCar[playerid][Modell],a_PCar[playerid][Besitzer]); mysql_query(query);
mysql_format(1,query,"UPDATE `PlayerCar` SET `PosX` = %f WHERE `Fahrzeugnr` = 1 AND `Besitzer` = '%e'",a_PCar[playerid][PosX],a_PCar[playerid][Besitzer]); mysql_query(query);
mysql_format(1,query,"UPDATE `PlayerCar` SET `PosY` = %f WHERE `Fahrzeugnr` = 1 AND `Besitzer` = '%e'",a_PCar[playerid][PosY],a_PCar[playerid][Besitzer]); mysql_query(query);
mysql_format(1,query,"UPDATE `PlayerCar` SET `PosZ` = %f WHERE `Fahrzeugnr` = 1 AND `Besitzer` = '%e'",a_PCar[playerid][PosZ],a_PCar[playerid][Besitzer]); mysql_query(query);
mysql_format(1,query,"UPDATE `PlayerCar` SET `Rotation` = %f WHERE `Fahrzeugnr` = 1 AND `Besitzer` = '%e'",a_PCar[playerid][Rotation],a_PCar[playerid][Besitzer]); mysql_query(query);
mysql_format(1,query,"UPDATE `PlayerCar` SET `Reppreis` = %d WHERE `Fahrzeugnr` = 1 AND `Besitzer` = '%e'",a_PCar[playerid][Reppreis],a_PCar[playerid][Besitzer]); mysql_query(query);
mysql_format(1,query,"UPDATE `PlayerCar` SET `Sellpreis` = %d WHERE `Fahrzeugnr` = 1 AND `Besitzer` = '%e'",a_PCar[playerid][Sellpreis],a_PCar[playerid][Besitzer]); mysql_query(query);
mysql_format(1,query,"UPDATE `PlayerCar` SET `Zerstoert` = %d WHERE `Fahrzeugnr` = 1 AND `Besitzer` = '%e'",a_PCar[playerid][Zerstoert],a_PCar[playerid][Besitzer]); mysql_query(query);
mysql_format(1,query,"UPDATE `PlayerCar` SET `Nummernschild` = %s WHERE `Fahrzeugnr` = 1 AND `Besitzer` = '%e'",a_PCar[playerid][Nummernschild],a_PCar[playerid][Besitzer]); mysql_query(query);
mysql_format(1,query,"UPDATE `PlayerCar` SET `Schluessel1` = %s WHERE `Fahrzeugnr` = 1 AND `Besitzer` = '%e'",a_PCar[playerid][Schluessel1],a_PCar[playerid][Besitzer]); mysql_query(query);
mysql_format(1,query,"UPDATE `PlayerCar` SET `Schluessel2` = %s WHERE `Fahrzeugnr` = 1 AND `Besitzer` = '%e'",a_PCar[playerid][Schluessel2],a_PCar[playerid][Besitzer]); mysql_query(query);
mysql_format(1,query,"UPDATE `PlayerCar` SET `Schluessel3` = %s WHERE `Fahrzeugnr` = 1 AND `Besitzer` = '%e'",a_PCar[playerid][Schluessel3],a_PCar[playerid][Besitzer]); mysql_query(query);
mysql_format(1,query,"UPDATE `PlayerCar` SET `Abgeschlossen` = %d WHERE `Fahrzeugnr` = 1 AND `Besitzer` = '%e'",a_PCar[playerid][Abgeschlossen],a_PCar[playerid][Besitzer]); mysql_query(query);
mysql_format(1,query,"UPDATE `PlayerCar` SET `Super` = %f WHERE `Fahrzeugnr` = 1 AND `Besitzer` = '%e'",Super[a_PVehicle[playerid]],a_PCar[playerid][Besitzer]); mysql_query(query);
mysql_format(1,query,"UPDATE `PlayerCar` SET `Kerosin` = %f WHERE `Fahrzeugnr` = 1 AND `Besitzer` = '%e'",Kerosin[a_PVehicle[playerid]],a_PCar[playerid][Besitzer]); mysql_query(query);
mysql_format(1,query,"UPDATE `PlayerCar` SET `Farbe1` = %d WHERE `Fahrzeugnr` = 1 AND `Besitzer` = '%e'",a_PCar[playerid][Farbe1],a_PCar[playerid][Besitzer]); mysql_query(query);
mysql_format(1,query,"UPDATE `PlayerCar` SET `Farbe2` = %d WHERE `Fahrzeugnr` = 1 AND `Besitzer` = '%e'",a_PCar[playerid][Farbe2],a_PCar[playerid][Besitzer]); mysql_query(query);
mysql_format(1,query,"UPDATE `PlayerCar` SET `Paintjob` = %d WHERE `Fahrzeugnr` = 1 AND `Besitzer` = '%e'",a_PCar[playerid][Paintjob],a_PCar[playerid][Besitzer]); mysql_query(query);
mysql_format(1,query,"UPDATE `PlayerCar` SET `Spoiler` = %d WHERE `Fahrzeugnr` = 1 AND `Besitzer` = '%e'",GetVehicleComponentInSlot(a_PVehicle[playerid],0),a_PCar[playerid][Besitzer]); mysql_query(query);
mysql_format(1,query,"UPDATE `PlayerCar` SET `Hood` = %d WHERE `Fahrzeugnr` = 1 AND `Besitzer` = '%e'",GetVehicleComponentInSlot(a_PVehicle[playerid],1),a_PCar[playerid][Besitzer]); mysql_query(query);
mysql_format(1,query,"UPDATE `PlayerCar` SET `Roof` = %d WHERE `Fahrzeugnr` = 1 AND `Besitzer` = '%e'",GetVehicleComponentInSlot(a_PVehicle[playerid],2),a_PCar[playerid][Besitzer]); mysql_query(query);
mysql_format(1,query,"UPDATE `PlayerCar` SET `SideskirtR` = %d WHERE `Fahrzeugnr` = 1 AND `Besitzer` = '%e'",a_PCar[playerid][SideskirtR],a_PCar[playerid][Besitzer]); mysql_query(query);
mysql_format(1,query,"UPDATE `PlayerCar` SET `SideskirtL` = %d WHERE `Fahrzeugnr` = 1 AND `Besitzer` = '%e'",a_PCar[playerid][SideskirtL],a_PCar[playerid][Besitzer]); mysql_query(query);
mysql_format(1,query,"UPDATE `PlayerCar` SET `Lamps` = %d WHERE `Fahrzeugnr` = 1 AND `Besitzer` = '%e'",GetVehicleComponentInSlot(a_PVehicle[playerid],4),a_PCar[playerid][Besitzer]); mysql_query(query);
mysql_format(1,query,"UPDATE `PlayerCar` SET `Nitro` = %d WHERE `Fahrzeugnr` = 1 AND `Besitzer` = '%e'",GetVehicleComponentInSlot(a_PVehicle[playerid],5),a_PCar[playerid][Besitzer]); mysql_query(query);
mysql_format(1,query,"UPDATE `PlayerCar` SET `Exhaust` = %d WHERE `Fahrzeugnr` = 1 AND `Besitzer` = '%e'",GetVehicleComponentInSlot(a_PVehicle[playerid],6),a_PCar[playerid][Besitzer]); mysql_query(query);
mysql_format(1,query,"UPDATE `PlayerCar` SET `Wheels` = %d WHERE `Fahrzeugnr` = 1 AND `Besitzer` = '%e'",GetVehicleComponentInSlot(a_PVehicle[playerid],7),a_PCar[playerid][Besitzer]); mysql_query(query);
mysql_format(1,query,"UPDATE `PlayerCar` SET `Stereo` = %d WHERE `Fahrzeugnr` = 1 AND `Besitzer` = '%e'",GetVehicleComponentInSlot(a_PVehicle[playerid],8),a_PCar[playerid][Besitzer]); mysql_query(query);
mysql_format(1,query,"UPDATE `PlayerCar` SET `Hydraulics` = %d WHERE `Fahrzeugnr` = 1 AND `Besitzer` = '%e'",GetVehicleComponentInSlot(a_PVehicle[playerid],9),a_PCar[playerid][Besitzer]); mysql_query(query);
mysql_format(1,query,"UPDATE `PlayerCar` SET `FrontBumper` = %d WHERE `Fahrzeugnr` = 1 AND `Besitzer` = '%e'",GetVehicleComponentInSlot(a_PVehicle[playerid],10),a_PCar[playerid][Besitzer]); mysql_query(query);
mysql_format(1,query,"UPDATE `PlayerCar` SET `RearBumper` = %d WHERE `Fahrzeugnr` = 1 AND `Besitzer` = '%e'",GetVehicleComponentInSlot(a_PVehicle[playerid],11),a_PCar[playerid][Besitzer]); mysql_query(query);
mysql_format(1,query,"UPDATE `PlayerCar` SET `VentRight` = %d WHERE `Fahrzeugnr` = 1 AND `Besitzer` = '%e'",GetVehicleComponentInSlot(a_PVehicle[playerid],12),a_PCar[playerid][Besitzer]); mysql_query(query);
mysql_format(1,query,"UPDATE `PlayerCar` SET `VentLeft` = %d WHERE `Fahrzeugnr` = 1 AND `Besitzer` = '%e'",GetVehicleComponentInSlot(a_PVehicle[playerid],13),a_PCar[playerid][Besitzer]); mysql_query(query);
}
[/tabmenu]
MfG