Members   Search      Help    Register    Login    Home
Home » Support Forums for PMBT 2.X » General Help for 2.X » lottery
lottery [message #4485] Sun, 18 July 2010 22:33 Go to next message
Daffy is currently offline Daffy  France
Messages: 359
Registered: October 2009
Location: uk
Releaser

couple of things. as shown in screenshot.

1. on top left of the lottery i see 23.34 GB, cant get rid of it and dunno how it got there lol oh and how to make table not so wide.

2. current prize dosnt seem to work. also its in B instead of kb, mb,gb

3. winners name in color.

4. be able to edit lottoery whilst its running.

some guides on this would bea great help as im wanting to set this up as a weekly draw.


[Updated on: Sun, 18 July 2010 22:42]

Report message to a moderator

Re: lottery [message #4489 is a reply to message #4485] Mon, 19 July 2010 03:19 Go to previous messageGo to next message
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
Daffy wrote on Sun, 18 July 2010 17:33
couple of things. as shown in screenshot.

1. on top left of the lottery i see 23.34 GB, cant get rid of it and dunno how it got there lol oh and how to make table not so wide.

in games.php find and remove
$testammount = 250*1024*1024;
echo mksize($arr_config['ticket_amount']*239);

Daffy wrote on Sun, 18 July 2010 17:33
2. current prize dosnt seem to work. also its in B instead of kb, mb,gb

Prize well only show 0.00b tell ticks are purchased.
Daffy wrote on Sun, 18 July 2010 17:33
3. winners name in color.

find and replace
$res2 = $db->sql_query("SELECT id, username FROM ".$db_prefix."_users");
while ($arr2 = $db->sql_fetchrow($res2))
{
if ($arr2['id'] == $who_won[$x])
{
$username = '<a href="user.php?op=profile&id='. $arr2['id'] .'">'. $arr2['username'] .'</a>';

with
$res2 = $db->sql_query("SELECT id, username, can_do FROM ".$db_prefix."_users");
while ($arr2 = $db->sql_fetchrow($res2))
{
if ($arr2['id'] == $who_won[$x])
{
$username = '<a href="user.php?op=profile&id='. $arr2['id'] .'"><font color="'.getusercolor($arr2["can_do"]).'\>'. $arr2['username'] .'</font></a>';

Daffy wrote on Sun, 18 July 2010 17:33
4. be able to edit lottoery whilst its running.

some guides on this would bea great help as im wanting to set this up as a weekly draw.

its not allowed for safty so you dont change ticket costs or turn it off and users dont loose there cost of tickets


http://a.imageshack.us/img831/5562/mybikes.png
Re: lottery [message #4493 is a reply to message #4489] Mon, 19 July 2010 12:39 Go to previous messageGo to next message
Daffy is currently offline Daffy  France
Messages: 359
Registered: October 2009
Location: uk
Releaser

looks like someone beat me to it Laughing thanks joe.

when clicking on view players looks like below.

http://i28.tinypic.com/2cr4vtf.jpg

also if i set the lotto to prize fund instead of by amount of tickets. it dosnt work. (what is prize fund in? MB or GB?

http://i31.tinypic.com/9r3zae.jpg

Thanks.




Re: lottery [message #4633 is a reply to message #4493] Tue, 03 August 2010 15:07 Go to previous message
Daffy is currently offline Daffy  United Kingdom
Messages: 359
Registered: October 2009
Location: uk
Releaser

p.s, still unable to set a pot amount. only works via tickets sold.

Previous Topic:Next and Previous Page Arrows
Next Topic:Cycling Through Pages doesn't work in Torrent Control
Goto Forum:
  


Current Time: Wed Feb 08 21:22:48 GMT 2012

Total time taken to generate the page: 0.00757 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software