Beiträge von LuxX

    Ich bekomme da Errors
    C:\Users\LuxX\Desktop\Samp Server\gamemodes\Reallife.pwn(588) : warning 201: redefinition of constant/macro (symbol "SavePlayerPosEnum")
    C:\Users\LuxX\Desktop\Samp Server\gamemodes\Reallife.pwn(589) : error 021: symbol already defined: "LastX"
    C:\Users\LuxX\Desktop\Samp Server\gamemodes\Reallife.pwn(593) : error 021: symbol already defined: "SavePlayerPos"
    C:\Users\LuxX\Desktop\Samp Server\gamemodes\Reallife.pwn(595) : error 021: symbol already defined: "UpdateSeconds"
    C:\Users\LuxX\Desktop\Samp Server\gamemodes\Reallife.pwn(4193) : warning 209: function "OnPlayerStateChange" should return a value
    C:\Users\LuxX\Desktop\Samp Server\gamemodes\Reallife.pwn(4194) : error 010: invalid function or declaration
    C:\Users\LuxX\Desktop\Samp Server\gamemodes\Reallife.pwn(6810) : error 001: expected token: ";", but found "for"
    C:\Users\LuxX\Desktop\Samp Server\gamemodes\Reallife.pwn(27672) : error 028: invalid subscript (not an array or too many subscripts): "i"
    C:\Users\LuxX\Desktop\Samp Server\gamemodes\Reallife.pwn(27673) : error 001: expected token: "}", but found "if"
    C:\Users\LuxX\Desktop\Samp Server\gamemodes\Reallife.pwn(27673 -- 27674) : error 029: invalid expression, assumed zero
    C:\Users\LuxX\Desktop\Samp Server\gamemodes\Reallife.pwn(27675) : error 017: undefined symbol "i"
    C:\Users\LuxX\Desktop\Samp Server\gamemodes\Reallife.pwn(27676) : error 017: undefined symbol "i"
    C:\Users\LuxX\Desktop\Samp Server\gamemodes\Reallife.pwn(27677) : error 017: undefined symbol "i"
    C:\Users\LuxX\Desktop\Samp Server\gamemodes\Reallife.pwn(27683) : error 017: undefined symbol "i"
    C:\Users\LuxX\Desktop\Samp Server\gamemodes\Reallife.pwn(27684) : error 017: undefined symbol "i"
    C:\Users\LuxX\Desktop\Samp Server\gamemodes\Reallife.pwn(27685) : error 017: undefined symbol "i"
    C:\Users\LuxX\Desktop\Samp Server\gamemodes\Reallife.pwn(27686) : error 017: undefined symbol "i"
    C:\Users\LuxX\Desktop\Samp Server\gamemodes\Reallife.pwn(27687) : error 017: undefined symbol "i"
    C:\Users\LuxX\Desktop\Samp Server\gamemodes\Reallife.pwn(27688) : error 017: undefined symbol "i"
    C:\Users\LuxX\Desktop\Samp Server\gamemodes\Reallife.pwn(27689) : error 017: undefined symbol "i"
    C:\Users\LuxX\Desktop\Samp Server\gamemodes\Reallife.pwn(27691) : error 017: undefined symbol "i"
    C:\Users\LuxX\Desktop\Samp Server\gamemodes\Reallife.pwn(27692) : error 017: undefined symbol "i"
    C:\Users\LuxX\Desktop\Samp Server\gamemodes\Reallife.pwn(27693) : error 017: undefined symbol "i"
    C:\Users\LuxX\Desktop\Samp Server\gamemodes\Reallife.pwn(27695) : error 054: unmatched closing brace ("}")
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    22 Errors.

    Hallo Leute,
    Ich will dieses FS in meinen Gamemode Übernehmen weis nur nicht wie weil da sachen dabei sind die ich in meinem GS net drinn habe.
    wie zum beispiel public OnFilterScriptExit()
    Hier ist das FS

    Spoiler anzeigen
    //-----0000----0----0--------00000---------0-------000000-----------------------

    Spoiler anzeigen
    //-----0---0----0--0---------0----0-------0-0------0----------------------------
    //-----0000------0-----------00000-------0---0-----00000------------------------
    //-----0---0----0------------0-00-------0000000----0----------------------------
    //-----0000----0-------------0---00----0-------0---0-----------------by R@f ©---
    #include

    Spoiler anzeigen
    #define SLOTS 200

    Spoiler anzeigen
    forward UpdateSpeed ();

    Spoiler anzeigen
    enum SavePlayerPosEnum {
    Float:LastX,
    Float:LastY,
    Float:LastZ
    }

    Spoiler anzeigen
    new SavePlayerPos[SLOTS][SavePlayerPosEnum];
    new Text:Speedo[SLOTS];
    new UpdateSeconds;

    Spoiler anzeigen
    new CarName[][] =
    {
    "Landstalker", "Bravura", "Buffalo", "Linerunner", "Perrenial", "Sentinel",
    "Dumper", "Firetruck", "Trashmaster", "Stretch", "Manana", "Infernus",
    "Voodoo", "Pony", "Mule", "Cheetah", "Ambulance", "Leviathan", "Moonbeam",
    "Esperanto", "Taxi", "Washington", "Bobcat", "Whoopee", "BF Injection",
    "Hunter", "Premier", "Enforcer", "Securicar", "Banshee", "Predator", "Bus",
    "Rhino", "Barracks", "Hotknife", "Trailer", "Previon", "Coach", "Cabbie",
    "Stallion", "Rumpo", "RC Bandit", "Romero", "Packer", "Monster", "Admiral",
    "Squalo", "Seasparrow", "Pizzaboy", "Tram", "Trailer", "Turismo", "Speeder",
    "Reefer", "Tropic", "Flatbed", "Yankee", "Caddy", "Solair", "Berkley's RC Van",
    "Skimmer", "PCJ-600", "Faggio", "Freeway", "RC Baron", "RC Raider", "Glendale",
    "Oceanic","Sanchez", "Sparrow", "Patriot", "Quad", "Coastguard", "Dinghy",
    "Hermes", "Sabre", "Rustler", "ZR-350", "Walton", "Regina", "Comet", "BMX",
    "Burrito", "Camper", "Marquis", "Baggage", "Dozer", "Maverick", "News Chopper",
    "Rancher", "FBI Rancher", "Virgo", "Greenwood", "Jetmax", "Hotring", "Sandking",
    "Blista Compact", "Police Maverick", "Boxvillde", "Benson", "Mesa", "RC Goblin",
    "Hotring Racer A", "Hotring Racer B", "Bloodring Banger", "Rancher", "Super GT",
    "Elegant", "Journey", "Bike", "Mountain Bike", "Beagle", "Cropduster", "Stunt",
    "Tanker", "Roadtrain", "Nebula", "Majestic", "Buccaneer", "Shamal", "Hydra",
    "FCR-900", "NRG-500", "HPV1000", "Cement Truck", "Tow Truck", "Fortune",
    "Cadrona", "FBI Truck", "Willard", "Forklift", "Tractor", "Combine", "Feltzer",
    "Remington", "Slamvan", "Blade", "Freight", "Streak", "Vortex", "Vincent",
    "Bullet", "Clover", "Sadler", "Firetruck", "Hustler", "Intruder", "Primo",
    "Cargobob", "Tampa", "Sunrise", "Merit", "Utility", "Nevada", "Yosemite",
    "Windsor", "Monster", "Monster", "Uranus", "Jester", "Sultan", "Stratium",
    "Elegy", "Raindance", "RC Tiger", "Flash", "Tahoma", "Savanna", "Bandito",
    "Freight Flat", "Streak Carriage", "Kart", "Mower", "Dune", "Sweeper",
    "Broadway", "Tornado", "AT-400", "DFT-30", "Huntley", "Stafford", "BF-400",
    "News Van", "Tug", "Trailer", "Emperor", "Wayfarer", "Euros", "Hotdog", "Club",
    "Freight Box", "Trailer", "Andromada", "Dodo", "RC Cam", "Launch", "Police Car",
    "Police Car", "Police Car", "Police Ranger", "Picador", "S.W.A.T", "Alpha",
    "Phoenix", "Glendale", "Sadler", "Luggage", "Luggage", "Stairs", "Boxville",
    "Tiller", "Utility Trailer"
    };

    Spoiler anzeigen
    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print("----------R@f's speedo script---------");
    print("--------------------------------------\n");
    SetTimer("UpdateSpeed",1000, 1);
    return 1;
    }

    Spoiler anzeigen
    public OnFilterScriptExit()
    {
    for(new i=0; i {
    if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i))
    {
    TextDrawDestroy(Speedo[i]);
    }
    }
    return 1;
    }

    Spoiler anzeigen
    main()
    {
    }

    Spoiler anzeigen
    public OnPlayerConnect(playerid)
    {
    SendClientMessage(playerid,0x00FF00FF,"This server is running whit R@f's Speedo FilterScript");
    return 1;
    }

    Spoiler anzeigen
    public OnPlayerStateChange(playerid, newstate, oldstate)
    {
    if(newstate == PLAYER_STATE_ONFOOT)
    {
    TextDrawHideForPlayer(playerid, Speedo[playerid]);
    }
    return 1;
    }

    Spoiler anzeigen
    public UpdateSpeed()
    {
    new Float:x,Float:y,Float:z;
    new Float:distance,value,string[256];
    new Float:health;
    for(new i=0; i {
    if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i))
    {
    TextDrawDestroy(Speedo[i]);
    }
    }

    Spoiler anzeigen
    for(new i=0; i {
    if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i))
    {
    GetPlayerPos(i, x, y, z);
    GetVehicleHealth(GetPlayerVehicleID(i), health);
    distance = floatsqroot(floatpower(floatabs(floatsub(x,SavePlayerPos[i][LastX])),2)+floatpower(floatabs(floatsub(y,SavePlayerPos[i][LastY])),2)+floatpower(floatabs(floatsub(z,SavePlayerPos[i][LastZ])),2));
    value = floatround(distance * 5000);
    if(UpdateSeconds > 1)
    {
    value = floatround(value / UpdateSeconds);
    }
    format(string,sizeof(string),"~g~Vehicle : ~w~%s ~n~~b~MPH : ~w~%d / ~b~KM/H : ~w~%d~n~~r~Vehicle Health:~w~ %.2f",CarName[GetVehicleModel(GetPlayerVehicleID(i))-400],floatround(value/1600),floatround(value/1000),health);
    Speedo[i] = TextDrawCreate(320.00, 380.00, string);
    TextDrawSetOutline(Speedo[i], 0);
    TextDrawFont(Speedo[i], 3);
    TextDrawSetProportional(Speedo[i], 2);
    TextDrawAlignment(Speedo[i], 2);
    TextDrawShowForPlayer (i, Speedo[i]);
    }
    SavePlayerPos[i][LastX] = x;
    SavePlayerPos[i][LastY] = y;
    SavePlayerPos[i][LastZ] = z;
    }
    }

    Moin ich habe eine Frage..
    Wie kann ich bei meinem Gamemode die Gangart ändern der hat son schwulen lauf schritt xD will das der normal rennt wie auf nem roleplay script
    xD
    mfg.