vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - Casino (w/ 10 player poker) (https://vborg.vbsupport.ru/showthread.php?t=159151)

Andrew Green 10-12-2007 03:56 PM

Quote:

Originally Posted by daPLAYBOY (Post 1358347)
With respect, the fix hasn't sorted the Slot fault payout! I checked your site and mine, and still there's an issue! Even when it does do a payout, it's not to the win amount!

Hoping for a quicky fix really, as now Members are PMing me!

I haven't been able to duplicate this, I get proper payouts every time. I'll dig into it a little more when I get time, but can you please answer the questions above about what you are seeing happen?

LordDB 10-12-2007 04:04 PM

Basically, you place a $10 Slot bet, and if you lose, it deducts OK, but if you win if displays the Payout OK, but doesn't add it on to your balance. Another instance is say you won $30, it only adds $20 on to your balance!

Br.

Andrew Green 10-12-2007 04:06 PM

Quote:

Originally Posted by daPLAYBOY (Post 1358357)
Basically, you place a $10 Slot bet, and if you lose, it deducts OK, but if you win if displays the Payout OK, but doesn't add it on to your balance. Another instance is say you won $30, it only adds $20 on to your balance!

Br.


Are you remembering to take the amount off of your balance as you put it in?

If I have 20, and put 10 in, then win 10. My balance is 20. +0 from starting balance
If I have 20, and put 10 in, then win 30. My balance is 40. +20 from starting balance

Mark.B 10-12-2007 04:26 PM

Quote:

Originally Posted by Andrew Green (Post 1358335)
And for anyone that had draws go through and not payout, you can get the draw to be done again by setting the ticket numbers to NULL for that draw in the casino_lottery_draw table, next time the cron task runs it will pick new numbers and payout properly.

Thanks...I have tried this with a few draws but if you run the cron manually it just draws the numbers 1,2 and 3 every time.

Andrew Green 10-12-2007 04:55 PM

Quote:

Originally Posted by Mark.B (Post 1358371)
Thanks...I have tried this with a few draws but if you run the cron manually it just draws the numbers 1,2 and 3 every time.


That's hilarious :D

...and I promise not to do quick fixes from work anymore... Things like hardcoding results in to test things tend to get forgotten.

Anyways, file fixed... again. :)

Mark.B 10-12-2007 04:59 PM

Quote:

Originally Posted by Andrew Green (Post 1358388)
That's hilarious :D

...and I promise not to do quick fixes from work anymore... Things like hardcoding results in to test things tend to get forgotten.

Anyways, file fixed... again. :)

Still doesn't seem to do it. Now it doesn't appear to draw any numbers at all, it changes from being NULL to just being blank in the database.

Andrew Green 10-12-2007 05:03 PM

Which is exactly why I shouldn't break that promise...

Well, one more time, should work now.

Mark.B 10-12-2007 05:19 PM

Quote:

Originally Posted by Andrew Green (Post 1358396)
Which is exactly why I shouldn't break that promise...

Well, one more time, should work now.

Thanks...seems to be ok now. :D

I should add, whilst I'm in the thread pointing out bugs, that this modification is fantastic and it's proving very popular on my site.

My ultimate aim now, as I also have both v3arcade and ibproarcade, AND the inferno quiz running, is to install vBcredits and integrate all four via that, as they are all compatible.

One small template bug, in slots_main you have a rogue apostrophe. Up to date browsers seem to just ignore it, but in IE6 it makes the "Payout" block in slots have no background, instead of the thead background it is meant to have.

Code:

<td style='vertical-align:top;width:150px;text-align:center;' 'class='thead'><p style='font-size:18pt;'>Payout<br/><span style='font-size:36pt;font-weight:bold;' id='outcome'></span></p></td>
Change to:
Code:

<td style='vertical-align:top;width:150px;text-align:center;' class='thead'><p style='font-size:18pt;'>Payout<br/><span style='font-size:36pt;font-weight:bold;' id='outcome'></span></p></td>
The rogue apostrophe is just before class='thead'.

Really minor but worth noting.

Andrew Green 10-12-2007 05:25 PM

Noted, and thanks :)

All you folks finding the bugs makes things go a helluva lot faster :D

Mark.B 10-12-2007 05:34 PM

Quote:

Originally Posted by Andrew Green (Post 1358412)
Noted, and thanks :)

All you folks finding the bugs makes things go a helluva lot faster :D

One thing I've done on mine, which you might have noticed, is that everywhere there is a table that uses class='tborder', I have added cellspacing='$stylevar[cellspacing]' cellpadding=$stylevar[cellpadding]'.

What this does is make the tables exactly match the tables used elsewhere in vBulletin, which I like all mine to do. It does however make them take up slightly more room, but in all the cases I've seen there's plenty of space for that.

I think it makes it neater, but it's not technically a bug, it's a styling 'thing'. :D


All times are GMT. The time now is 06:56 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02170 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete