Beiträge von MrRampage67

    Nabend community,


    also hier :


    PlayerCar[playerid][PlayerKey[playerid]][CarId]=Spectating[playerid][0];
    PlayerCar[playerid][PlayerKey[playerid]][CarModel]=Kaufliste[Spectating[playerid][0]][Modelid];
    PlayerCar[playerid][PlayerKey[playerid]][CarPos_x]=Autospawns[autohaus][CarPos_x];
    PlayerCar[playerid][PlayerKey[playerid]][CarPos_y]=Autospawns[autohaus][CarPos_y];
    PlayerCar[playerid][PlayerKey[playerid]][CarPos_z]=Autospawns[autohaus][CarPos_z];
    PlayerCar[playerid][PlayerKey[playerid]][CarRotate]=Autospawns[autohaus][CarRotate];
    PlayerCar[playerid][PlayerKey[playerid]][CarNitro]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarHyd]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarWheel]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarAusp]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarSideL]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarSideR]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarFB]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarRB]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarSpoiler]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarRoof]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarHood]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarVents]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarLamps]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarPJ]=-1;
    PlayerCar[playerid][PlayerKey[playerid]][CarC1]=1;
    PlayerCar[playerid][PlayerKey[playerid]][CarC2]=1;
    PlayerCar[playerid][PlayerKey[playerid]][CarPreis]=preis/2;
    PlayerCar[playerid][PlayerKey[playerid]][CarTank]=Kaufliste[Spectating[playerid][0]][Tank];
    PlayerCar[playerid][PlayerKey[playerid]][CarMaxTank]=Kaufliste[Spectating[playerid][0]][Tank];
    PlayerCar[playerid][PlayerKey[playerid]][CarState]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarId] = CreateVehicle(PlayerCar[playerid][PlayerKey[playerid]][CarModel],PlayerCar[playerid][PlayerKey[playerid]][CarPos_x],PlayerCar[playerid][PlayerKey[playerid]][CarPos_y],PlayerCar[playerid][PlayerKey[playerid]][CarPos_z],PlayerCar[playerid][PlayerKey[playerid]][CarRotate],PlayerCar[playerid][PlayerKey[playerid]][CarC1],PlayerCar[playerid][PlayerKey[playerid]][CarC2], -1);/*vehicle spawn*/
    PlayerCar[playerid][PlayerKey[playerid]][CarAbgeschleppt]=0;


    format(accFormat, sizeof(accFormat), "INSERT INTO `autos` (Besitzer,CarKey,CarId,CarModel,CarPos_x,CarPos_y,CarPos_z,CarRotate,CarNitro,CarHyd,CarWheel,CarAusp,CarSideL,CarSideR,CarFB,CarRB,CarSpoiler,CarRoof,CarVents,CarLamps,CarPJ,CarC1,CarC2,Preis,CarTank,CarMaxTank,CarState)VALUES('%s', '%d', '%d', '%d', '%f', '%f', '%f', '%f', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d')",
    Spielername(playerid),
    PlayerKey[playerid],
    PlayerCar[playerid][PlayerKey[playerid]][CarId],
    PlayerCar[playerid][PlayerKey[playerid]][CarModel],
    PlayerCar[playerid][PlayerKey[playerid]][CarPos_x],
    PlayerCar[playerid][PlayerKey[playerid]][CarPos_y],
    PlayerCar[playerid][PlayerKey[playerid]][CarPos_z],
    PlayerCar[playerid][PlayerKey[playerid]][CarRotate],
    PlayerCar[playerid][PlayerKey[playerid]][CarNitro],
    PlayerCar[playerid][PlayerKey[playerid]][CarHyd],
    PlayerCar[playerid][PlayerKey[playerid]][CarWheel],
    PlayerCar[playerid][PlayerKey[playerid]][CarAusp],
    PlayerCar[playerid][PlayerKey[playerid]][CarSideL],
    PlayerCar[playerid][PlayerKey[playerid]][CarSideR],
    PlayerCar[playerid][PlayerKey[playerid]][CarFB],
    PlayerCar[playerid][PlayerKey[playerid]][CarRB],
    PlayerCar[playerid][PlayerKey[playerid]][CarSpoiler],
    PlayerCar[playerid][PlayerKey[playerid]][CarRoof],
    PlayerCar[playerid][PlayerKey[playerid]][CarHood],
    PlayerCar[playerid][PlayerKey[playerid]][CarVents],
    PlayerCar[playerid][PlayerKey[playerid]][CarLamps],
    PlayerCar[playerid][PlayerKey[playerid]][CarPJ],
    PlayerCar[playerid][PlayerKey[playerid]][CarC1],
    PlayerCar[playerid][PlayerKey[playerid]][CarC2],
    PlayerCar[playerid][PlayerKey[playerid]][CarPreis],
    PlayerCar[playerid][PlayerKey[playerid]][CarTank],
    PlayerCar[playerid][PlayerKey[playerid]][CarMaxTank],
    PlayerCar[playerid][PlayerKey[playerid]][CarState],
    PlayerCar[playerid][PlayerKey[playerid]][CarAbgeschleppt]);

    mysql_query(accFormat);

    //print(accFormat);
    SetVehicleNumberPlate(PlayerCar[playerid][PlayerKey[playerid]][CarId], SpielerName(playerid));
    RemovePlayerFromVehicle(playerid);
    FreezePlayer(playerid);
    UnfreezePlayer(playerid);
    PlayerHaveCar[playerid][PlayerKey[playerid]] = 1;


    Also wenn man ausm Autohaus sich Fahrzeuge kauft ist alles okey..
    Doch nachdem Relogen verschwinden die gekaufen Fahrzeuge einfach..
    Bitte um hilfe.. :S


    Mit freundlichen Grüßen
    MrRampage