The Arcive of vBulletin Modifications Site. |
|
Lottery problems :/ Details »»
|
|||||||||||||||||||||||||
Hey everyone! ^_^
When i set the lottery for the next day (or ever for that matter) it is enever drawn :/ and when i go to pick a winner i get this message: Could not find phrase 'rpg_lottery_ticket_error'. >___< Help please! Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
That means there's no tickets to draw from, and hence the lottery is never drawn.
|
|
#3
|
||||
|
||||
|
im also having this error, but i sold 21 tickets & im getting the exact error as Kaisan. Anyway of resolving this?
|
|
#4
|
||||
|
||||
|
Try the following:
PHP Code:
|
|
#5
|
||||
|
||||
|
That code didnt work. & add what phrase to the xml file...?
|
|
#6
|
||||
|
||||
|
rpg_lottery_ticket_error should have a text :P
And I'll look better into it in abit then. balls. I see the mistake. Instead of count($tickets), count($lotteryinfo). Try that |
|
#7
|
|||
|
|||
|
arhhhh are you saying
Quote:
Quote:
Quote:
|
|
#8
|
||||
|
||||
|
The $tickets line does not disappear even if it's moved.
And add the phrase: Quote:
|
|
#9
|
|||
|
|||
|
Hi Revan
Thanks for helping us with the phrase I clicked on the PICK WINNER and this is what I received "This lottery does not have any tickets to draw from." But i do have 9 people buying the lottery ticket. my lotteryadmin.php is now Code:
$tickets = $DB_site->num_rows($ticketfetch);
if ($tickets == 0)
{
define('CP_REDIRECT', 'lotteryadmin.php?do=edit');
print_stop_message('rpg_lottery_ticket_error');
}
// Replace:
$tickets = $DB_site->num_rows($ticketfetch);
// With:
$tickets = count($lotteryinfo);
|
|
#10
|
||||
|
||||
|
PHP Code:
|
![]() |
|
|