Solved continuous update in tab header

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

OMG_Tobias

Member
Jan 26, 2017
13
0
0
I'm wondering if there is a way to continuously update the tab header for certain features. Such as ping or time?
I tried some stuff out and looked on the web for it but I haven't found anything.

code_language.skript:
every 1 second:
    loop all players:
        set tab header to "%ping% %time%" for player



On join:
    set tab header to "%ping% %time%" for player

EDIT: Don't look at the every 1 second xD I just realized it would not let you log in the server. Did not think about that until now.
[doublepost=1499284669,1499195547][/doublepost]Little bump
 
Trying:
code_language.skript:
[doublepost=1499329121,1499329012][/doublepost]
code_language.skript:
on join:
    while event-player's online:

        set tab header "%ping% %time%" for player
 
Trying:
code_language.skript:
[doublepost=1499329121,1499329012][/doublepost]
code_language.skript:
on join:
    while event-player's online:
        set tab header "%ping% %time%" for player
Your code prints an error for me. However I tried something like this the other day, the types will not update. They will just freeze.
code_language.skript:
on join:
    while player is online:
        set tab header to "%ping% %time%" for player
 
Last edited by a moderator:
that could would lag really hard.
put a delay for the "while"
 
that could would lag really hard.
put a delay for the "while"
it'll not lag really hard, it'll crash the server. You can look at my Tab script and see how I did it, not the best way achieve it but it should work fine.
 
it'll not lag really hard, it'll crash the server. You can look at my Tab script and see how I did it, not the best way achieve it but it should work fine.
Never thought about functions. Thanks, I'm gonna try it out. I will leave this thread open in case of any doubts
 
Status
Not open for further replies.