Beiträge von Zreeq

    C:\Users\Brandon\Desktop\[Ger]Your Second Familie[0.3x]\gamemodes\Familie.pwn(222) : warning 213: tag mismatch
    C:\Users\Brandon\Desktop\[Ger]Your Second Familie[0.3x]\gamemodes\Familie.pwn(222) : warning 202: number of arguments does not match definition
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Warnings.


    Die Warnings sind bei Create3DTextLabel

    if(strcmp(cmdtext, "/Motor", true) == 0)
    {
    if(GetPlayerVehicleSeat(playerid) == 0)
    {
    new car = GetPlayerVehicleID(playerid);
    if(GetVehicleModel(car) == 509 || GetVehicleModel(car) == 481 || GetVehicleModel(car) == 510)
    {
    SendClientMessage(playerid, COLOR_RED, "Du sitzt auf einem Fahrrad. Das besitzt keinen Motor!");
    }
    else if (Motor[car] == false)
    {
    GetVehicleParamsEx(car,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(car,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    Motor[car] = true;
    }
    else
    {
    GetVehicleParamsEx(car,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(car,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
    Motor[car] = false;
    }
    }
    return 1;
    }

    Hey Leute , ich habe ein Tacho mit Tank usw. und ein /Motor befehl wie mach ich das wenn ich /motor eingebe das erst dann tank verbraucht wird wenn das Motor aus ist das er dann kein Tank verbraucht wie mach ich das ?

    Hey , ich habe alle einrück fehler gefunden außer den hier :
    Bin ich Blind oder Blöd ? Oder beides ?


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if(strcmp(cmdtext, "/Motor", true) == 0)
    {
    if(GetPlayerVehicleSeat(playerid) == 0)
    {
    new car = GetPlayerVehicleID(playerid);
    if(GetVehicleModel(car) == 509 || GetVehicleModel(car) == 481 || GetVehicleModel(car) == 510)
    {
    SendClientMessage(playerid, COLOR_RED, "Du sitzt auf einem Fahrrad. Das besitzt keinen Motor!");
    }
    else if (Motor[car] == false)
    {
    GetVehicleParamsEx(car,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(car,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    Motor[car] = true;
    }
    else
    {
    GetVehicleParamsEx(car,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(car,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
    Motor[car] = false;
    }
    }
    return 1;
    }
    if(strcmp("/Tanken", cmdtext, true, 10) == 0)//Die Zeile
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    if(IsAtGasStation(playerid))
    {
    ShowPlayerDialog(playerid,Dialog_Tanken,DIALOG_STYLE_MSGBOX,"{FF0000}Möchtest du dein Fahrzeug Betanken ?","{FFFFFF}Wähle 'Ja' oder 'Nein'.","Ja","Nein");
    return 1;
    }
    else
    {
    SendClientMessage(playerid, COLOR_RED, "Du bist an keiner Tankstelle!");
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du sitzt in keinem Fahrzeug!");
    return 1;
    }
    }
    return 0;
    }

    C:\Users\Brandon\Desktop\[Ger]Your Second Familie[0.3x]\gamemodes\Familie.pwn(437) : error 028: invalid subscript (not an array or too many subscripts): "X1"
    C:\Users\Brandon\Desktop\[Ger]Your Second Familie[0.3x]\gamemodes\Familie.pwn(437) : warning 215: expression has no effect
    C:\Users\Brandon\Desktop\[Ger]Your Second Familie[0.3x]\gamemodes\Familie.pwn(437) : error 001: expected token: ";", but found "]"
    C:\Users\Brandon\Desktop\[Ger]Your Second Familie[0.3x]\gamemodes\Familie.pwn(437) : error 029: invalid expression, assumed zero
    C:\Users\Brandon\Desktop\[Ger]Your Second Familie[0.3x]\gamemodes\Familie.pwn(437) : fatal error 107: too many error messages on one line


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



    4 Errors.



    public UpdateTacho()
    {
    for(new i = 0;i<MAX_PLAYERS;i++)
    {
    if(IsPlayerConnected(i) && GetPlayerState(i) == PLAYER_STATE_DRIVER && !IsPlayerNPC(i))
    {
    new Float:Strecke,Float:Geschwindigkeit;
    new Float:X1, Float:Y1, Float:Z1;
    GetVehiclePos(GetPlayerVehicleID(i),X1,Y1,Z1);
    Strecke = 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));//Zeile 437
    Geschwindigkeit = (Strecke / (TACHOTIMER/1000)) * 3.6;
    new String[50];
    format(String,50,"Mein Tacho.\nGeschwindigkeit: %d km/h",floatround(Geschwindigkeit));
    TextDrawSetString(Tacho[i],String);
    GetVehiclePos(GetPlayerVehicleID(i),X2[i],Y2[i],Z2[i]);
    TextDrawShowForPlayer(i,Tacho[i]);
    }
    else
    {
    TextDrawHideForPlayer(i,Tacho[i]);
    }
    }
    return 1;
    }

    Hey, hier die Errors :
    C:\Users\Brandon\Desktop\[Ger]Your Second Familie[0.3x]\gamemodes\Familie.pwn(435) : error 017: undefined symbol "X1"
    C:\Users\Brandon\Desktop\[Ger]Your Second Familie[0.3x]\gamemodes\Familie.pwn(435) : warning 215: expression has no effect
    C:\Users\Brandon\Desktop\[Ger]Your Second Familie[0.3x]\gamemodes\Familie.pwn(435) : error 001: expected token: ";", but found "]"
    C:\Users\Brandon\Desktop\[Ger]Your Second Familie[0.3x]\gamemodes\Familie.pwn(435) : error 029: invalid expression, assumed zero
    C:\Users\Brandon\Desktop\[Ger]Your Second Familie[0.3x]\gamemodes\Familie.pwn(435) : fatal error 107: too many error messages on one line


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



    4 Errors.


    Script :


    public UpdateTacho()
    {
    for(new i = 0;i<MAX_PLAYERS;i++)
    {
    if(IsPlayerConnected(i) && GetPlayerState(i) == PLAYER_STATE_DRIVER && !IsPlayerNPC(i))
    {
    new Float:Strecke,Float:Geschwindigkeit;
    GetVehiclePos(GetPlayerVehicleID(i),X1[i],Y1[i],Z1[i]);//Zeile 435
    Strecke = 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 = (Strecke / (TACHOTIMER/1000)) * 3.6;
    new String[50];
    format(String,50,"Mein Tacho.\nGeschwindigkeit: %d km/h",floatround(Geschwindigkeit));
    TextDrawSetString(Tacho[i],String);
    GetVehiclePos(GetPlayerVehicleID(i),X2[i],Y2[i],Z2[i]);
    TextDrawShowForPlayer(i,Tacho[i]);
    }
    else
    {
    TextDrawHideForPlayer(i,Tacho[i]);
    }
    }
    return 1;
    }