Jump to content

[Question]


The Killer

Recommended Posts

Posted (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 by Guest
Posted

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 

Posted
edit1 = guiCreateEdit(...) 
edit2 = guiCreateEdit(...) 
--- 
local Min = guiGetText(edit1) 
local Hour = guiGetText(edit2) 
setTime(Hour, Min) 

Posted

what is wrong here ?

if tonumber(guiGetText(hour) ~= nil and  tonumber(guiGetText(min) ~= nil then 
triggerServerEvent("settim", localPlayer, guiGetText(hour), guiGetText(min)) 
Posted
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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...