Skocz do zawartości
  • Dołącz do społeczności!

    👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Rekomendowane odpowiedzi

Opublikowano (edytowane)

Hej. Nie jednokrotnie widziałem funkcje zegara w różnych botach, które wykorzystywały jednocześnie kilka klas, dlatego też postanowiłem to lekko ulepszyć i napisałem nowego bota do zegarka, który korzysta tylko i wyłącznie z klasy ts3admin.class

Bot w linku. 

Testujcie i oceniajcie.

U mnie procesor przy poprzednim bocie skakał do 30% (na VPS), a aktualnie nie zwróciłem uwagi aby się podniósł poziom obciążenia procesora (nawet przy zmianie godziny) i wynosi ok 0,1 %, a to wszystko dzięki wyeliminowaniu wszelkich klas z wyjątkiem łączącej się do serwera (w zasadzie bot napisany od podstaw).

To jest ukryta treść, proszę

To jest ukryta treść, proszę

Edytowane przez ArioSpeak
Opublikowano (edytowane)

Nie za bardzo mogę znaleźć gdzie się ustawia zegar na których kanałach ma być niby zegar wchodzi na serwer ale nigdzie nie wyświetla godziny POMOCY!

@Edit

Już działa zapomniałem zrobić cspacer :)

Edytowane przez kombor99
  • 2 miesiące temu...
Opublikowano

instalujesz php na maszyne ,edytujesz zegar.php i odpalasz php zegar.php

 

Mam oto taki błąd przy próbie odpalenia:

 

 

 
11:08
Array
(
    [success] =>
    [errors] => Array
        (
            [0] => ErrorID: 2568 | Message: insufficient client permissions fail                                                                          ed_permid=25
        )
 
    [data] =>
)

Opublikowano (edytowane)

Permisje odpowiednie nadane na range przez która się łączysz  , login i hasło poprawne ?

Edytowane przez luki3507
Opublikowano

Wie ktoś co to za błąd?

[spoiler]22:51
Array
(
    [success] => 1
    [errors] => Array
        (
        )

    [data] => Array
        (
            [0] => Array
                (
                    [cid] => 1
                    [pid] => 0
                    [channel_order] => 0
                    [channel_name] => Default Channel
                    [total_clients] => 3
                    [channel_needed_subscribe_power] => 0
                )

            [1] => Array
                (
                    [cid] => 2
                    [pid] => 0
                    [channel_order] => 1
                    [channel_name] => [cspacer1]┏╋━━━━━━◥◣◆◢◤━━━━━━╋┓
                    [total_clients] => 1
                    [channel_needed_subscribe_power] => 0
                )

            [2] => Array
                (
                    [cid] => 18
                    [pid] => 0
                    [channel_order] => 2
                    [channel_name] => [cspacer]▄▀▀▀▄▄▀▀▀▄─── .▀▀▀▀─▄.─
                    [total_clients] => 0
                    [channel_needed_subscribe_power] => 0
                )

            [3] => Array
                (
                    [cid] => 19
                    [pid] => 0
                    [channel_order] => 18
                    [channel_name] => [cspacer]───▄▀───▄▀─▀─ .▄▄▄─▀─.─
                    [total_clients] => 0
                    [channel_needed_subscribe_power] => 0
                )

            [4] => Array
                (
                    [cid] => 20
                    [pid] => 0
                    [channel_order] => 19
                    [channel_name] => [cspacer]─▄▀───▄▀───▄─ ────.──.─
                    [total_clients] => 0
                    [channel_needed_subscribe_power] => 0
                )

            [5] => Array
                (
                    [cid] => 21
                    [pid] => 0
                    [channel_order] => 20
                    [channel_name] => [cspacer].▄▄▄▄.▄▄▄▄─── ▀▄▄▄▀──.─
                    [total_clients] => 0
                    [channel_needed_subscribe_power] => 0
                )

        )

)

[/spoiler]


Wie ktoś co to za błąd?

[spoiler]

