Beiträge von Dr. Frauenarzt

    Dann ist das auch ein Float.
    Mache es so:
    format(string, sizeof(string), "~b~Tank: ~w~%0.1f/%0.1f ~b~L", Vehicle[vehicleid][vehFuel], VehicleData[model-400][vehMaxTank]);

    Danke hat geklappt, jetzt hab ich ein anderes problem jedes Fahrzeug hat Tank außer die Taxis,


    wie stelle ich ein das taxis unendlich tank haben und bei Tank: - steht?


    stock UpdatePlayerTacho(playerid)
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    new string[128],
    vehicleid,
    model,
    Float:CarHealth,
    CarHealthIni,
    Float:TankInProzent,
    Float:Tank;
    vehicleid = GetPlayerVehicleID(playerid);
    model = GetVehicleModel(vehicleid);
    //GetVehiclePos(vehicleid, Vehicle[vehicleid][vehPosX2], Vehicle[vehicleid][vehPosY2], Vehicle[vehicleid][vehPosZ2]);
    if(IsAFahrrad(model))return 1;
    TankInProzent = VehicleData[GetVehicleModel(vehicleid)-400][vehMaxTank]/100;
    Tank = Vehicle[vehicleid][vehFuel];
    GetVehicleHealth(vehicleid, CarHealth);
    CarHealthIni = floatround((CarHealth - 250.0) / 7.5, floatround_floor);
    if(CarHealthIni < 0) CarHealthIni = 0;
    format(string, sizeof(string), "~b~%s: ~w~%d%", VehicleName[GetVehicleModel(vehicleid)-400],CarHealthIni);
    PlayerTextDrawSetString(playerid, pTextSpeedo[playerid][3], string);
    format(string, sizeof(string), "%d km/h", GetVehicleSpeed(vehicleid));
    PlayerTextDrawSetString(playerid, pTextSpeedo[playerid][4], string);
    format(string, sizeof(string), "~b~KM-Stand:~w~ %.1f", Vehicle[vehicleid][vehKMStand]);
    PlayerTextDrawSetString(playerid, pTextSpeedo[playerid][2], string);
    new Float:position = 514.0;
    position += Tank/TankInProzent;
    PlayerTextDrawTextSize(playerid, pTextSpeedo[playerid][1], position, 0.0);
    if(Tank/TankInProzent >= 50 && Tank/TankInProzent <= 100){
    PlayerTextDrawBoxColor(playerid, pTextSpeedo[playerid][1], 828254308);
    }
    if(Tank/TankInProzent <= 49 && Tank/TankInProzent >= 25){
    PlayerTextDrawBoxColor(playerid, pTextSpeedo[playerid][1], -945203201);
    }
    if(Tank/TankInProzent >= 0 && Tank/TankInProzent <= 24){
    PlayerTextDrawBoxColor(playerid, pTextSpeedo[playerid][1], -1625941249);
    }
    PlayerTextDrawShow(playerid, pTextSpeedo[playerid][1]);
    format(string, sizeof(string), "~b~Tank: ~w~%d/%d ~b~L", floatround(Tank/TankInProzent));
    PlayerTextDrawSetString(playerid, pTextSpeedo[playerid][1], string);
    }
    return 1;
    }



    Habe eine andere frage,


    der Tank wird ja mit 100 L angezeigt. so aber ich möchte machen z.b 100.0/100 L


    Wie mache ich das.


    "Das ich jedes Auto einstellen kann wv Liter es haben soll


    case DIALOG_Taxi
    {
    if(response)
    {
    if(listitem == 0)
    {
    UpdateDynamic3DTextLabelText
    return 1;
    }
    if(listitem == 1)
    {
    RemovePlayerFromVehicle(playerid);
    return 1;
    }
    }
    }



    Ich habe noch eine Frage,


    Wen der Spieler jetzt z.b eingibt ihm dialog 0 sollte der



    strdel(DialogString, 0, sizeof(DialogString));
    format(DialogString, sizeof(DialogString), COLOR_HEX_WHITE"Du kannst nun den Preis festlegen, den die Fahrgäste jede 10 Sekunden bezahlen\nDer Preis muss mindestens 1$ und maximal 200$ sein.");
    ShowPlayerDialog(playerid, DIALOG_TAXI, DIALOG_STYLE_INPUT, "Taxi Company", DialogString, "Weiter", "Aussteigen");

    wider angezeigt werden wen er über 200$ geht auch wie kann ich das abfragen?

    Hey habe eine kleine frage.




    if(IsVehicleATaxi(vehicleid))
    {
    strdel(DialogString, 0, sizeof(DialogString));
    format(DialogString, sizeof(DialogString), COLOR_HEX_WHITE"Du kannst nun den Preis festlegen, den die Fahrgäste jede 10 Sekunden bezahlen\nDer Preis muss mindestens 1$ und maximal 200$ sein.");
    ShowPlayerDialog(playerid, DIALOG_TAXI, DIALOG_STYLE_INPUT, "Taxi Company", DialogString, "Weiter", "Aussteigen");
    }



    Unter was muss ich das packen habe das selber geschrieben wen der Spieler in IsVehicleATaxi steigt wen er drinnen sitzt das er den Dialog angezeigt bekommt


    case DIALOG_ATM_HANDY:
    {
    if(!response){
    strdel(DialogString, 0, sizeof(DialogString));
    format(DialogString, sizeof(DialogString), "Einzahlen\nAbheben\nHandyladekarte");
    ShowPlayerDialog(playerid, DIALOG_ATM, DIALOG_STYLE_LIST, "Bankautomat", DialogString, "Auswählen", "Schließen");
    return 1;
    }

    case DIALOG_ATM:
    {
    if(response)
    {
    if(listitem == 0) // Einzahlen
    {
    strdel(DialogString, 0, sizeof(DialogString));
    format(DialogString, sizeof(DialogString), COLOR_HEX_YELLOW"Dein Kontostand beträgt %d$\nGib hier den Betrag ein, den du Einzahlen möchtest.", Spieler[playerid][pBank]);
    ShowPlayerDialog(playerid, DIALOG_ATM_ANLEGEN, DIALOG_STYLE_INPUT, "Einzahlen", DialogString, "OK", "Abbrechen");
    return 1;
    }
    if(listitem == 1) // Abheben
    {
    strdel(DialogString, 0, sizeof(DialogString));
    format(DialogString, sizeof(DialogString), COLOR_HEX_YELLOW"Dein Kontostand beträgt %d$\nGib hier den Betrag ein, den du Auszahlen möchtest.", Spieler[playerid][pBank]);
    ShowPlayerDialog(playerid, DIALOG_ATM_ABHEBEN, DIALOG_STYLE_INPUT, "Auszahlen", DialogString, "OK", "Abbrechen");
    return 1;
    }
    if(listitem == 2) // Handyladekarte
    {
    strdel(DialogString, 0, sizeof(DialogString));
    format(DialogString, sizeof(DialogString), "1000$\n5000$\n10000$");
    ShowPlayerDialog(playerid, DIALOG_ATM_HANDY, DIALOG_STYLE_LIST, "Handyladekarte", DialogString, "Aufladen", "Abbrechen");
    return 1;
    }
    }
    }


    Ich habe eine kleine Frage wen ich jetzt z,b auf Aufladen klicke z,b 1000$ Handykarte soll das Fenster verschwinden und nicht mehr erscheinen bei mir ist der fall wen ich auf 1000$ Handykarte gehe kommt das fenster wider wie kann ich das machen das es dann nicht mehr kommt?

    Ja,





    //E:



    [21:43:15] i: 0 / Created: 1 / Label: 182 / Pickup: 194
    [21:43:15] i: 1 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 2 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 3 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 4 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 5 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 6 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 7 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 8 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 9 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 10 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 11 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 12 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 13 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 14 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 15 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 16 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 17 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 18 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 19 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 20 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 21 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 22 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 23 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 24 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 25 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 26 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 27 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 28 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 29 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 30 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 31 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 32 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 33 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 34 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 35 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 36 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 37 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 38 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 39 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 40 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 41 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 42 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 43 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 44 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 45 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 46 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 47 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 48 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 49 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 50 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 51 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 52 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 53 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 54 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 55 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 56 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 57 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 58 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 59 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 60 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 61 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 62 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 63 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 64 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 65 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 66 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 67 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 68 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 69 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 70 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 71 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 72 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 73 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 74 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 75 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 76 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 77 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 78 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 79 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 80 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 81 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 82 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 83 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 84 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 85 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 86 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 87 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 88 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 89 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 90 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 91 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 92 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 93 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 94 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 95 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 96 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 97 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 98 / Created: 0 / Label: 0 / Pickup: 0
    [21:43:15] i: 99 / Created: 0 / Label: 0 / Pickup: 0


    wen ich GMX mache


    [20:57:47] i: 0 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 1 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 2 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 3 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 4 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 5 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 6 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 7 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 8 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 9 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 10 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 11 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 12 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 13 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 14 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 15 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 16 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 17 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 18 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 19 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 20 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 21 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 22 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 23 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 24 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 25 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 26 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 27 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 28 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 29 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 30 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 31 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 32 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 33 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 34 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 35 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 36 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 37 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 38 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 39 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 40 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 41 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 42 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 43 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 44 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 45 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 46 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 47 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 48 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 49 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 50 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 51 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 52 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 53 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 54 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 55 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 56 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 57 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 58 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 59 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 60 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 61 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 62 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 63 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 64 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 65 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 66 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 67 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 68 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 69 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 70 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 71 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 72 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 73 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 74 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 75 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 76 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 77 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 78 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 79 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 80 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 81 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 82 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 83 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 84 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 85 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 86 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 87 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 88 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 89 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 90 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 91 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 92 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 93 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 94 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 95 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 96 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 97 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 98 / Created: 0 / Label: 0 / Pickup: 0
    [20:57:47] i: 99 / Created: 0 / Label: 0 / Pickup: 0


    wen ich /weg mache


    C:\Users\Windows 7\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\German\gamemodes\German.pwn(27762) : warning 213: tag mismatch
    C:\Users\Windows 7\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\German\gamemodes\German.pwn(27762) : warning 205: redundant code: constant expression is zero
    C:\Users\Windows 7\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\German\gamemodes\German.pwn(27762) : error 035: argument type mismatch (argument 1)
    C:\Users\Windows 7\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\German\gamemodes\German.pwn(27762) : error 039: constant symbol has no size
    C:\Users\Windows 7\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\German\gamemodes\German.pwn(27763) : error 035: argument type mismatch (argument 1)
    C:\Users\Windows 7\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\German\gamemodes\German.pwn(27763) : error 039: constant symbol has no size




    stock CreateToten(playerid)
    {
    new string[64], hr, mn, sc;
    for(new i=0;i<MAX_DEATHS;i++)
    {
    if(DeathInfo[i][deathLevel] == 0)
    {
    DeathInfo[i][deathX] = Spieler[playerid][pTotX];
    DeathInfo[i][deathY] = Spieler[playerid][pTotY];
    DeathInfo[i][deathZ] = Spieler[playerid][pTotZ];
    DeathInfo[i][deathWorld] = Spieler[playerid][pTotWorld];
    DeathInfo[i][deathLevel] = Spieler[playerid][pLevel];
    DeathInfo[i][deathplayer] = playerid;
    if(Grund > 46) { format(killreason,sizeof(killreason),"(Selbstmord)"); } //27762
    else { format(killreason,sizeof(killreason),"(Getötet)"); } //22773
    DeathInfo[i][deathPickup] = CreatePickup(1254, 1, DeathInfo[i][deathX], DeathInfo[i][deathY], DeathInfo[i][deathZ], DeathInfo[i][deathWorld]);
    gettime(hr, mn, sc);
    format(string,sizeof(string),"†\n%s\n%s\n%02d:%02d:%02d",GetName(playerid), killreason, hr,mn,sc);
    DeathLable[i] = Create3DTextLabel(string, COLOR_ALPHA_WHITE, DeathInfo[i][deathX], DeathInfo[i][deathY], DeathInfo[i][deathZ], 10.0, DeathInfo[i][deathWorld], 1);
    return i;
    }
    }
    return 1;
    }


    warum?

    C:\Users\Windows 7\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\German\gamemodes\German.pwn(3053) : warning 213: tag mismatch



    printf("i: %d / Created: %d / Label: %d / Pickup: %d", i, OfflineInfo[i][pickCreated], OfflineLable[i], OfflineInfo[i][pickID]);


    CMD:weg(playerid, params[])
    {
    for(new i=0;i<MAX_OFFLINEPICKUPS;i++)
    {
    if(OfflineInfo[i][pickCreated] == true)
    {
    Delete3DTextLabel(OfflineLable[i]); //Hier
    DestroyPickup(OfflineInfo[i][pickID]); //Hier
    }
    }
    return 1;
    }



    Habe da mal ein CMD gemacht das funktioniert auch nicht


    public OnGameModeExit()
    {
    print("Server wird heruntergefahren...");
    KillTimer(ServerTimer); print("ServerTimer deaktiviert!");
    KillTimer(AntiCheat); print("AntiCheat deaktiviert!");
    KillTimer(MinuteTimer); print("MinuteTimer deaktiviert!");
    KillTimer(PlayerTimer); print("PlayerTimer deaktiviert!");
    KillTimer(VehicleTimer); print("VehicleTimer deaktiviert!");
    KillTimer(nagelTimer); print("nagelTimer deaktiviert!");
    SaveFVehicles();
    SaveHouses();
    SaveGangwar();
    SaveTanken();
    SaveOthers();
    SaveBizes();
    SaveOrg();
    for(new i=0;i<GetMaxPlayers();i++)
    {
    if(IsPlayerConnected(i))
    {
    if(IsPlayerNPC(i))Kick(i);
    if(Spieler[i][pLoggedIn])
    {
    SavePlayer(i);
    }
    DeleteDeathInfo(i);
    }
    }
    for(new i=0;i<MAX_OFFLINEPICKUPS;i++)
    {
    if(OfflineInfo[i][pickCreated] == true)
    {
    Delete3DTextLabel(OfflineLable[i]); //Hier
    DestroyPickup(OfflineInfo[i][pickID]); //Hier
    }
    }
    RemoveAllNagelBand();
    RemoveAllSperre();
    return 1;
    }



    Habe noch eine Frage wen ich jetzt /rcon gmx mache geht der Pickup weg und der 3DTextLabel bleibt obwohl es angegeben ist

    Stunden Minuten Sekunden.


    Es wird alles angezeigt aber wen er sich ausloggt 34:35:36


    Also wird die Zeit nicht richtig angezeigt




    stock CreateOfflineInfo(playerid, reason)
    {
    new string[128];
    if(sServerGMX == 1)return 1;
    for(new i=0;i<MAX_OFFLINEPICKUPS;i++)
    {
    if(Spieler[playerid][pLoggedIn])
    {
    if(OfflineInfo[i][pickCreated] == false)
    {
    OfflineInfo[i][pickCreated] = true;
    GetPlayerPos(playerid, OfflineInfo[i][pickPos][0], OfflineInfo[i][pickPos][1], OfflineInfo[i][pickPos][2]);
    OfflineInfo[i][pickVirtualWorld] = GetPlayerVirtualWorld(playerid);
    format(OfflineInfo[i][pickName], MAX_PLAYER_NAME+1, GetName(playerid));
    OfflineInfo[i][pickDeleteTime] = gettime() + (60);
    OfflineInfo[i][pickID] = CreatePickup(1275, 0, OfflineInfo[i][pickPos][0], OfflineInfo[i][pickPos][1], OfflineInfo[i][pickPos][2], OfflineInfo[i][pickVirtualWorld]);
    static const dc[3][] ={"(Timeout/Crash)","(Verlassen)","(Kick/Ban)"};
    format(string, sizeof(string), "%s\n%s\n%02d:%02d:%02d", OfflineInfo[i][pickName], dc[reason], h,m,s);
    OfflineLable[i] = Create3DTextLabel(string, COLOR_ALPHA_WHITE, OfflineInfo[i][pickPos][0], OfflineInfo[i][pickPos][1], OfflineInfo[i][pickPos][2], 10.0, 0);
    OfflineInfo[i][pickWanteds] = Spieler[playerid][pWanteds];
    OfflineInfo[i][pickContract] = Spieler[playerid][pContract];
    return i;
    }
    }
    }
    return 0;
    }



    stock CreateOfflineInfo(playerid, reason)
    {
    new string[128];
    if(sServerGMX == 1)return 1;
    for(new i=0;i<MAX_OFFLINEPICKUPS;i++)
    {
    if(Spieler[playerid][pLoggedIn])
    {
    if(OfflineInfo[i][pickCreated] == false)
    {
    OfflineInfo[i][pickCreated] = true;
    GetPlayerPos(playerid, OfflineInfo[i][pickPos][0], OfflineInfo[i][pickPos][1], OfflineInfo[i][pickPos][2]);
    OfflineInfo[i][pickVirtualWorld] = GetPlayerVirtualWorld(playerid);
    format(OfflineInfo[i][pickName], MAX_PLAYER_NAME+1, GetName(playerid));
    OfflineInfo[i][pickDeleteTime] = gettime() + (60);
    OfflineInfo[i][pickID] = CreatePickup(1275, 0, OfflineInfo[i][pickPos][0], OfflineInfo[i][pickPos][1], OfflineInfo[i][pickPos][2], OfflineInfo[i][pickVirtualWorld]);
    static const dc[3][] ={"(Timeout/Crash)","(Verlassen)","(Kick/Ban)"};
    format(string, sizeof(string), "%s\n%s\n%02d:%02d:%02d", OfflineInfo[i][pickName], dc[reason], h,m,s);
    OfflineLable[i] = Create3DTextLabel(string, COLOR_ALPHA_WHITE, OfflineInfo[i][pickPos][0], OfflineInfo[i][pickPos][1], OfflineInfo[i][pickPos][2], 10.0, 0);
    OfflineInfo[i][pickWanteds] = Spieler[playerid][pWanteds];
    OfflineInfo[i][pickContract] = Spieler[playerid][pContract];
    return i;
    }
    }
    }
    return 0;
    }


    Die Zeit also h,m,s wird die zeit ausgelesen wird aber nicht richtig angezeigt


    stock ShowInfo(playerid, text[])
    {
    if(IsPlayerConnected(playerid))
    {
    PlayerTextDrawSetString(playerid, pTextInfo[playerid][6], text);
    PlayerTextDrawShow(playerid, pTextInfo[playerid][0]);
    PlayerTextDrawShow(playerid, pTextInfo[playerid][1]);
    PlayerTextDrawShow(playerid, pTextInfo[playerid][2]);
    PlayerTextDrawShow(playerid, pTextInfo[playerid][3]);
    PlayerTextDrawShow(playerid, pTextInfo[playerid][4]);
    PlayerTextDrawShow(playerid, pTextInfo[playerid][5]);
    PlayerTextDrawShow(playerid, pTextInfo[playerid][6]);
    }
    return 1;
    }


    stock SchonGewusst(playerid, head[])
    {
    if(IsPlayerConnected(playerid))
    {
    PlayerTextDrawSetString(playerid, pTextInfo[playerid][7], head);
    PlayerTextDrawShow(playerid, pTextInfo[playerid][7]);
    }
    return 1;
    }


    Das ding ist die anderen funktionieren ja nur wen ich das Auto kaufe funktioniert es nicht wen ich dann weiter mache zum nexten Checkpoint zeigt er es wider einwandfrei an.