Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
RP Caching
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="JayC" data-source="post: 418432" data-attributes="member: 36373"><p>Right so you don't know exactly when for everything. Doing it in this one loop that is already readibly available in the habbo class I found to be the most beneficial because all of my timers, loops, updating is done in one location. So when the loop triggers it says, is the user jailed. Then it checks how long remaining they have jailed, if it's equivalent to a 30 second interval it pops up and says you have 1 min 30 seconds left in jail, etc. </p><p></p><p>Each action is controlled separately by a Boolean check, and then a timestamp check, so all of the code is easy to adjust.</p><p></p><p>I wouldn't flame you for voicing your opinion, everyone has a different coding style but I will share my idea behind why I did it this way, and I still believe this is the best way I have found so far.</p></blockquote><p></p>
[QUOTE="JayC, post: 418432, member: 36373"] Right so you don't know exactly when for everything. Doing it in this one loop that is already readibly available in the habbo class I found to be the most beneficial because all of my timers, loops, updating is done in one location. So when the loop triggers it says, is the user jailed. Then it checks how long remaining they have jailed, if it's equivalent to a 30 second interval it pops up and says you have 1 min 30 seconds left in jail, etc. Each action is controlled separately by a Boolean check, and then a timestamp check, so all of the code is easy to adjust. I wouldn't flame you for voicing your opinion, everyone has a different coding style but I will share my idea behind why I did it this way, and I still believe this is the best way I have found so far. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
RP Caching
Top