Beiträge von BigBozZxX

    error 017: undefined symbol "VehicleName"
    warning 215: expression has no effect
    error 001: expected token: ";", but found "]"
    error 029: invalid expression, assumed zero
    fatal error 107: too many error messages on one line


    public VehStateCheck()
    {
    foreach (Character,i)
    {
    if(GetPlayerState(i) == PLAYER_STATE_DRIVER && !IsANoTachoVehicle(GetPlayerVehicleID(i)))


    {
    new Float:health,vehicleid = GetPlayerVehicleID(i),string[256],Float:value,Float:distance,Float:x,Float:y,Float:z;
    GetPlayerPos(i, x, y, z);
    distance = floatsqroot(floatpower(floatabs(floatsub(x,PCarPos[i][PCarX])),2)+floatpower(floatabs(floatsub(y,PCarPos[i][PCarY])),2)+floatpower(floatabs(floatsub(z,PCarPos[i][PCarZ])),2));
    value = floatround(distance * 11000);
    GetVehicleHealth(vehicleid,health);
    if (health >= 900 && health <= 1000)
    {
    format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~n~~n~~w~%d~g~ KM/H~n~~w~%d ~b~/~w~ %d~r~ Benzin~n~~g~~h~%s",floatround(value/1400),Gas[vehicleid],GetGasMax(GetVehicleModel(vehicleid)),VehicleName[GetVehicleModel(vehicleid)-400]);
    GameTextForPlayer(i,string,850,3);
    }
    else if (health >= 600 && health < 900)
    {
    format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~n~~n~~w~%d~g~ KM/H~n~~w~%d ~b~/~w~ %d~r~ Benzin~n~~g~%s",floatround(value/1400),Gas[vehicleid],GetGasMax(GetVehicleModel(vehicleid)),VehicleName[GetVehicleModel(vehicleid)-400]);
    GameTextForPlayer(i,string,850,3);
    }
    else if (health >= 380 && health < 600)
    {
    format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~n~~n~~w~%d~g~ KM/H~n~~w~%d ~b~/~w~ %d~r~ Benzin~n~~y~%s",floatround(value/1400),Gas[vehicleid],GetGasMax(GetVehicleModel(vehicleid)),VehicleName[GetVehicleModel(vehicleid)-400]);
    GameTextForPlayer(i,string,850,3);
    }
    else if (health >= 0 && health < 380)
    {
    format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~n~~n~~w~%d~g~ KM/H~n~~w~%d ~b~/~w~ %d~r~ Benzin~n~~r~%s",floatround(value/1400),Gas[vehicleid],GetGasMax(GetVehicleModel(vehicleid)),VehicleName[GetVehicleModel(vehicleid)-400]);
    GameTextForPlayer(i,string,850,3);
    }
    PCarPos[i][PCarX] = x;
    PCarPos[i][PCarY] = y;
    PCarPos[i][PCarZ] = z;
    }


    }
    return 1;
    }

    (18443) : error 017: undefined symbol "VehicleName"
    (18443) : warning 215: expression has no effect
    (18443) : error 001: expected token: ";", but found "]"
    (18443) : error 029: invalid expression, assumed zero
    (18443) : fatal error 107: too many error messages on one line


    public VehStateCheck()
    {
    foreach (Character,i)
    {
    if(GetPlayerState(i) == PLAYER_STATE_DRIVER && !IsANoTachoVehicle(GetPlayerVehicleID(i)))


    {
    new Float:health,vehicleid = GetPlayerVehicleID(i),string[256],Float:value,Float:distance,Float:x,Float:y,Float:z;
    GetPlayerPos(i, x, y, z);
    distance = floatsqroot(floatpower(floatabs(floatsub(x,PCarPos[i][PCarX])),2)+floatpower(floatabs(floatsub(y,PCarPos[i][PCarY])),2)+floatpower(floatabs(floatsub(z,PCarPos[i][PCarZ])),2));
    value = floatround(distance * 11000);
    GetVehicleHealth(vehicleid,health);
    if (health >= 900 && health <= 1000)
    {
    format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~n~~n~~w~%d~g~ KM/H~n~~w~%d ~b~/~w~ %d~r~ Benzin~n~~g~~h~%s",floatround(value/1400),Gas[vehicleid],GetGasMax(GetVehicleModel(vehicleid)),VehicleName[GetVehicleModel(vehicleid)-400]);
    GameTextForPlayer(i,string,850,3);
    }
    else if (health >= 600 && health < 900)
    {
    format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~n~~n~~w~%d~g~ KM/H~n~~w~%d ~b~/~w~ %d~r~ Benzin~n~~g~%s",floatround(value/1400),Gas[vehicleid],GetGasMax(GetVehicleModel(vehicleid)),VehicleName[GetVehicleModel(vehicleid)-400]);
    GameTextForPlayer(i,string,850,3);
    }
    else if (health >= 380 && health < 600)
    {
    format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~n~~n~~w~%d~g~ KM/H~n~~w~%d ~b~/~w~ %d~r~ Benzin~n~~y~%s",floatround(value/1400),Gas[vehicleid],GetGasMax(GetVehicleModel(vehicleid)),VehicleName[GetVehicleModel(vehicleid)-400]);
    GameTextForPlayer(i,string,850,3);
    }
    else if (health >= 0 && health < 380)
    {
    format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~n~~n~~w~%d~g~ KM/H~n~~w~%d ~b~/~w~ %d~r~ Benzin~n~~r~%s",floatround(value/1400),Gas[vehicleid],GetGasMax(GetVehicleModel(vehicleid)),VehicleName[GetVehicleModel(vehicleid)-400]);
    GameTextForPlayer(i,string,850,3);
    }
    PCarPos[i][PCarX] = x;
    PCarPos[i][PCarY] = y;
    PCarPos[i][PCarZ] = z;
    }


    }
    return 1;
    }

    if(strcmp(cmd, "/Bonus", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pSupporter] >= 1)
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "BENUTZUNG: /Bonus [playerid/SpielerName]");
    return 1;
    }
    giveplayerid = ReturnUser(tmp);
    if(IsPlayerConnected(giveplayerid))
    {
    if(giveplayerid != INVALID_PLAYER_ID)
    {
    if(PlayerInfo[giveplayerid][pLevel] != 1)
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Dieser Spieler ist kein Anfänger mehr!");
    return 1;
    }
    GetPlayerName(playerid, sendername, sizeof(sendername));
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
    format(string, sizeof(string), "* Du hast Spieler %s den Startbonus gegeben (Level: 5, Geld: +$50.000). *",giveplayer);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), "* Admin %s hat dir einen Startbonus gegeben. (Level: 5, Geld: +$50.000).",sendername);
    SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), "* Wir wünschen dir weiterhin viel Spaß beim Spielen auf German-Gold-Reallife!",sendername);
    SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
    GivePlayerMoney(playerid, 5000000); /// Geld was der Spieler bekommt
    PlayerInfo[playerid][pLevel] = 5; // Level was der Spieler bekommt
    PlayerInfo[giveplayerid][pOwnPerso] = 1;
    PlayerInfo[giveplayerid][pCarLic] = 1;

    Admin Info
    new admwarnung[256];
    new iyear, imonth,iday;
    getdate(iyear, imonth, iday);
    format(admwarnung, sizeof(admwarnung), "AdmCmd: %s hat %s den Startbonus gegeben! (%d.%d.%d)", sendername, giveplayer,iday,imonth,iyear);
    ABroadCast(COLOR_LIGHTRED, admwarnung, 1);
    return 1;
    }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Du bist nicht berechtigt, diesen Befehl zu benutzen !");
    return 1;
    }
    }
    return 1;
    }

    H: Stunden
    MIN: Minuten
    S: Stunden
    M: Monate
    Perm: Permanent


    Ban Nachricht:
    AdmCmd: Hacker wurde von Admin gebannt, Grund: Grund
    ---------------------------------------------------------------------------
    -----------------------------Sinnlos gebannt?-------------------------
    Du wurdest gebannt (Grund) sollte dieser Ban Unfair sein,
    dann Poste einen Entbannungsantrag auf unserem Forum
    (Forum) im forum Entbannungsanträge.
    Wir kümmern uns sofort um deinen ban. Noch viel spaß bei
    German-Golden-Reallife.
    ---------------------------------------------------------------------------
    Server closed the Connection.
    wie erstelle ich sowas