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 Tutorials
[TUT][FIX] DailyRespectPoints
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="keiller" data-source="post: 137292" data-attributes="member: 18142"><p>Hey,</p><p> </p><p>Just a quick tutorial on how to get respectes/pet scratches daily. Two simple SQL codes.</p><p> </p><p><u><strong>Go into your database and run this SQL</strong></u>;</p><p> </p><p>[PHP]CREATE DEFINER=`root`@`localhost` EVENT `resetear_respetos_caricias` ON SCHEDULE EVERY 24 HOUR STARTS '2012-01-01 23:59:00' ON COMPLETION NOT PRESERVE ENABLE DO UPDATE user_stats</p><p>SET</p><p>DailyRespectPoints = '3',</p><p>DailyPetRespectPoints = '3'[/PHP]</p><p> </p><p><span style="font-family: 'Verdana'"><span style="color: #333333">The SQL code above will create a event to automatically update daily respects daily. (Every 24 hours.)</span></span></p><p> </p><p><span style="font-family: 'Verdana'"><span style="color: #333333"><u><strong>THEN run this</strong></u>;</span></span></p><p> </p><p><span style="font-family: 'Verdana'"><span style="color: #333333">[PHP]SET GLOBAL event_scheduler =ON;[/PHP]</span></span></p><p> </p><p> </p><p> </p><p>That's you done!</p></blockquote><p></p>
[QUOTE="keiller, post: 137292, member: 18142"] Hey, Just a quick tutorial on how to get respectes/pet scratches daily. Two simple SQL codes. [U][B]Go into your database and run this SQL[/B][/U]; [PHP]CREATE DEFINER=`root`@`localhost` EVENT `resetear_respetos_caricias` ON SCHEDULE EVERY 24 HOUR STARTS '2012-01-01 23:59:00' ON COMPLETION NOT PRESERVE ENABLE DO UPDATE user_stats SET DailyRespectPoints = '3', DailyPetRespectPoints = '3'[/PHP] [FONT=Verdana][COLOR=#333333]The SQL code above will create a event to automatically update daily respects daily. (Every 24 hours.)[/COLOR][/FONT] [FONT=Verdana][COLOR=#333333][U][B]THEN run this[/B][/U];[/COLOR][/FONT] [FONT=Verdana][COLOR=#333333][PHP]SET GLOBAL event_scheduler =ON;[/PHP][/COLOR][/FONT] That's you done! [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Tutorials
[TUT][FIX] DailyRespectPoints
Top