KBilly Posted October 1, 2015 Posted October 1, 2015 Hello, today I'm encountering a problem based around getElemetData and I am not sure on what to do. So basically I have a table which when you view it shows the players hours, but I also have a script which updates the hours every hour and adds one hour. So my question is how can I get this script to update to like getElementData every hour or so, when I load it after the script adds the hour it's updated but it doesn't update in the table it's self. getElementData( player, 'hoursplayed' )
Moderators Citizen Posted October 1, 2015 Moderators Posted October 1, 2015 I have a table which when you view it shows the players hours By "table" you mean a Lua table or a gridlist ? (I'm pretty sure you meant gridlist though)
KBilly Posted October 1, 2015 Author Posted October 1, 2015 Yeah well it's kinda a table like it's a scoreboard table practically sorry.
KariiiM Posted October 1, 2015 Posted October 1, 2015 Yeah well it's kinda a table like it's a scoreboard table practically sorry. Ah , you want show your data to the scoreboard?
KBilly Posted October 1, 2015 Author Posted October 1, 2015 Yeah but it like needs to update every so often if that makes sense I have it on my scoreboard already it just doesn't update every hour like or eveytime I open the scoreboard...
KBilly Posted October 1, 2015 Author Posted October 1, 2015 I already tried it, it doesn't even update when I restart the scoreboard script, it only updates when the player reconnects on the scoreboard anyways
KariiiM Posted October 1, 2015 Posted October 1, 2015 I already tried it, it doesn't even update when I restart the scoreboard script, it only updates when the player reconnects on the scoreboard anyways Post the code
KBilly Posted October 1, 2015 Author Posted October 1, 2015 Which part, I mean the part I already pasted is all I got regarding the Data the other part is simply drawing it onto the scoreboard it's self
KariiiM Posted October 1, 2015 Posted October 1, 2015 Which part, I mean the part I already pasted is all I got regarding the Data the other part is simply drawing it onto the scoreboard it's self The part that you tried to use timer on it
KBilly Posted October 1, 2015 Author Posted October 1, 2015 I used setTimer on the function which gets the element data
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now