22:51
Array
(
    [success] => 1
    [errors] => Array
        (
        )

    [data] => Array
        (
            [0] => Array
                (
                    [cid] => 1
                    [pid] => 0
                    [channel_order] => 0
                    [channel_name] => Default Channel
                    [total_clients] => 3
                    [channel_needed_subscribe_power] => 0
                )

            [1] => Array
                (
                    [cid] => 2
                    [pid] => 0
                    [channel_order] => 1
                    [channel_name] => [cspacer1]┏╋━━━━━━◥◣◆◢◤━━━━━━╋┓
                    [total_clients] => 1
                    [channel_needed_subscribe_power] => 0
                )

            [2] => Array
                (
                    [cid] => 18
                    [pid] => 0
                    [channel_order] => 2
                    [channel_name] => [cspacer]▄▀▀▀▄▄▀▀▀▄─── .▀▀▀▀─▄.─
                    [total_clients] => 0
                    [channel_needed_subscribe_power] => 0
                )

            [3] => Array
                (
                    [cid] => 19
                    [pid] => 0
                    [channel_order] => 18
                    [channel_name] => [cspacer]───▄▀───▄▀─▀─ .▄▄▄─▀─.─
                    [total_clients] => 0
                    [channel_needed_subscribe_power] => 0
                )

            [4] => Array
                (
                    [cid] => 20
                    [pid] => 0
                    [channel_order] => 19
                    [channel_name] => [cspacer]─▄▀───▄▀───▄─ ────.──.─
                    [total_clients] => 0
                    [channel_needed_subscribe_power] => 0
                )

            [5] => Array
                (
                    [cid] => 21
                    [pid] => 0
                    [channel_order] => 20
                    [channel_name] => [cspacer].▄▄▄▄.▄▄▄▄─── ▀▄▄▄▀──.─
                    [total_clients] => 0
                    [channel_needed_subscribe_power] => 0
                )

        )

)

[/spoiler]


Wie ktoś co to za błąd?

[spoiler]

22:51
Array
(
    [success] => 1
    [errors] => Array
        (
        )

    [data] => Array
        (
            [0] => Array
                (
                    [cid] => 1
                    [pid] => 0
                    [channel_order] => 0
                    [channel_name] => Default Channel
                    [total_clients] => 3
                    [channel_needed_subscribe_power] => 0
                )

            [1] => Array
                (
                    [cid] => 2
                    [pid] => 0
                    [channel_order] => 1
                    [channel_name] => [cspacer1]┏╋━━━━━━◥◣◆◢◤━━━━━━╋┓
                    [total_clients] => 1
                    [channel_needed_subscribe_power] => 0
                )

            [2] => Array
                (
                    [cid] => 18
                    [pid] => 0
                    [channel_order] => 2
                    [channel_name] => [cspacer]▄▀▀▀▄▄▀▀▀▄─── .▀▀▀▀─▄.─
                    [total_clients] => 0
                    [channel_needed_subscribe_power] => 0
                )

            [3] => Array
                (
                    [cid] => 19
                    [pid] => 0
                    [channel_order] => 18
                    [channel_name] => [cspacer]───▄▀───▄▀─▀─ .▄▄▄─▀─.─
                    [total_clients] => 0
                    [channel_needed_subscribe_power] => 0
                )

            [4] => Array
                (
                    [cid] => 20
                    [pid] => 0
                    [channel_order] => 19
                    [channel_name] => [cspacer]─▄▀───▄▀───▄─ ────.──.─
                    [total_clients] => 0
                    [channel_needed_subscribe_power] => 0
                )

            [5] => Array
                (
                    [cid] => 21
                    [pid] => 0
                    [channel_order] => 20
                    [channel_name] => [cspacer].▄▄▄▄.▄▄▄▄─── ▀▄▄▄▀──.─
                    [total_clients] => 0
                    [channel_needed_subscribe_power] => 0
                )

        )

)

[/spoiler]


Wie ktoś co to za błąd?

[spoiler]

