Error code when creating timer?

BrundoMundo
02 Apr 2022, 20:46Hello! I have been creating a timer for my game, and it works as intended, but a error message pops up.
Error message: Error running script: No parameters passed to EnableTimer function - expected 1 parameters
Ill show you the code im using for my timer:
if (game.pov.parent = Room) {
msg ("Message.")
MoveObject (Person, Room)
DisableTimer (timer)
}
Help would be much appreciated, thank you!
XanMag
02 Apr 2022, 22:52Does the error message pop up when you leave the room? When the timer expires? Or other?
mrangel
03 Apr 2022, 08:36The error message says the problem is with the EnableTimer
function. So the code you need to look at is where the line with EnableTimer
is.