Akash Posted July 1, 2008 Author Share Posted July 1, 2008 Re: [Free V2] Lottery All fixed...I hope xD...just lemme know if any more errors occur. Quote Link to comment Share on other sites More sharing options...
The Ace Posted July 2, 2008 Share Posted July 2, 2008 Re: [Free V2] Lottery Nice fix, thanks. But, just letting everyone else know as well, peeps can buy more than 100. ;) Quote Link to comment Share on other sites More sharing options...
KingRise Posted July 4, 2008 Share Posted July 4, 2008 Re: [Free V2] Lottery yep im going to be using this nice mod!!! 8-) Quote Link to comment Share on other sites More sharing options...
Raptor_Jesus Posted July 5, 2008 Share Posted July 5, 2008 Re: [Free V2] Lottery I think it should be pointed out that while you can call anything a lotto, when you give out a weekly, monthly, daily price its a raffle, not a lotto. People know theres going to be a winner at a set time peroid. I'm not taking away from the code or idea behind it but its not a lotto. I have coded a few lotto's and I think the key point that makes a lotto a lotto is the ability for a "pot" to keeep collecting in size. Like I said I'm not getting down here, this was posted free and props for that, I'm just saying maybe call it a monetary raffle? Of course of the user did state "a weekly cron chooses a random winner and credits them with the jackpot". And as a final note. Do you know why you would sprintf something? Quote Link to comment Share on other sites More sharing options...
~Destiny-Gaming~ Posted July 7, 2008 Share Posted July 7, 2008 Re: [Free V2] Lottery Nice mod man keep it up Quote Link to comment Share on other sites More sharing options...
BARR3TT Posted July 7, 2008 Share Posted July 7, 2008 Re: [Free V2] Lottery Hey i change $tick = 1; so people can only buy one ticket but they can still buy like loads. I need to only allow them to buy one. plus the cron can you please explain more about the cron. plus unsure wht ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ; means Thanks Quote Link to comment Share on other sites More sharing options...
BARR3TT Posted July 9, 2008 Share Posted July 9, 2008 Re: [Free V2] Lottery Dw i got it now.. Quote Link to comment Share on other sites More sharing options...
The Ace Posted July 26, 2008 Share Posted July 26, 2008 Re: [Free V2] Lottery For some odd reason, the winner of the lottery wasn't credited the jackpot. It is in the cron_weekly, and I have an new_announcement query after the crediting query, and that worked. So, I know there is nothing wrong with the crediting query. :( Quote Link to comment Share on other sites More sharing options...
War_Hero Posted August 22, 2008 Share Posted August 22, 2008 Re: [Free V2] Lottery I thought I'd edit this a little bit to allow the user to enter the amount of tickets they'd like to buy. :) Hope you don't mind Akash. ;) :-P You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Make sure to have run the SQLs and crons posted in the first post by Akash. :) I'm still a newbie, so this probably could have been done a lot easier. :-P Hope you all enjoy. :) EDIT: Removed include "travellingglobals.php"; from code. It should work now. :) Quote Link to comment Share on other sites More sharing options...
jds137 Posted August 22, 2008 Share Posted August 22, 2008 Re: [Free V2] Lottery You get the error message below, so all you need to do is remove this line: include "travellingglobals.php"; Warning: include(travellingglobals.php) [function.include]: failed to open stream: No such file or directory in /home/ml/public_html/lottery.php on line 4 Warning: include() [function.include]: Failed opening 'travellingglobals.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /home/ml/public_html/lottery.php on line 4 Quote Link to comment Share on other sites More sharing options...
Miniman Posted August 22, 2008 Share Posted August 22, 2008 Re: [Free V2] Lottery You get the error message below, so all you need to do is remove this line: include "travellingglobals.php"; Warning: include(travellingglobals.php) [function.include]: failed to open stream: No such file or directory in /home/ml/public_html/lottery.php on line 4 Warning: include() [function.include]: Failed opening 'travellingglobals.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /home/ml/public_html/lottery.php on line 4 Just remove this..... include "travellingglobals.php"; Quote Link to comment Share on other sites More sharing options...
War_Hero Posted August 22, 2008 Share Posted August 22, 2008 Re: [Free V2] Lottery Oh sorry about that! I need that for my brother's game and forgot to remove it. :-o :-P Quote Link to comment Share on other sites More sharing options...
SpEcKs Posted August 26, 2008 Share Posted August 26, 2008 Re: [Free V2] Lottery How do you change how many tickets that each player can buy im a noob so i dont know lol Quote Link to comment Share on other sites More sharing options...
War_Hero Posted August 26, 2008 Share Posted August 26, 2008 Re: [Free V2] Lottery You just change the 100 to any number you want. This code allows the user to buy a maximum of 10 lottery tickets. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. EDIT: My grammar was appauling. So I just reworded a sentence. :-P Quote Link to comment Share on other sites More sharing options...
Xplo Posted August 30, 2008 Share Posted August 30, 2008 Re: [Free V2] Lottery but it isnt crediting the money to the users can anyone help me Quote Link to comment Share on other sites More sharing options...
SpEcKs Posted August 31, 2008 Share Posted August 31, 2008 Re: [Free V2] Lottery aint crediting my users either Quote Link to comment Share on other sites More sharing options...
The Ace Posted August 31, 2008 Share Posted August 31, 2008 Re: [Free V2] Lottery Replace your cron weekly with: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. All I did was add: $db->query($credit); The query was listed, but it wasn't being run... :) This works for me. Quote Link to comment Share on other sites More sharing options...
jamboy1 Posted August 31, 2008 Share Posted August 31, 2008 Re: [Free V2] Lottery I'm now about to add this hoping there are no bugs :D can someone tell me how i would make the cron run every sunday at newday???? please? also i love the mod :D it'll give a reason to play Quote Link to comment Share on other sites More sharing options...
SpEcKs Posted September 1, 2008 Share Posted September 1, 2008 Re: [Free V2] Lottery thanks m8 that is good thanks :-) Quote Link to comment Share on other sites More sharing options...
endo Posted September 3, 2008 Share Posted September 3, 2008 Re: [Free V2] Lottery am i the only one with problems with the weekly cron i still cant get the bloody thing to run Quote Link to comment Share on other sites More sharing options...
War_Hero Posted September 3, 2008 Share Posted September 3, 2008 Re: [Free V2] Lottery Do you want to post that particular bit of the cron here so we can take a look at it? :) Quote Link to comment Share on other sites More sharing options...
The Ace Posted September 3, 2008 Share Posted September 3, 2008 Re: [Free V2] Lottery am i the only one with problems with the weekly cron i still cant get the bloody thing to run Have you made a weekly cron in your Cpanel yet? Quote Link to comment Share on other sites More sharing options...
endo Posted September 4, 2008 Share Posted September 4, 2008 Re: [Free V2] Lottery sorry about the slow reply yes i got it setup in my cron and i keep going over it and it just doesnt credit lol but hey heres the code lol from what i can see it should work or am i wrong it doesnt even add the event lol You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
War_Hero Posted September 4, 2008 Share Posted September 4, 2008 Re: [Free V2] Lottery You could try this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. This code also adds an announcement saying who won the lottery. :) Quote Link to comment Share on other sites More sharing options...
endo Posted September 4, 2008 Share Posted September 4, 2008 Re: [Free V2] Lottery You could try this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. This code also adds an announcement saying who won the lottery. :) looks like it should work i see a few mistakes i made now thanks war_hero :evil: still not working i ahve checked the codes and the sql it works fine but the cron still doesnt work Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.