textdraw tacho error

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Yoa hi,
    ich habe mich ma an nem Tacho versucht.
    Ich kriege aber 9 errors:
    [hide]C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(3758) : error 029: invalid expression, assumed zero
    C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(3758) : error 035: argument type mismatch (argument 2)
    C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14974) : error 029: invalid expression, assumed zero
    C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14974) : error 035: argument type mismatch (argument 2)
    C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14984) : error 029: invalid expression, assumed zero
    C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14985) : error 029: invalid expression, assumed zero
    C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14985) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14985) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14985) : error 001: expected token: ";", but found ")"
    C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14985) : error 029: invalid expression, assumed zero
    C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14985) : fatal error 107: too many error messages on one line


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



    9 Errors.[/hide]
    Hier das ganze Tacho:
    TextDrawShowForPlayer(playerid,Tacho);
    for(new i = 0; i < 700; i++)
    {
    if(Dtc_Carlock[i])
    {
    SetVehicleParamsForPlayer(playerid,playerid,0,1); //3786 Problemzeile
    }
    }
    public VehStateCheck()
    {
    for(new playerid=0;playerid<MAX_PLAYERS;playerid++)
    {
    if(IsPlayerConnected(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER && !IsANoTachoVehicle(GetPlayerVehicleID(playerid)))
    {
    if(M_Bot[playerid][PAFK] == 0)
    TextDrawHideForPlayer(playerid, Tacho); //14974 Problemzeile
    {
    new Float:health,vehicleid = GetPlayerVehicleID(playerid),string[256],Float:value,Float:distance,Float:x,Float:y,Float:z;
    GetPlayerPos(playerid, x, y, z);
    distance = floatsqroot(floatpower(floatabs(floatsub(x,PCarPos[playerid][PCarX])),2)+floatpower(floatabs(floatsub(y,PCarPos[playerid][PCarY])),2)+floatpower(floatabs(floatsub(z,PCarPos[playerid][PCarZ])),2));
    value = floatround(distance * 11000);
    GetVehicleHealth(vehicleid,health);
    if (health >= 900 && health <= 1000)
    {
    format(string, sizeof(string), "~w~Geschwindigkeit: %d~w~ KM/H~n~Tankinhalt: ~w~%d ~b~/~w~ %d~w~~n~Zustand:~g~ ========~n~~w~Fahrzeug: ~w~%s",floatround(value/1400),Gas[vehicleid],GetGasMax(GetVehicleModel(vehicleid)),VehicleName[GetVehicleModel(vehicleid)-400]);
    Tacho = TextDrawCreate(490.000000,401.000000,string);
    TextDrawLetterSize(Tacho,0.299999,0.799999); //14985 Problemzeile
    TextDrawSetOutline(Tacho,1);
    TextDrawFont(Tacho,1);
    TextDrawSetProportional(Tacho,1);
    TextDrawAlignment(Tacho,0);
    TextDrawBackgroundColor(Tacho,0x000000ff);
    TextDrawColor(Tacho,0xffffffff);
    TextDrawSetShadow(Tacho,1);
    TextDrawShowForPlayer(playerid,Tacho);
    }
    }
    }
    }
    return 1;
    }


    Hoffe mir kann da jemand helfen.
    Ich weis einfach nicht mehr weiter
    mfg lolli


    //edit Überschrift


    Bewerte mich und meine Transaktionen als Mittelsmann

    Einmal editiert, zuletzt von lollipop ()

  • Hallo

    if(M_Bot[playerid][PAFK] == 0)
    {
    TextDrawHideForPlayer(playerid, Tacho); //14974 Problemzeile
    //{


    http://wiki.sa-mp.com/wiki/FunctionSetVehicleParamsForPlayer
    Und der erste Fehler ist logisch nicht ganz ersichtlich. Ich gehe mal davon aus, dass Du mit der for Schleife die vehicleids verarbeitest, dann muss es so sein:


    for(new i = 0; i < 700; i++)
    {
    if(Dtc_Carlock[i])
    {
    SetVehicleParamsForPlayer(i,playerid,0,1); //3786 Problemzeile
    }
    }
    // Jedoch weiss ich nicht wie Du an die playerid kommst


    MfG dUDA


    Edit: Code hinzu gemacht
    Edit 2: Zeig bitte mal das "new" für die Textdraw, evt fehlt dir da "Text:"

  • weiterhin 7 errors:


    [hide]C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14974) : error 029: invalid expression, assumed zero
    C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14974) : error 035: argument type mismatch (argument 2)
    C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14983) : error 029: invalid expression, assumed zero
    C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14984) : error 029: invalid expression, assumed zero
    C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14984) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14984) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14984) : error 001: expected token: ";", but found ")"
    C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14984) : error 029: invalid expression, assumed zero
    C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14984) : fatal error 107: too many error messages on one line


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



    7 Errors.
    [/hide]


    public VehStateCheck()
    {
    for(new playerid=0;playerid<MAX_PLAYERS;playerid++)
    {
    if(IsPlayerConnected(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER && !IsANoTachoVehicle(GetPlayerVehicleID(playerid)))
    {
    if(M_Bot[playerid][PAFK] == 0)
    {
    TextDrawHideForPlayer(playerid, Tacho); //14974 Problemzeile
    new Float:health,vehicleid = GetPlayerVehicleID(playerid),string[256],Float:value,Float:distance,Float:x,Float:y,Float:z;
    GetPlayerPos(playerid, x, y, z);
    distance = floatsqroot(floatpower(floatabs(floatsub(x,PCarPos[playerid][PCarX])),2)+floatpower(floatabs(floatsub(y,PCarPos[playerid][PCarY])),2)+floatpower(floatabs(floatsub(z,PCarPos[playerid][PCarZ])),2));
    value = floatround(distance * 11000);
    GetVehicleHealth(vehicleid,health);
    if (health >= 900 && health <= 1000)
    {
    format(string, sizeof(string), "~w~Geschwindigkeit: %d~w~ KM/H~n~Tankinhalt: ~w~%d ~b~/~w~ %d~w~~n~Zustand:~g~ ========~n~~w~Fahrzeug: ~w~%s",floatround(value/1400),Gas[vehicleid],GetGasMax(GetVehicleModel(vehicleid)),VehicleName[GetVehicleModel(vehicleid)-400]);
    Tacho = TextDrawCreate(490.000000,401.000000,string);
    TextDrawLetterSize(Tacho,0.299999,0.799999); //14984 Problemzeile
    TextDrawSetOutline(Tacho,1);
    TextDrawFont(Tacho,1);
    TextDrawSetProportional(Tacho,1);
    TextDrawAlignment(Tacho,0);
    TextDrawBackgroundColor(Tacho,0x000000ff);
    TextDrawColor(Tacho,0xffffffff);
    TextDrawSetShadow(Tacho,1);
    TextDrawShowForPlayer(playerid,Tacho);
    }
    }
    }
    }
    return 1;
    }
    Danke an Dudalus aber es bleiben weiterhin errors.
    mfg lolli


    Bewerte mich und meine Transaktionen als Mittelsmann

  • [hide]C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(435) : error 020: invalid symbol name ""
    C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14975) : error 029: invalid expression, assumed zero
    C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14975) : error 035: argument type mismatch (argument 2)
    C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14984) : error 029: invalid expression, assumed zero
    C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14985) : error 029: invalid expression, assumed zero
    C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14985) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14985) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14985) : error 001: expected token: ";", but found ")"
    C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14985) : error 029: invalid expression, assumed zero
    C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14985) : fatal error 107: too many error messages on one line


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



    8 Errors.
    [/hide]
    new Text:Tacho[MAX_PLAYERS];//435 Problemzeile
    public VehStateCheck()
    {
    for(new playerid=0;playerid<MAX_PLAYERS;playerid++)
    {
    if(IsPlayerConnected(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER && !IsANoTachoVehicle(GetPlayerVehicleID(playerid)))
    {
    if(M_Bot[playerid][PAFK] == 0)
    {
    TextDrawHideForPlayer(playerid, Tacho); //14975 Problemzeile
    new Float:health,vehicleid = GetPlayerVehicleID(playerid),string[256],Float:value,Float:distance,Float:x,Float:y,Float:z;
    GetPlayerPos(playerid, x, y, z);
    distance = floatsqroot(floatpower(floatabs(floatsub(x,PCarPos[playerid][PCarX])),2)+floatpower(floatabs(floatsub(y,PCarPos[playerid][PCarY])),2)+floatpower(floatabs(floatsub(z,PCarPos[playerid][PCarZ])),2));
    value = floatround(distance * 11000);
    GetVehicleHealth(vehicleid,health);
    if (health >= 900 && health <= 1000)
    {
    format(string, sizeof(string), "~w~Geschwindigkeit: %d~w~ KM/H~n~Tankinhalt: ~w~%d ~b~/~w~ %d~w~~n~Zustand:~g~ ========~n~~w~Fahrzeug: ~w~%s",floatround(value/1400),Gas[vehicleid],GetGasMax(GetVehicleModel(vehicleid)),VehicleName[GetVehicleModel(vehicleid)-400]);
    Tacho = TextDrawCreate(490.000000,401.000000,string);
    TextDrawLetterSize(Tacho,0.299999,0.799999); //14985 Problemzeile
    TextDrawSetOutline(Tacho,1);
    TextDrawFont(Tacho,1);
    TextDrawSetProportional(Tacho,1);
    TextDrawAlignment(Tacho,0);
    TextDrawBackgroundColor(Tacho,0x000000ff);
    TextDrawColor(Tacho,0xffffffff);
    TextDrawSetShadow(Tacho,1);
    TextDrawShowForPlayer(playerid,Tacho);
    }
    }
    }
    }
    return 1;
    }


    mfg lolli


    Bewerte mich und meine Transaktionen als Mittelsmann

  • Hallo


    Du musst alle Tacho durch Tacho oder eben mit Tacho[playerid] ersetzen, denn jetzt machst Du für jeden einzelnen Spieler eine Textdraw ;)


    Tank zu Tank[playerid] (Auch in allen Funktionen)


    dUDA


    Für Sie Madame xD


    public VehStateCheck()
    {
    for(new playerid=0;playerid<MAX_PLAYERS;playerid++)
    {
    if(IsPlayerConnected(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER && !IsANoTachoVehicle(GetPlayerVehicleID(playerid)))
    {
    if(M_Bot[playerid][PAFK] == 0)
    {
    TextDrawHideForPlayer(playerid, Tacho[playerid]);
    new Float:health,vehicleid = GetPlayerVehicleID(playerid),string[256],Float:value,Float:distance,Float:x,Float:y,Float:z;
    GetPlayerPos(playerid, x, y, z);
    distance = floatsqroot(floatpower(floatabs(floatsub(x,PCarPos[playerid][PCarX])),2)+floatpower(floatabs(floatsub(y,PCarPos[playerid][PCarY])),2)+floatpower(floatabs(floatsub(z,PCarPos[playerid][PCarZ])),2));
    value = floatround(distance * 11000);
    GetVehicleHealth(vehicleid,health);
    if (health >= 900 && health <= 1000)
    {
    format(string, sizeof(string), "~w~Geschwindigkeit: %d~w~ KM/H~n~Tankinhalt: ~w~%d ~b~/~w~ %d~w~~n~Zustand:~g~ ========~n~~w~Fahrzeug: ~w~%s",floatround(value/1400),Gas[vehicleid],GetGasMax(GetVehicleModel(vehicleid)),VehicleName[GetVehicleModel(vehicleid)-400]);
    Tacho[playerid] = TextDrawCreate(490.000000,401.000000,string);
    TextDrawLetterSize(Tacho[playerid],0.299999,0.799999);
    TextDrawSetOutline(Tacho[playerid],1);
    TextDrawFont(Tacho[playerid],1);
    TextDrawSetProportional(Tacho[playerid],1);
    TextDrawAlignment(Tacho[playerid],0);
    TextDrawBackgroundColor(Tacho[playerid],0x000000ff);
    TextDrawColor(Tacho[playerid],0xffffffff);
    TextDrawSetShadow(Tacho[playerid],1);
    TextDrawShowForPlayer(playerid,Tacho[playerid]);
    }
    }
    }
    }
    return 1;
    }

  • Ich habe des jetzt so:
    public VehStateCheck()
    {
    for(new playerid=0;playerid<MAX_PLAYERS;playerid++)
    {
    if(IsPlayerConnected(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER && !IsANoTachoVehicle(GetPlayerVehicleID(playerid)))
    {
    if(M_Bot[playerid][PAFK] == 0)
    {
    new Text:Tacho[MAX_PLAYERS]; //14973 OProblemzeile 1 1. errors
    new Float:health,vehicleid = GetPlayerVehicleID(playerid),string[256],Float:value,Float:distance,Float:x,Float:y,Float:z;
    TextDrawHideForPlayer(playerid, Tacho[playerid]); //14975 OProblemzeile 1 4. errors
    GetPlayerPos(playerid, x, y, z);
    distance = floatsqroot(floatpower(floatabs(floatsub(x,PCarPos[playerid][PCarX])),2)+floatpower(floatabs(floatsub(y,PCarPos[playerid][PCarY])),2)+floatpower(floatabs(floatsub(z,PCarPos[playerid][PCarZ])),2));
    value = floatround(distance * 11000);
    GetVehicleHealth(vehicleid,health);
    if (health >= 950 && health <= 1000)
    {
    format(string, sizeof(string), "~w~Geschwindigkeit: %d~w~ KM/H~n~Tankinhalt: ~w~%d ~b~/~w~ %d~w~~n~Zustand:~g~ |||||||||~n~~w~Fahrzeug: ~w~%s",floatround(value/1400),Gas[vehicleid],GetGasMax(GetVehicleModel(vehicleid)),VehicleName[GetVehicleModel(vehicleid)-400]);
    Tacho[playerid] = TextDrawCreate(490.000000,401.000000,string);
    TextDrawLetterSize(Tacho[playerid],0.299999,0.799999);
    TextDrawSetOutline(Tacho[playerid],1);
    TextDrawFont(Tacho[playerid],1);
    TextDrawSetProportional(Tacho[playerid],1);
    TextDrawAlignment(Tacho[playerid],0);
    TextDrawBackgroundColor(Tacho[playerid],0x000000ff);
    TextDrawColor(Tacho[playerid],0xffffffff);
    TextDrawSetShadow(Tacho[playerid],1);
    TextDrawShowForPlayer(playerid,Tacho[playerid]);
    }
    else if (health >= 900 && health <= 950)
    {
    format(string, sizeof(string), "~w~Geschwindigkeit: %d~w~ KM/H~n~Tankinhalt: ~w~%d ~b~/~w~ %d~w~~n~Zustand:~g~ |||||||||~n~~w~Fahrzeug: ~w~%s",floatround(value/1400),Gas[vehicleid],GetGasMax(GetVehicleModel(vehicleid)),VehicleName[GetVehicleModel(vehicleid)-400]);
    Tacho[playerid] = TextDrawCreate(490.000000,401.000000,string);
    TextDrawLetterSize(Tacho[playerid],0.299999,0.799999);
    TextDrawSetOutline(Tacho[playerid],1);
    TextDrawFont(Tacho[playerid],1);
    TextDrawSetProportional(Tacho[playerid],1);
    TextDrawAlignment(Tacho[playerid],0);
    TextDrawBackgroundColor(Tacho[playerid],0x000000ff);
    TextDrawColor(Tacho[playerid],0xffffffff);
    TextDrawSetShadow(Tacho[playerid],1);
    TextDrawShowForPlayer(playerid,Tacho[playerid]);
    }
    else if (health >= 700 && health <= 800)
    {
    format(string, sizeof(string), "~w~Geschwindigkeit: %d~w~ KM/H~n~Tankinhalt: ~w~%d ~b~/~w~ %d~w~~n~Zustand:~g~ ||||||||~n~~w~Fahrzeug: ~w~%s",floatround(value/1400),Gas[vehicleid],GetGasMax(GetVehicleModel(vehicleid)),VehicleName[GetVehicleModel(vehicleid)-400]);
    Tacho[playerid] = TextDrawCreate(490.000000,401.000000,string);
    TextDrawLetterSize(Tacho[playerid],0.299999,0.799999);
    TextDrawSetOutline(Tacho[playerid],1);
    TextDrawFont(Tacho[playerid],1);
    TextDrawSetProportional(Tacho[playerid],1);
    TextDrawAlignment(Tacho[playerid],0);
    TextDrawBackgroundColor(Tacho[playerid],0x000000ff);
    TextDrawColor(Tacho[playerid],0xffffffff);
    TextDrawSetShadow(Tacho[playerid],1);
    TextDrawShowForPlayer(playerid,Tacho[playerid]);
    }
    else if (health >= 600 && health <= 700)
    {
    format(string, sizeof(string), "~w~Geschwindigkeit: %d~w~ KM/H~n~Tankinhalt: ~w~%d ~b~/~w~ %d~w~~n~Zustand:~g~ |||||||~n~~w~Fahrzeug: ~w~%s",floatround(value/1400),Gas[vehicleid],GetGasMax(GetVehicleModel(vehicleid)),VehicleName[GetVehicleModel(vehicleid)-400]);
    Tacho[playerid] = TextDrawCreate(490.000000,401.000000,string);
    TextDrawLetterSize(Tacho[playerid],0.299999,0.799999);
    TextDrawSetOutline(Tacho[playerid],1);
    TextDrawFont(Tacho[playerid],1);
    TextDrawSetProportional(Tacho[playerid],1);
    TextDrawAlignment(Tacho[playerid],0);
    TextDrawBackgroundColor(Tacho[playerid],0x000000ff);
    TextDrawColor(Tacho[playerid],0xffffffff);
    TextDrawSetShadow(Tacho[playerid],1);
    TextDrawShowForPlayer(playerid,Tacho[playerid]);
    }
    else if (health >= 500 && health <= 600)
    {
    format(string, sizeof(string), "~w~Geschwindigkeit: %d~w~ KM/H~n~Tankinhalt: ~w~%d ~b~/~w~ %d~w~~n~Zustand:~g~ ||||||~n~~w~Fahrzeug: ~w~%s",floatround(value/1400),Gas[vehicleid],GetGasMax(GetVehicleModel(vehicleid)),VehicleName[GetVehicleModel(vehicleid)-400]);
    Tacho[playerid] = TextDrawCreate(490.000000,401.000000,string);
    TextDrawLetterSize(Tacho[playerid],0.299999,0.799999);
    TextDrawSetOutline(Tacho[playerid],1);
    TextDrawFont(Tacho[playerid],1);
    TextDrawSetProportional(Tacho[playerid],1);
    TextDrawAlignment(Tacho[playerid],0);
    TextDrawBackgroundColor(Tacho[playerid],0x000000ff);
    TextDrawColor(Tacho[playerid],0xffffffff);
    TextDrawSetShadow(Tacho[playerid],1);
    TextDrawShowForPlayer(playerid,Tacho[playerid]);
    }
    else if (health >= 400 && health <= 500)
    {
    format(string, sizeof(string), "~w~Geschwindigkeit: %d~w~ KM/H~n~Tankinhalt: ~w~%d ~b~/~w~ %d~w~~n~Zustand:~g~ |||||~n~~w~Fahrzeug: ~w~%s",floatround(value/1400),Gas[vehicleid],GetGasMax(GetVehicleModel(vehicleid)),VehicleName[GetVehicleModel(vehicleid)-400]);
    Tacho[playerid] = TextDrawCreate(490.000000,401.000000,string);
    TextDrawLetterSize(Tacho[playerid],0.299999,0.799999);
    TextDrawSetOutline(Tacho[playerid],1);
    TextDrawFont(Tacho[playerid],1);
    TextDrawSetProportional(Tacho[playerid],1);
    TextDrawAlignment(Tacho[playerid],0);
    TextDrawBackgroundColor(Tacho[playerid],0x000000ff);
    TextDrawColor(Tacho[playerid],0xffffffff);
    TextDrawSetShadow(Tacho[playerid],1);
    TextDrawShowForPlayer(playerid,Tacho[playerid]);
    }
    else if (health >= 300 && health <= 400)
    {
    format(string, sizeof(string), "~w~Geschwindigkeit: %d~w~ KM/H~n~Tankinhalt: ~w~%d ~b~/~w~ %d~w~~n~Zustand:~g~ ||||~n~~w~Fahrzeug: ~w~%s",floatround(value/1400),Gas[vehicleid],GetGasMax(GetVehicleModel(vehicleid)),VehicleName[GetVehicleModel(vehicleid)-400]);
    Tacho[playerid] = TextDrawCreate(490.000000,401.000000,string);
    TextDrawLetterSize(Tacho[playerid],0.299999,0.799999);
    TextDrawSetOutline(Tacho[playerid],1);
    TextDrawFont(Tacho[playerid],1);
    TextDrawSetProportional(Tacho[playerid],1);
    TextDrawAlignment(Tacho[playerid],0);
    TextDrawBackgroundColor(Tacho[playerid],0x000000ff);
    TextDrawColor(Tacho[playerid],0xffffffff);
    TextDrawSetShadow(Tacho[playerid],1);
    TextDrawShowForPlayer(playerid,Tacho[playerid]);
    }
    else if (health >= 200 && health <= 300)
    {
    format(string, sizeof(string), "~w~Geschwindigkeit: %d~w~ KM/H~n~Tankinhalt: ~w~%d ~b~/~w~ %d~w~~n~Zustand:~g~ |||~n~~w~Fahrzeug: ~w~%s",floatround(value/1400),Gas[vehicleid],GetGasMax(GetVehicleModel(vehicleid)),VehicleName[GetVehicleModel(vehicleid)-400]);
    Tacho[playerid] = TextDrawCreate(490.000000,401.000000,string);
    TextDrawLetterSize(Tacho[playerid],0.299999,0.799999);
    TextDrawSetOutline(Tacho[playerid],1);
    TextDrawFont(Tacho[playerid],1);
    TextDrawSetProportional(Tacho[playerid],1);
    TextDrawAlignment(Tacho[playerid],0);
    TextDrawBackgroundColor(Tacho[playerid],0x000000ff);
    TextDrawColor(Tacho[playerid],0xffffffff);
    TextDrawSetShadow(Tacho[playerid],1);
    TextDrawShowForPlayer(playerid,Tacho[playerid]);
    }
    else if (health >= 100 && health <= 200)
    {
    format(string, sizeof(string), "~w~Geschwindigkeit: %d~w~ KM/H~n~Tankinhalt: ~w~%d ~b~/~w~ %d~w~~n~Zustand:~g~ ||~n~~w~Fahrzeug: ~w~%s",floatround(value/1400),Gas[vehicleid],GetGasMax(GetVehicleModel(vehicleid)),VehicleName[GetVehicleModel(vehicleid)-400]);
    Tacho[playerid] = TextDrawCreate(490.000000,401.000000,string);
    TextDrawLetterSize(Tacho[playerid],0.299999,0.799999);
    TextDrawSetOutline(Tacho[playerid],1);
    TextDrawFont(Tacho[playerid],1);
    TextDrawSetProportional(Tacho[playerid],1);
    TextDrawAlignment(Tacho[playerid],0);
    TextDrawBackgroundColor(Tacho[playerid],0x000000ff);
    TextDrawColor(Tacho[playerid],0xffffffff);
    TextDrawSetShadow(Tacho[playerid],1);
    TextDrawShowForPlayer(playerid,Tacho[playerid]);
    }
    else if (health >= 0 && health <= 100)
    {
    format(string, sizeof(string), "~w~Geschwindigkeit: %d~w~ KM/H~n~Tankinhalt: ~w~%d ~b~/~w~ %d~w~~n~Zustand:~g~ |~n~~w~Fahrzeug: ~w~%s",floatround(value/1400),Gas[vehicleid],GetGasMax(GetVehicleModel(vehicleid)),VehicleName[GetVehicleModel(vehicleid)-400]);
    Tacho[playerid] = TextDrawCreate(490.000000,401.000000,string);
    TextDrawLetterSize(Tacho[playerid],0.299999,0.799999);
    TextDrawSetOutline(Tacho[playerid],1);
    TextDrawFont(Tacho[playerid],1);
    TextDrawSetProportional(Tacho[playerid],1);
    TextDrawAlignment(Tacho[playerid],0);
    TextDrawBackgroundColor(Tacho[playerid],0x000000ff);
    TextDrawColor(Tacho[playerid],0xffffffff);
    TextDrawSetShadow(Tacho[playerid],1);
    TextDrawShowForPlayer(playerid,Tacho[playerid]);
    }
    }
    }
    }
    return 1;
    }
    Jedoch habe ich immernoch 5 errors:
    [hide]C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14973) : error 001: expected token: "-identifier-", but found "["
    C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14975) : error 029: invalid expression, assumed zero
    C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14975) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14975) : error 001: expected token: ";", but found "]"
    C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14975) : error 029: invalid expression, assumed zero
    C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14975) : fatal error 107: too many error messages on one line


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



    5 Errors.
    [/hide]
    //edit paar errors rausbekommen komplett neu geschrieben


    Bewerte mich und meine Transaktionen als Mittelsmann

    2 Mal editiert, zuletzt von lollipop ()