chicka Posted December 13, 2010 Posted December 13, 2010 I haven't posted any mods on here yet so I thought I would post one I made, Its quite simple. Users place a bet and guess a number between 1 and 200 which can be edited easy. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. add this to your data base ALTER TABLE users ADD guess (int)11 default 10 This is just the beginning of the mod. I was thinking of adding more things for users to guess on. if anyone wants to add to it feel free. Any bugs post them up and i'll try and get them fixed Quote
Uridium Posted December 13, 2010 Posted December 13, 2010 You may need to add a piece to cron_day.php to refill users turns each day mysql_query("UPDATE users SET guess = 10 WHERE guess < 1 OR guess = 0"); Quote
chicka Posted December 13, 2010 Author Posted December 13, 2010 Your right illusions,, Sorry guys I forgot to add that.. Quote
chicka Posted December 14, 2010 Author Posted December 14, 2010 I thought this might be a good idea. With the economy out of control in most games, I figured that this would help. People see the huge payout and play not realizing that the odds are very slim. Quote
Danny696 Posted December 18, 2010 Posted December 18, 2010 You may want to check the globals out ;) Quote
Rasheed saeed Posted December 18, 2010 Posted December 18, 2010 Some are not needed. Only include a GLOBAL if your going to use it. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Jordan Palmer Posted December 18, 2010 Posted December 18, 2010 I liked this script, It's been something I wanted to make but not really had the time to get it started but just as a starter I thought I'd recode this one, Nothing majorly changed just pushed into two functions instead of three and use of tag.  You're unable to view this code. Viewing code within this forum requires registration, you can register here for free.  Mysql Addition: [mysql]ALTER TABLE users ADD guess (int)11 default 10;[/mysql]  Cron: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free.  A few tips for game owners If your game economy is high I would fully changed the script and charge per bet along with lowering the amount I guess *50 is alright for $1-$100 bets but if someone put a million dollars it'd be a big payout for him/her.  Good work Chika btw :) Quote
Danny696 Posted December 18, 2010 Posted December 18, 2010 Is that invalid HTML i see there jordan :O Quote
Danny696 Posted December 18, 2010 Posted December 18, 2010 How much you betting its your fault ;) Quote
chicka Posted December 19, 2010 Author Posted December 19, 2010 Thanks Jordan.. I appreciate it. I wasn't exactly sure how the global $ir,blah blah worked and I see it in quite a few scripts so I decided to put the hole thing in. Now that you guys have explained it I know how to use it. 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.