Beiträge von Dome_

    Guten Tag,
    Aufg meinem alten VServer wurde der Server via start.sh über ein Panel gestartet und Startete sofort.
    Nun hab ich einen neuen ohne panel und starte bisher ./7777. Nun braucht jetzt nur 5 min zum starten warum?


    Danke im vorraus.
    Mfg,

    Hey
    Bin auf der Suche nach einer Website wo gute WBB 3 Style`s verkauft und ich dort mit SMS2Pay bezahlen kann.
    Danke im vorraus.
    Mfg,

    Willst du das wir dir helfen? -> Dann poste doch mal den Code?!

    public OnGameModeInit()
    {
    printf("Starte den server");
    mysql_debug(1);//um alles MySQL zu debuggen 0 = Aus -> 1 = An
    new string[MAX_PLAYER_NAME],
    string1[MAX_PLAYER_NAME],
    string2[256];


    #if defined MySQL
    MySQLConnection = mysql_connect(MySQL_Host, MySQL_User, MySQL_DB, MySQL_Passwort);
    printf("MSQL --> hat die Verbindung zur Datenbank aufgebaut");
    #endif


    LoadProperty();
    printf("OnGamemodeInt: LoadProperty");
    LoadBiz();
    printf("OnGamemodeInt: LoadBiz");
    LoadSBiz();
    printf("OnGamemodeInt: LoadSBiz");
    LoadTankenBiz();
    printf("OnGamemodeInt: LoadTankenBiz");
    LoadGangAutos();
    printf("OnGamemodeInt: LoadGangAutos");
    LoadStuff();
    printf("OnGamemodeInt: LoadStuff");
    LoadKassenInfo();
    printf("OnGamemodeInt: LoadKassenInfo");
    LoadGangfightZones();
    printf("OnGamemodeInt: LoadGangfightZones");
    LoadGangWarInfos();
    printf("OnGamemodeInt: LoadGangWarInfos");
    //bus by Toby
    //NO-DM Zonen
    for(new i = 0; i < sizeof(NODMZonenInfo); i++)
    {
    NODMZonenInfo[i][NODMZoneID] = GangZoneCreate(NODMZonenInfo[i][NODMMinX],NODMZonenInfo[i][NODMMinY],NODMZonenInfo[i][NODMMaxX],NODMZonenInfo[i][NODMMaxY]);
    }
    for(new i = 0; i < sizeof(VersteckSystemInfo); i++)
    {
    Create3DTextLabel("Du befindest dich in einem Versteck.\nDetective können dich hier nicht aufsuchen!",COLOR_WHITE,VersteckSystemInfo[i][AchseX],VersteckSystemInfo[i][AchseY],VersteckSystemInfo[i][AchseZ],5.0,0,0);
    CreatePickup(1247, 23,VersteckSystemInfo[i][AchseX],VersteckSystemInfo[i][AchseY],VersteckSystemInfo[i][AchseZ]);
    }
    printf("Beginne Gangzonen zu erstellen");


    AntiDeAMX();
    printf("AntiDeAMX aufgerufen");
    News[hTaken1] = 0; News[hTaken2] = 0; News[hTaken3] = 0; News[hTaken4] = 0; News[hTaken5] = 0;
    format(string, sizeof(string), "Nothing");
    strmid(News[hAdd1], string, 0, strlen(string), 255);
    strmid(News[hAdd2], string, 0, strlen(string), 255);
    strmid(News[hAdd3], string, 0, strlen(string), 255);
    strmid(News[hAdd4], string, 0, strlen(string), 255);
    strmid(News[hAdd5], string, 0, strlen(string), 255);
    format(string1, sizeof(string1), "Niemand");
    strmid(News[hContact1], string1, 0, strlen(string1), 255);
    strmid(News[hContact2], string1, 0, strlen(string1), 255);
    strmid(News[hContact3], string1, 0, strlen(string1), 255);
    strmid(News[hContact4], string1, 0, strlen(string1), 255);
    strmid(News[hContact5], string1, 0, strlen(string1), 255);
    PlayerHaul[1][pCapasity] = 150;
    PlayerHaul[2][pCapasity] = 150;
    PlayerHaul[3][pCapasity] = 150;
    PlayerHaul[4][pCapasity] = 150;
    PlayerHaul[5][pCapasity] = 75;
    PlayerHaul[6][pCapasity] = 75;
    PlayerHaul[7][pCapasity] = 75;
    SetGameModeText("German-Roleplay");
    //SetPDistance(40);
    SetNameTagDrawDistance(30.0);
    EnableStuntBonusForAll(0);
    AllowInteriorWeapons(1);
    ShowPlayerMarkers(400);
    AllowAdminTeleport(1);
    DisableInteriorEnterExits();
    ManualVehicleEngineAndLights();


    Der Code braucht normal nicht 5 Min nur auf meinem Neuen VServer.


    Wo finde ich den? Der Server braucht immer ca. 5 min das er startet.

    Hey
    Habe folgendes Problem:
    [09:52:07] [debug] Run time error 4: "Array index out of bounds"
    [09:52:07] [debug] Accessing element at negative index -1
    [09:52:07] [debug] AMX backtrace:
    [09:52:07] [debug] #0 001dffdc in public OnVehicleSpawn (0x00000070) from gg.amx
    [09:52:07] [debug] #1 native SetVehicleToRespawn () [080d39b0] from 7777
    [09:52:07] [debug] #2 00095a54 in public OnGameModeInit () from gg.amx
    [09:52:07] [debug] Run time error 4: "Array index out of bounds"
    [09:52:07] [debug] Accessing element at negative index -1
    [09:52:07] [debug] AMX backtrace:
    [09:52:07] [debug] #0 001dffdc in public OnVehicleSpawn (0x00000071) from gg.amx
    [09:52:07] [debug] #1 native SetVehicleToRespawn () [080d39b0] from 7777
    [09:52:07] [debug] #2 00095a54 in public OnGameModeInit () from gg.amx
    [09:52:07] [debug] Run time error 4: "Array index out of bounds"
    [09:52:07] [debug] Accessing element at negative index -1
    [09:52:07] [debug] AMX backtrace:
    [09:52:07] [debug] #0 001dffdc in public OnVehicleSpawn (0x00000072) from gg.amx
    [09:52:07] [debug] #1 native SetVehicleToRespawn () [080d39b0] from 7777
    [09:52:07] [debug] #2 00095a54 in public OnGameModeInit () from gg.amx
    [09:52:07] [debug] Run time error 4: "Array index out of bounds"
    [09:52:07] [debug] Accessing element at negative index -1
    [09:52:07] [debug] AMX backtrace:
    [09:52:07] [debug] #0 001dffdc in public OnVehicleSpawn (0x00000073) from gg.amx
    [09:52:07] [debug] #1 native SetVehicleToRespawn () [080d39b0] from 7777
    [09:52:07] [debug] #2 00095a54 in public OnGameModeInit () from gg.amx
    [09:52:07] [debug] Run time error 4: "Array index out of bounds"
    [09:52:07] [debug] Accessing element at negative index -1
    [09:52:07] [debug] AMX backtrace:
    [09:52:07] [debug] #0 001dffdc in public OnVehicleSpawn (0x00000074) from gg.amx
    [09:52:07] [debug] #1 native SetVehicleToRespawn () [080d39b0] from 7777
    [09:52:07] [debug] #2 00095a54 in public OnGameModeInit () from gg.amx
    [09:52:07] [debug] Run time error 4: "Array index out of bounds"
    [09:52:07] [debug] Accessing element at negative index -1
    [09:52:07] [debug] AMX backtrace:
    [09:52:07] [debug] #0 001dffdc in public OnVehicleSpawn (0x00000075) from gg.amx
    [09:52:07] [debug] #1 native SetVehicleToRespawn () [080d39b0] from 7777
    [09:52:07] [debug] #2 00095a54 in public OnGameModeInit () from gg.amx
    [09:52:07] [debug] Run time error 4: "Array index out of bounds"
    [09:52:07] [debug] Accessing element at negative index -1
    [09:52:07] [debug] AMX backtrace:
    [09:52:07] [debug] #0 001dffdc in public OnVehicleSpawn (0x00000076) from gg.amx
    [09:52:07] [debug] #1 native SetVehicleToRespawn () [080d39b0] from 7777
    [09:52:07] [debug] #2 00095a54 in public OnGameModeInit () from gg.amx
    [09:52:07] [debug] Run time error 4: "Array index out of bounds"
    [09:52:07] [debug] Accessing element at negative index -1
    [09:52:07] [debug] AMX backtrace:
    [09:52:07] [debug] #0 001dffdc in public OnVehicleSpawn (0x00000077) from gg.amx
    [09:52:07] [debug] #1 native SetVehicleToRespawn () [080d39b0] from 7777
    [09:52:07] [debug] #2 00095a54 in public OnGameModeInit () from gg.amx
    [09:52:07] [debug] Run time error 4: "Array index out of bounds"
    [09:52:07] [debug] Accessing element at negative index -1
    [09:52:07] [debug] AMX backtrace:
    [09:52:07] [debug] #0 001dffdc in public OnVehicleSpawn (0x00000078) from gg.amx
    [09:52:07] [debug] #1 native SetVehicleToRespawn () [080d39b0] from 7777
    [09:52:07] [debug] #2 00095a54 in public OnGameModeInit () from gg.amx
    [09:52:07] [debug] Run time error 4: "Array index out of bounds"
    [09:52:07] [debug] Accessing element at negative index -1
    [09:52:07] [debug] AMX backtrace:
    [09:52:07] [debug] #0 001dffdc in public OnVehicleSpawn (0x00000079) from gg.amx
    [09:52:07] [debug] #1 native SetVehicleToRespawn () [080d39b0] from 7777
    [09:52:07] [debug] #2 00095a54 in public OnGameModeInit () from gg.amx


    Danke im vorraus.

    Hey
    Ich möchte das man sobald man hinein fliegt in den CP für 15 sek gefreezt wird.
    if(CP[playerid] == 999999)//tutorial
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    TogglePlayerControllable(playerid, 0);
    SendClientMessage(playerid, COLOR_YELLOW, " Fliege nun nach San Fierro");
    SetPlayerCheckpoint(playerid,-1626.2587,-133.2732,14.1484,5.0);
    CP[playerid] = 100000;
    return 1;
    }
    }
    if(CP[playerid] == 100000)
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    SendClientMessage(playerid, COLOR_YELLOW, " Fliege nun nach LV");
    SetPlayerCheckpoint(playerid,1389.4208,1670.2566,12.1643,5.0);
    CP[playerid] = 100100;
    return 1;
    }
    }
    if(CP[playerid] == 100100)
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    SendClientMessage(playerid, COLOR_YELLOW, " Du erhälst 3000$ und 4 Erfahrungspunkte");
    GivePlayerMoneys(playerid, 3000);
    SetPlayerCheckpoint(playerid,1984.1763,-2593.0461,13.5512,5.0);
    CP[playerid] = 999999;
    DisablePlayerCheckpoint(playerid);
    return 1;
    }
    }


    Vielen Dank Thema Erledigt

    Hey
    Sobald man in den ersten fliegt kommt das vom letzen.
    if(CP[playerid] == 999999)
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    SendClientMessage(playerid, COLOR_YELLOW, " Fliege nun nach San Fierro");
    SetPlayerCheckpoint(playerid,-1630.5909,-137.4778,14.1468);
    CP[playerid] = 100000;
    return 1;
    }
    }
    if(CP[playerid] == 100000)
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    SendClientMessage(playerid, COLOR_YELLOW, " Fliege nun nach LV");
    SetPlayerCheckpoint(playerid,1389.4208,1670.2566,12.1643);
    CP[playerid] = 100100;
    return 1;
    }
    }
    if(CP[playerid] == 100100)
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    SendClientMessage(playerid, COLOR_YELLOW, " Du erhälst 3000$ und 4 Erfahrungspunkte");
    DisablePlayerCheckpoint(playerid);
    return 1;
    }
    }
    for(new h=0; h<sizeof(PilotFlug); h++){
    if(GetPlayerVehicleID(playerid) == PilotFlug[h]){
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 511)
    {
    SendClientMessage(playerid, COLOR_LIGHTBLUE2, "Du bist als Pilot im Dienst");
    SetPlayerCheckpoint(playerid,1984.1763,-2593.0461,13.5512, 15);
    CP[playerid] = 999999;
    return 1;

    }
    else
    {
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid, COLOR_GREY, "Du bist kein Pilot.");
    }}}