Jump to content

setTime clientside buggy?


Feche1320

Recommended Posts

I have been making some tests since I still have this issue, added an IF statement to check if time was set or not since the Wiki says that it returns true if set succesfully, false otherwise:

Quote

Returns true if the new time was successfully set, false otherwise.

This is my current code with the IF statement:

if setTime(22, 0) then
	setMinuteDuration(600000) -- 10 minutes = 1 ingame minute
	outputDebugString("[RACE] Time set")
else
	outputDebugString("[RACE] Could not set game time")
end

And this is what I got:

fNYABDm.png

What could be the reason of setTime() returning false?

Thanks

 

EDIT:

Okay so nevermind, I'm stupid..

I had this hidden somewhere

_setTime = setTime
function setTime()
end

Can be closed, thanks for your help!

Edited by Feche1320
Link to comment

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...