22:51
Array
(
    [success] => 1
    [errors] => Array
        (
        )

    [data] => Array
        (
            [0] => Array
                (
                    [cid] => 1
                    [pid] => 0
                    [channel_order] => 0
                    [channel_name] => Default Channel
                    [total_clients] => 3
                    [channel_needed_subscribe_power] => 0
                )

            [1] => Array
                (
                    [cid] => 2
                    [pid] => 0
                    [channel_order] => 1
                    [channel_name] => [cspacer1]┏╋━━━━━━◥◣◆◢◤━━━━━━╋┓
                    [total_clients] => 1
                    [channel_needed_subscribe_power] => 0
                )

            [2] => Array
                (
                    [cid] => 18
                    [pid] => 0
                    [channel_order] => 2
                    [channel_name] => [cspacer]▄▀▀▀▄▄▀▀▀▄─── .▀▀▀▀─▄.─
                    [total_clients] => 0
                    [channel_needed_subscribe_power] => 0
                )

            [3] => Array
                (
                    [cid] => 19
                    [pid] => 0
                    [channel_order] => 18
                    [channel_name] => [cspacer]───▄▀───▄▀─▀─ .▄▄▄─▀─.─
                    [total_clients] => 0
                    [channel_needed_subscribe_power] => 0
                )

            [4] => Array
                (
                    [cid] => 20
                    [pid] => 0
                    [channel_order] => 19
                    [channel_name] => [cspacer]─▄▀───▄▀───▄─ ────.──.─
                    [total_clients] => 0
                    [channel_needed_subscribe_power] => 0
                )

            [5] => Array
                (
                    [cid] => 21
                    [pid] => 0
                    [channel_order] => 20
                    [channel_name] => [cspacer].▄▄▄▄.▄▄▄▄─── ▀▄▄▄▀──.─
                    [total_clients] => 0
                    [channel_needed_subscribe_power] => 0
                )

        )

)

[/spoiler]


Wie ktoś co to za błąd?

[spoiler]

22:51
Array
(
    [success] => 1
    [errors] => Array
        (
        )

    [data] => Array
        (
            [0] => Array
                (
                    [cid] => 1
                    [pid] => 0
                    [channel_order] => 0
                    [channel_name] => Default Channel
                    [total_clients] => 3
                    [channel_needed_subscribe_power] => 0
                )

            [1] => Array
                (
                    [cid] => 2
                    [pid] => 0
                    [channel_order] => 1
                    [channel_name] => [cspacer1]┏╋━━━━━━◥◣◆◢◤━━━━━━╋┓
                    [total_clients] => 1
                    [channel_needed_subscribe_power] => 0
                )

            [2] => Array
                (
                    [cid] => 18
                    [pid] => 0
                    [channel_order] => 2
                    [channel_name] => [cspacer]▄▀▀▀▄▄▀▀▀▄─── .▀▀▀▀─▄.─
                    [total_clients] => 0
                    [channel_needed_subscribe_power] => 0
                )

            [3] => Array
                (
                    [cid] => 19
                    [pid] => 0
                    [channel_order] => 18
                    [channel_name] => [cspacer]───▄▀───▄▀─▀─ .▄▄▄─▀─.─
                    [total_clients] => 0
                    [channel_needed_subscribe_power] => 0
                )

            [4] => Array
                (
                    [cid] => 20
                    [pid] => 0
                    [channel_order] => 19
                    [channel_name] => [cspacer]─▄▀───▄▀───▄─ ────.──.─
                    [total_clients] => 0
                    [channel_needed_subscribe_power] => 0
                )

            [5] => Array
                (
                    [cid] => 21
                    [pid] => 0
                    [channel_order] => 20
                    [channel_name] => [cspacer].▄▄▄▄.▄▄▄▄─── ▀▄▄▄▀──.─
                    [total_clients] => 0
                    [channel_needed_subscribe_power] => 0
                )

        )

)

[/spoiler]

  • 1 rok później...

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Zaloguj się poniżej.

Zaloguj się
×
×
  • Dodaj nową pozycję...