BreakingLight Posted January 16, 2011 Posted January 16, 2011 Well i had a weather mod a while back i was working on, but i cant find it so i made this. This mod isnt really finished with what im going to do with it, but you can add it to your game and do what you want to with it. This simply selects a weather by a cron and you can make that weather have different affects on your game. While all our games are different they should all be able to fit in your game differently. So simply add this bit of SQL into your MYSQL database You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Make this edit in your header.php file Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Below Add This: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now Open your monorail.php file and find this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Below that add this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Make a Cron called weathercron.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Like i said not that much really, but that should give you some ideas. If you make any additions please feel free to post! i will also be adding on to it and i will share with you guys. :) Quote
tezzmosis Posted August 2, 2011 Posted August 2, 2011 this isn't working for me, getting this error where it should be displayed underneath <b>Crystals:</b> {$ir['crystals']} "; =mysql_query("SELECT * FROM weather WHERE wACTIVE=1",Resource id #6); =mysql_fetch_array(); =mysql_num_rows(); if( == 0) { ="Sunny"; } else { =""; } print"Current weather is "; any suggestions? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.