The Killer Posted November 22, 2013 Share Posted November 22, 2013 hello i was wondering how i can do like this: ? Link to comment
TAPL Posted November 22, 2013 Share 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 Link to comment
The Killer Posted November 22, 2013 Author Share 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 Link to comment
The Killer Posted November 22, 2013 Author Share 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. Link to comment
TAPL Posted November 22, 2013 Share 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 Link to comment
The Killer Posted November 22, 2013 Author Share 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 ? Link to comment
TAPL Posted November 22, 2013 Share Posted November 22, 2013 You want set the time or get the time? Link to comment
The Killer Posted November 22, 2013 Author Share Posted November 22, 2013 set the time Link to comment
TAPL Posted November 22, 2013 Share Posted November 22, 2013 edit1 = guiCreateEdit(...) edit2 = guiCreateEdit(...) --- local Min = guiGetText(edit1) local Hour = guiGetText(edit2) setTime(Hour, Min) Link to comment
The Killer Posted November 22, 2013 Author Share 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)) Link to comment
TAPL Posted November 22, 2013 Share Posted November 22, 2013 Brackets missing at line 1 for tonumber. Link to comment
.:HyPeX:. Posted November 22, 2013 Share 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. Link to comment
The Killer Posted November 22, 2013 Author Share 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. Link to comment
.:HyPeX:. Posted November 23, 2013 Share Posted November 23, 2013 Error in line .. Near smth this will be most surely the answer. Link to comment
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