Beiträge von Bimbix

    {
    if(IsPlayerConnected(playerid) && !Dtc_PlayerHaveCar[playerid][Dtc_PlayerKey[playerid]])
    {
    SendClientMessage(playerid, 0x00AEFFFF, "*Du hast dir ein Auto gekauft.");
    SendClientMessage(playerid, 0x00AEFFFF, "*Gehe zu der KFZ Stelle und hole dir ein Kennzeichen.");
    SendClientMessage(playerid, 0x00AEFFFF, "Fahre vorsichtig..Und denk an die StraßenVerkehrsOrdnung!");
    SetParkPlatz(playerid,Autohaus);
    GivePlayerMoney(playerid, PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPreis] / 2);
    new name[MAX_PLAYER_NAME], str[128];
    GetPlayerName(playerid, name, sizeof name);
    format(str, sizeof str, "/Autos/%s%d.dtcar", name,Dtc_PlayerKey[playerid]);
    new File: hFile = fopen(str, io_write);
    if (hFile)
    {
    new var[32];
    format(var, 32, "CarId=0\n");fwrite(hFile, var);
    format(var, 32, "CarModel=%d\n",Model);fwrite(hFile, var);
    format(var, 32, "CarPos_x=%.3f\n",PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPos_x]);fwrite(hFile, var);
    format(var, 32, "CarPos_y=%.3f\n",PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPos_y]);fwrite(hFile, var);
    format(var, 32, "CarPos_z=%.3f\n",PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPos_z]);fwrite(hFile, var);
    format(var, 32, "CarRotate=%.3f\n",PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarRotate]);fwrite(hFile, var);
    format(var, 32, "CarNitro=0\n");fwrite(hFile, var);
    format(var, 32, "CarHyd=0\n");fwrite(hFile, var);
    format(var, 32, "CarWheel=0\n");fwrite(hFile, var);
    format(var, 32, "CarAusp=0\n");fwrite(hFile, var);
    format(var, 32, "CarSideL=0\n");fwrite(hFile, var);
    format(var, 32, "CarSideR=0\n");fwrite(hFile, var);
    format(var, 32, "CarFB=0\n");fwrite(hFile, var);
    format(var, 32, "CarRB=0\n");fwrite(hFile, var);
    format(var, 32, "CarSpoiler=0\n");fwrite(hFile, var);
    format(var, 32, "CarRoof=0\n");fwrite(hFile, var);
    format(var, 32, "CarHood=0\n");fwrite(hFile, var);
    format(var, 32, "CarVents=0\n");fwrite(hFile, var);
    format(var, 32, "CarLamps=0\n");fwrite(hFile, var);
    format(var, 32, "CarPJ=-1\n");fwrite(hFile, var);
    format(var, 32, "CarC1=-1\n");fwrite(hFile, var);
    format(var, 32, "CarC2=-1\n");fwrite(hFile, var);
    format(var, 32, "Preis=%d\n",Preis);fwrite(hFile, var);
    format(var, 32, "Plate=%s\n");fwrite(hFile, var);
    fclose(hFile);
    }
    OnPlayerCarLogin(playerid);
    }
    }

    Ich habe diese Errors:


    C:\Users\ANDY\Desktop\Pawno\gamemodes\LVR.pwn(3) : error 031: unknown directive
    C:\Users\ANDY\Desktop\Pawno\gamemodes\LVR.pwn(6) : error 001: expected token: ";", but found "-identifier-"
    C:\Users\ANDY\Desktop\Pawno\gamemodes\LVR.pwn(13) : warning 235: public function lacks forward declaration (symbol "TachoTimer")
    C:\Users\ANDY\Desktop\Pawno\gamemodes\LVR.pwn(20) : error 017: undefined symbol "X1"
    C:\Users\ANDY\Desktop\Pawno\gamemodes\LVR.pwn(20) : warning 215: expression has no effect
    C:\Users\ANDY\Desktop\Pawno\gamemodes\LVR.pwn(20) : error 001: expected token: ";", but found "]"
    C:\Users\ANDY\Desktop\Pawno\gamemodes\LVR.pwn(20) : error 029: invalid expression, assumed zero
    C:\Users\ANDY\Desktop\Pawno\gamemodes\LVR.pwn(20) : fatal error 107: too many error messages on one line


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    6 Errors.


    Code:


    public TachoTimer()
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i))
    {
    new Float:Entfernung, Float:Geschwindigkeit;
    GetVehiclePos(GetPlayerVehicleID(i), X1[i], Y1[i], Z1[i]);
    Entfernung = floatsqroot(floatpower(floatabs(floatsub(X1[i], X2[i])), 2)+floatpower(floatabs(floatsub(Y1[i], Y2[i])), 2)+floatpower(floatabs(floatsub(Z1[i], Z2[i])), 2));
    Geschwindigkeit = (Entfernung / (TACHOTIMER/1000)) * 3.6;
    new Tachostring[20];
    format(Tachostring, sizeof(Tachostring), "Km/h: %d", floatround(Geschwindigkeit));
    TextDrawSetString(Tacho[i], Tachostring);
    GetVehiclePos(GetPlayerVehicleID(i), X2[i], Y2[i], Z2[i]);
    TextDrawShowForPlayer(i, Tacho[i]);
    }
    else
    {
    TextDrawHideForPlayer(i, Tacho[i]);
    }
    }
    return 1;
    }


    public OnGameModeInit()
    {
    SetGameModeText("Blank Script");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    Tacho[i] = TextDrawCreate(481.666748, 378.311126, "KM/H: --");
    TextDrawLetterSize(Textdraw5, 0.236666, 1.023407);
    TextDrawAlignment(Textdraw5, 1);
    TextDrawColor(Textdraw5, -1);
    TextDrawSetShadow(Textdraw5, 0);
    TextDrawSetOutline(Textdraw5, 1);
    TextDrawBackgroundColor(Textdraw5, 51);
    TextDrawFont(Textdraw5, 1);
    TextDrawSetProportional(Textdraw5, 1);
    }
    return 1;
    }


    if (strcmp("/duty", cmdtext, true, 10) == 0)
    {
    if(IsPlayerAdmin(playerid))return SendClientMessage(playerid,Farbe,"Du bist kein Admin");
    SetPlayerColor(playerid,lightblue);
    SendClientMessageToAll(Farbe,"Admin is now Duty");


    }


    PS. Nun bin ich etwas direkter, finde es ziemlich dreist das du so ein "schlechtes" Design (auf Anfrage) verkaufen moechtest, vermutlich ist es sogar dein erstes Design.

    Das habe ich mir auch gedacht, dass wird dir keiner abbkaufen außer es ist einer der genau so einen geschmack hat.