Curt Posted October 31, 2010 Posted October 31, 2010 This is a mod I coded a while back but have not released to the public... Its basically some standard Dice games your members can play to gamble there money... This mod will need some dice images which are NOT INCLUDED. This is a pretty simple mod as you all will notice :P here is where they should go and what they should be named: images/dicegame/one.png images/dicegame/two.png images/dicegame/three.png images/dicegame/four.png images/dicegame/five.png images/dicegame/six.png Also the layout will need to be edited as my Div styles are currently there..lol Filename= dicegame.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Continued in next post.. Quote
Curt Posted October 31, 2010 Author Posted October 31, 2010 continued from above : You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. There is also a SQL table included which keeps track of how many times a game has been played: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. That should be everything...let me know of any problems. As always this is free and do what you want with it and Constructive criticism is welcome.. Enjoy, Curt Quote
mmyouth Posted November 30, 2010 Posted November 30, 2010 Fatal error: Call to undefined function status_update() in /home/youth/public_html/dicegame.php on line 32 I got that error. plz fixed it thz dude :) Quote
SilvaTungDevil Posted November 30, 2010 Posted November 30, 2010 Go to line 32 underneath include"globals.php"; and change it too: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I'm pretty sure you are getting that error because you dont have statuses on peoples profiles. So you can either comment it out if its a future feature you wish to install or remove the line completely Quote
ashbow97 Posted January 1, 2011 Posted January 1, 2011 This looks like a REALLY good mod, but I'm having quite a few problems with it :S This comes up on the bottom of the page after you place your bet (I'll post the issue, then the line): Fatal error: Call to a member function query() on a non-object in /home/ashbow97/public_html/dicegame.php on line 170 You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. It does the same thing for each game, just on different lines. I pressume it's having problems updating the table (it is there, I checked)? Please help :D Quote
Dominion Posted January 1, 2011 Posted January 1, 2011 I assume you're using lite/v1? If so the class file does not exist, therefore $db->query won't. Just use mysql_query() Quote
ashbow97 Posted January 1, 2011 Posted January 1, 2011 Yes I'm using Lite. Thanks :D I've got it working now :) Nice work :D Although, I don't think you've grasped the rules of each game correctly... I'll see if I can edit that :L Quote
Paul Evans Posted January 1, 2011 Posted January 1, 2011 am i the only who thinks thats too big? Quote
ashbow97 Posted January 1, 2011 Posted January 1, 2011 There's around 6 different games :P the thing is, there only about getting a certain number. Like in High/Low, you need to get 2 or 12... that's by far not the rules of high/low... I want to see if I can change that :) Quote
Curt Posted January 1, 2011 Author Posted January 1, 2011 am i the only who thinks thats too big? I agree with you :P Nice work :D Although, I don't think you've grasped the rules of each game correctly... I'll see if I can edit that :L thanks, I have never played any type of dice game in real life so i simply did a quick internet search and used the rules that it said..lol feel free to make any changes you want ;) 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.