The Killer Posted November 22, 2013 Posted November 22, 2013 hello i was wondering how i can do like this: ?
TAPL Posted November 22, 2013 Posted November 22, 2013 (edited) What is this? It's looks like a window and two edit with one label and there is a time on it. guiCreateWindow guiCreateEdit guiCreateLabel guiSetText Real time? getRealTime Game time? getTime Edited November 22, 2013 by Guest
The Killer Posted November 22, 2013 Author Posted November 22, 2013 (edited) no you didn't understand me i mean this is two edit in one edit. how i can put two edit in one edit Edited November 22, 2013 by Guest
The Killer Posted November 22, 2013 Author Posted November 22, 2013 yes i know, but they like the 'setTime' in admin panel there is two edit right ? and the other edit is for seconds and the firs edit is for minutes.
TAPL Posted November 22, 2013 Posted November 22, 2013 You want the real time or the game time? The game time doesn't have seconds, only hours and minutes. You may notice that the game minute is a second in real time and game hour is a minute in real time. setTime
The Killer Posted November 22, 2013 Author Posted November 22, 2013 yes, but how can i do it like the admin panel, i mean two edit one for hours and one for minutes ?
TAPL Posted November 22, 2013 Posted November 22, 2013 edit1 = guiCreateEdit(...) edit2 = guiCreateEdit(...) --- local Min = guiGetText(edit1) local Hour = guiGetText(edit2) setTime(Hour, Min)
The Killer Posted November 22, 2013 Author Posted November 22, 2013 what is wrong here ? if tonumber(guiGetText(hour) ~= nil and tonumber(guiGetText(min) ~= nil then triggerServerEvent("settim", localPlayer, guiGetText(hour), guiGetText(min))
.:HyPeX:. Posted November 22, 2013 Posted November 22, 2013 You woud've gotten the error yourself.. try using /debugscript 3 if u're admin on the server, or check if there's an output on the program u're using.
The Killer Posted November 22, 2013 Author Posted November 22, 2013 You woud've gotten the error yourself.. try using /debugscript 3 if u're admin on the server, or check if there's an output on the program u're using. i did use it but it's not give me the full answer it says: Error: in line .. etc. but not saying there is a brackets missing.
.:HyPeX:. Posted November 23, 2013 Posted November 23, 2013 Error in line .. Near smth this will be most surely the answer.
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