Jump to content
MakeWebGames

Recommended Posts

Posted

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..

Posted

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

  • 5 weeks later...
Posted

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

  • 1 month later...
Posted

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

Posted

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

Posted

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 :)

Posted
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 ;)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...