Beiträge von Blackspeed

    Ja hier das ist es !! ( GF-Edit )


    public VehCheck()
    {
    for(new i=0;i<MAX_PLAYERS;i++)
    {
    if(IsPlayerConnected(i) && GetPlayerState(i) == PLAYER_STATE_DRIVER && !IsANoTachoVehicle(GetPlayerVehicleID(i)))
    {
    // if(M_Bot[i][PAFK] == 0)
    {
    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;
    }

    Hallo Liebe Brotfischer ich möchte gerne wissen wie ich mein Taho kleiner bekomme ?
    Es ist normal in der Mitte aber ich möchte gerne es kleiner haben die Schrieft KM/H und so sind viel zu drick und zu große wie kann ich das kleiner machen?

    Hallo Liebe Brotfischer


    ich habe ein Problemm mit mein eingebautes Speedometer ich bin aufen Test Server und wollte es Testen aber es wird nichts Angezeigt kann mir bitte einer helfen und sagen wie es ganze zeit angezeigt wird ?

    //#define GasMax 100



    new GasMax[] = {
    60, //"Landstalker",
    50,//"Bravura",
    50,//"Buffalo",
    110,//"Linerunner",
    45,//"Pereniel",
    50,//"Sentinel",
    200,//"Dumper",
    80,//"Firetruck",
    75,//"Trashmaster",
    60,//"Stretch",
    40,//"Manana",
    50,//"Infernus",
    50,//"Voodoo",
    90,//"Pony",
    90,//"Mule",
    48,//"Cheetah",
    70,//"Ambulance",
    60,//"Leviathan",
    60,//"Moonbeam",
    50,//"Esperanto",
    45,//"Taxi",
    40,//"Washington",
    60,//"Bobcat",
    64,//"Mr Whoopee",
    60,//"BF Injection",
    250,//"Hunter",
    50,//"Premier",
    80,//"Enforcer",
    70,//"Securicar",
    52,//"Banshee",
    50,//"Predator",
    80,//"Bus",
    100,//"Rhino",
    50,//"Barracks",
    55,//"Hotknife",
    100,//"Trailer",
    58,//"Previon",
    95,//"Coach",
    48,//"Cabbie",
    45,//"Stallion",
    70,//"Rumpo",
    100,//"RC Bandit",
    50,//"Romero",
    130,//"Packer",
    120,//"Monster Truck",
    45,//"Admiral",
    50,//"Squalo",
    80,//"Seasparrow",
    30,//"Pizzaboy",
    100,//"Tram",
    100,//"Trailer",
    55,//"Turismo",
    55,//"Speeder",
    60,//"Reefer",
    60,//"Tropic",
    160,//"Flatbed",
    80,//"Yankee",
    20,//"Caddy",
    48,//"Solair",
    75,//"Berkley's RC Van",
    100,//"Skimmer",
    50,//"PCJ-600",
    30,//"Roller",
    45,//"Freeway",
    100,//"RC Baron",
    100,//"RC Raider",
    60,//"Glendale",
    55,//"Oceanic",
    45,//"Sanchez",
    80,//"Sparrow",
    95,//"Patriot",
    25,//"Quad",
    50,//"Coastguard",
    50,//"Dinghy",
    50,//"Hermes",
    55,//"Sabre",
    90,//"Rustler",
    60,//"ZR-350",
    60,//"Walton",
    58,//"Regina",
    55,//"Comet",
    100,//"Fahrrad",
    100,//"Burrito",
    100,//"Camper",
    60,//"Marquis",
    35,//"Baggage",
    150,//"Dozer",
    100,//"Maverick",
    100,//"News Chopper",
    80,//"Rancher",
    80,//"FBI Rancher",
    50,//"Virgo",
    50,//"Greenwood",
    100,//"Jetmax",
    70,//"Hotring",
    80,//"Sandking",
    50,//"Blista Compact",
    80,//"Police Maverick",
    80,//"Boxville",
    58,//"Benson",
    80,//"Mesa",
    100,//"RC Goblin",
    75,//"Hotring Racer",
    75,//"Hotring Racer",
    75,//"Bloodring Banger",
    75,//"Rancher",
    60,//"Super GT",
    45,//"Elegant",
    110,//"Journey",
    100,//"Bike",
    100,//"Mountain Bike",
    50,//"Beagle",
    50,//"Cropdust",
    50,//"Stunt",
    140,//"Tanker",
    100,//"RoadTrain",
    50,//"Nebula",
    50,//"Majestic",
    48,//"Buccaneer",
    150,//"Shamal",
    175,//"Hydra",
    45,//"FCR-900",
    45,//"NRG-500",
    48,//"HPV1000",
    135,//"Cement Truck",
    75,//"Tow Truck",
    60,//"Fortune",
    60,//"Cadrona",
    65,//"FBI Truck",
    55,//"Willard",
    30,//"Forklift",
    35,//"Traktor",
    60,//"Combine",
    50,//"Feltzer",
    50,//"Remington",
    55,//"Slamvan",
    55,//"Blade",
    100,//"Freight",
    100,//"Streak",
    100,//"Vortex",
    48,//"Vincent",
    55,//"Bullet",
    58,//"Clover",
    60,//"Sadler",
    90,//"Firetruck",
    60,//"Hustler",
    50,//"Intruder",
    40,//"Primo",
    130,//"Cargobob",
    60,//"Tampa",
    60,//"Sunrise",
    60,//"Merit",
    100,//"Utility",
    50,//"Nevada",
    80,//"Yosemite",
    60,//"Windsor",
    100,//"Monster Truck",
    100,//"Monster Truck",
    55,//"Uranus",
    60,//"Jester",
    60,//"Sultan",
    60,//"Stratum",
    60,//"Elegy",
    150,//"Raindance",
    100,//"RC Tiger",
    50,//"Flash",
    50,//"Tahoma",
    55,//"Savanna",
    60,//"Bandito",
    100,//"Freight",
    100,//"Trailer",
    20,//"Kart",
    20,//"Mower",
    200,//"Duneride",
    35,//"Sweeper",
    50,//"Broadway",
    50,//"Tornado",
    200,//"AT-400",
    200,//"DFT-30",
    65,//"Huntley",
    60,//"Stafford",
    40,//"BF-400",
    70,//"Newsvan",
    30,//"Tug",
    100,//"Trailer",
    50,//"Emperor",
    40,//"Wayfarer",
    60,//"Euros",
    90,//"Hotdog",
    60,//"Club",
    100,//"Trailer",
    100,//"Trailer",
    200,//"Andromada",
    95,//"Dodo",
    100,//"RC Cam",
    50,//"Launch",
    60,//"Streifenwagen",
    60,//"Streifenwagen",
    60,//"Streifenwagen",
    75,//"Polizei Ranger",
    50,//"Picador",
    75,//"S.W.A.T. Van",
    55,//"Alpha",
    55,//"Phoenix",
    50,//"Glendale",
    50,//"Sadler",
    100,//"Luggage Trailer",
    100,//"Luggage Trailer",
    100,//"Stair Trailer",
    52,//"Boxville",
    100,//"Farm Plow",
    100//"Utility Trailer"
    };


    #define GasMax 100


    stock GetGasMax(vehmodel)
    {
    if(vehmodel >= 400 && vehmodel <= 611)
    {
    return GasMax(vehmodel-400);
    }
    return 1;
    }


    for(new c=0;c<CAR_AMOUNT;c++)
    {
    Gas[code=c] = GetGasMax(GetVehicleModel(c));
    }


    So habe ich das und in manchen befehlen z.b /fillcar ist das so drine


    else if( (Gas[veh] + 20) < GetGasMax(GetVehicleModel(veh)) )

    Zitat

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


    Hier die zeile:


    Kann mir mal bitte einer helfen `?

    Hallo Liebe Brotfischer


    also hier habe ich irgend wie ein Problemm nunja also hier


    Zitat

    (18451) : error 025: function heading differs from prototype
    (18491) : error 025: function heading differs from prototype

    und die zeilen: 18451, 18491 ist die


    forward PlayerToPoint(Float:radi, playerid, Float:xs, Float:ys, Float:zs);


    public PlayerToPoint(Float:radi, playerid, Float:xs, Float:ys, Float:zs)
    {
    if(IsPlayerConnected(playerid))
    {
    new Float:oldposx, Float:oldposy, Float:oldposz;
    new Float:tempposx, Float:tempposy, Float:tempposz;
    GetPlayerPos(playerid, oldposx, oldposy, oldposz);
    tempposx = (oldposx -xs);
    tempposy = (oldposy -ys);
    tempposz = (oldposz -zs);
    if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
    {
    return 1;
    }
    }
    return 0;
    }


    Die Problemme sind gekommen wo ich das BlackFox Speedometer eingebaut habe bitte um hilfe ?

    Nunja hier mal ein paar sachen


    forward SafeGivePlayerMoney(plyid, amounttogive);


    unter playerconnect


    SafeGivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);


    ja unnja und ich habe es sehr oft im GM drine nur das bei 4 zeilen das nicht klappt


    SafeGivePlayerMoney[playerid] = 1;
    PlayerMoney[playerid] += strval(inputtext);

    Also es klappt dies schon wieder nicht weiss erlich nicht warum ?


    Zitat

    (19676) : warning 204: symbol is assigned a value that is never used: "vehicleid"
    (80502) : error 028: invalid subscript (not an array or too many subscripts): "SafeGivePlayerMoney"
    (80502) : warning 215: expression has no effect
    (80502) : error 001: expected token: ";", but found "]"
    (80502) : error 029: invalid expression, assumed zero
    (80502) : fatal error 107: too many error messages on one line

    Hier die zeile


    Zitat

    SafeGivePlayerMoney[playerid] = 1;
    PlayerMoney[playerid] + strval(inputtext);

    Habe Fatal Error kann einer mir dabei kurz helfen währ sehr net

    Zitat

    (80650) : error 028: invalid subscript (not an array or too many subscripts): "GetsMoney"
    (80650) : warning 215: expression has no effect
    (80650) : error 001: expected token: ";", but found "]"
    (80650) : error 029: invalid expression, assumed zero
    (80650) : fatal error 107: too many error messages on one line

    und hier die zeilen


    GetsMoney[playerid] = 1; PlayerMoney[playerid] = PlayerMoney[playerid] += strval(inputtext);