Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Adding a Timer

Author
Message
Pankers
16
Years of Service
User Offline
Joined: 31st May 2008
Location:
Posted: 1st Jun 2008 06:34
My code is below and im trying to make a timer so once like 5 seconds is up you gain one gold and one stone here is my code below [but it brings up an error]

TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 1st Jun 2008 08:14 Edited at: 1st Jun 2008 08:20
Variable names cannot contain spaces.

Timer() returns a value in ms. It must be divided by 1000 to get seconds and called repeatedly in a loop.



And don't use floats unless you need them - is it possible to have the values 5.5 or 5.75 for gold?

TDK_Man

Login to post a reply

Server time is: 2024-11-25 04:52:42
Your offset time is: 2024-11-25 04:52:42