|
| Re: lottery [message #4489 is a reply to message #4485] |
Mon, 19 July 2010 03:19   |
|
Daffy wrote on Sun, 18 July 2010 17:33couple 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:332. 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:333. 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:334. 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
|
|
|
|
|