Beiträge von Kin[G]BaLLeR

    ALso fangen wir mal an....
    Wenn ich jetzt Server Starte (noch über pc mit eigenem GM) kommt immer :


    [21:55] Script[gamemodes/GM1.amx]: Run time error 20: "Invalid index parameter (bad entry point)"
    [21:55] --- Server Shutting Down.



    Wer kann helfen nicht unnötig schreiben nur wer helfen kann.



    danke mfg.Waldi

    ja danke aber was is besser pmember oder das gteam


    EDIT: habe Errors
    C:\Dokumente und Einstellungen\fell\Desktop\Waldi\LVRP\gamemodes\GM.pwn(43) : warning 225: unreachable code
    C:\Dokumente und Einstellungen\fell\Desktop\Waldi\LVRP\gamemodes\GM.pwn(55) : warning 217: loose indentation
    C:\Dokumente und Einstellungen\fell\Desktop\Waldi\LVRP\gamemodes\GM.pwn(59) : warning 217: loose indentation


    if(classid == 0)
    {
    gTeam[playerid] = TEAM_Cop;
    }
    if(classid == 1)
    {
    gTeam[playerid] = TEAM_Taxi;
    }
    if(classid == 2)
    {
    gTeam[playerid] = TEAM_Medic;
    }
    if(classid == 3)
    {
    gTeam[playerid] = TEAM_Biker;
    }
    return 1;

    wer könnte mir das nochmal mit gTeam erklären bin zu dumm dafür ?


    und wer könnte mir megaphone+sperre+tazer machen für eigenes GM?




    mfg.Waldi


    P.S danke wenn jemand so nett ist und mir macht(erklärt)

    #include <a_samp>
    static gTeam[MAX_PLAYERS];
    #define TEAM_Biker 2
    #define TEAM_COPS 1
    #define blau 0x33AAFFAA
    #define COLOR_GREY 0xBEBEBEAA
    #define COLOR_WHITE 0xFFFFFFAA
    #define COLOR_GREEN 0x33AA33AA
    #define COLOR_GRAD5 0xE3E3E3FF
    #define COLOR_GRAD1 0xB4B5B7FF
    #define COLOR_YELLOW 0xFFFF00AA



    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print(" |Dorf|Reallife| by Waldi");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }



    public OnGameModeInit()
    {
    SetGameModeText("Blank Script");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    //-----------------------Cars-----------------------------------//
    AddStaticVehicle(463,329.3150,-44.5616,1.0560,93.8002,125,125); // bikergang
    AddStaticVehicle(463,329.2610,-46.2688,1.0533,88.0368,125,125); // bikergang
    AddStaticVehicle(463,329.0899,-47.8094,1.0532,90.9776,125,125); // bikergang
    AddStaticVehicle(463,329.0309,-49.4808,1.0507,94.4550,125,125); // bikergang
    AddStaticVehicle(463,328.9554,-51.1017,1.0498,90.3637,125,125); // bikergang
    AddStaticVehicle(463,328.8583,-52.7996,1.0496,92.9790,125,125); // bikergang
    AddStaticVehicle(463,328.8426,-54.2901,1.0472,87.8804,125,125); // bikergang
    AddStaticVehicle(579,333.8526,-35.8094,1.4019,89.6096,125,125); // bikergang
    AddStaticVehicle(579,333.9219,-32.4778,1.4022,89.2319,125,125); // bikergang
    AddStaticVehicle(571,308.9101,-43.1813,0.8436,0.5755,125,125); // bikergang
    AddStaticVehicle(571,311.8344,-43.2515,0.8446,357.3977,125,125); // bikergang
    AddStaticVehicle(586,310.3597,-46.3480,1.0983,181.9723,125,125); // bikergang
    AddStaticVehicle(586,312.0049,-46.5342,1.0980,181.1982,125,125); // bikergang
    AddStaticVehicle(586,313.8733,-46.3633,1.0984,183.9691,125,125); // bikergang
    AddStaticVehicle(586,315.4269,-46.4567,1.0980,185.3183,125,125); // bikergang
    AddStaticVehicle(586,317.0502,-46.4121,1.0983,182.5962,125,125); // bikergang
    AddStaticVehicle(471,335.6248,-56.7554,0.9756,88.8786,125,125); // bikergang
    AddStaticVehicle(471,335.6596,-59.6258,0.9901,88.3646,125,125); // bikergang


    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;

    if(classid == 0)
    {
    gTeam[playerid] = TEAM_COPS;
    }
    if(classid == 1)
    {
    gTeam[playerid] = TEAM_Biker;
    }
    return 1;

    if(classid == 0) was is daran falsch (gTeam) error:
    C:\Dokumente und Einstellungen\fell\Desktop\Waldi\LVRP\gamemodes\GM.pwn(67) : warning 225: unreachable code
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Warning.