The Ace Posted September 4, 2008 Share Posted September 4, 2008 Re: [Free V2] Lottery Have you made the cron, in cronjobs? Quote Link to comment Share on other sites More sharing options...
endo Posted September 5, 2008 Share Posted September 5, 2008 Re: [Free V2] Lottery yes ace i have made it run in cronjobs checked everything and i dont even know why its not crediting lmao oh well maybe ill give this up as a bad job lol but ill keep trying for now in the meanwhile if anyone comes up with a fix do post it up here :mrgreen: Quote Link to comment Share on other sites More sharing options...
SpEcKs Posted September 14, 2008 Share Posted September 14, 2008 Re: [Free V2] Lottery how would i make it so there is 3 winners so like the person who comes first gets 1/2 of the amount, then the person who comes second gets 1/3 of the amount, then the person who come third gets 1/5 of the amount and then the money left over goes to the next weeks jackpot ? can it be done ??? ---------------------------- and also how do i make it so the jackpot starts at $500,000 every week, would i add this to the cron_weekly.php? $db->query("UPDATE `lottery` SET `jackpot` = 500000"); Quote Link to comment Share on other sites More sharing options...
SpEcKs Posted September 16, 2008 Share Posted September 16, 2008 Re: [Free V2] Lottery anyone ??????? Quote Link to comment Share on other sites More sharing options...
SpEcKs Posted September 19, 2008 Share Posted September 19, 2008 Re: [Free V2] Lottery how would i make it so there is 3 winners so like the person who comes first gets 1/2 of the amount, then the person who comes second gets 1/3 of the amount, then the person who come third gets 1/5 of the amount and then the money left over goes to the next weeks jackpot ? can it be done ??? ---------------------------- and also how do i make it so the jackpot starts at $500,000 every week, would i add this to the cron_weekly.php? $db->query("UPDATE `lottery` SET `jackpot` = 500000"); can someone please reply coz i am a N0OB ??? Quote Link to comment Share on other sites More sharing options...
SpEcKs Posted September 21, 2008 Share Posted September 21, 2008 Re: [Free V2] Lottery anyone Quote Link to comment Share on other sites More sharing options...
jds137 Posted November 29, 2008 Share Posted November 29, 2008 Re: [mccode v2] Lottery You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. 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...
radio_active Posted November 29, 2008 Share Posted November 29, 2008 Re: [mccode v2] Lottery You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. There needs to be at least one ticket bought for this lottery to work. If you run the query and there has been no tickets bought it will throw and error. how would i make it so there is 3 winners so like the person who comes first gets 1/2 of the amount, then the person who comes second gets 1/3 of the amount, then the person who come third gets 1/5 of the amount and then the money left over goes to the next weeks jackpot ? can it be done ??? ---------------------------- and also how do i make it so the jackpot starts at $500,000 every week, would i add this to the cron_weekly.php? $db->query("UPDATE `lottery` SET `jackpot` = 500000"); can someone please reply coz i am a N0OB ??? Try something like this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. If your not getting anywhere there (note you will need at least 3 different people to buy tickets. But if you get know where, just add this to end of the script You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Which will set the lottery to 500k but you have to add it after the last query (the truncate table query). Hope this helps :-) Quote Link to comment Share on other sites More sharing options...
Domination Posted November 30, 2008 Share Posted November 30, 2008 Re: [mccode v2] Lottery It doesn't seem to be crediting the money for me :? Quote Link to comment Share on other sites More sharing options...
mentaljason Posted November 30, 2008 Share Posted November 30, 2008 Re: [mccode v2] Lottery Nice mod and thanks for the reminder but we do see it says mccodes v2 in the topics name, and that generally hint to us that it's a v2 mod. XD Quote Link to comment Share on other sites More sharing options...
Modern-Empires Posted December 9, 2008 Share Posted December 9, 2008 Re: [mccode v2] Lottery nice mod but can a winning percentage be put in, so above how much you can buy there is a line saying you have a **% of winning the lottery, Quote Link to comment Share on other sites More sharing options...
Haunted Dawg Posted December 10, 2008 Share Posted December 10, 2008 Re: [mccode v2] Lottery No you can not do that WHY: Well how is the system going to predict what random number is given when the cron run's? If you have high advanced technology so that the rand() can be figured out before time then please give it to us because we all would like to know what happen's in future. Quote Link to comment Share on other sites More sharing options...
Modern-Empires Posted December 10, 2008 Share Posted December 10, 2008 Re: [mccode v2] Lottery i've seen it done one anouther game, they did somthing like tickets you brought *** x total tickets sold *** = **% Quote Link to comment Share on other sites More sharing options...
Haunted Dawg Posted December 10, 2008 Share Posted December 10, 2008 Re: [mccode v2] Lottery That's because it's a different system. The system your talking about is more of a win to the person who buy's the most ticket's. Quote Link to comment Share on other sites More sharing options...
Modern-Empires Posted December 11, 2008 Share Posted December 11, 2008 Re: [mccode v2] Lottery can it be done? Quote Link to comment Share on other sites More sharing options...
Haunted Dawg Posted December 12, 2008 Share Posted December 12, 2008 Re: [mccode v2] Lottery Not onto this system. Quote Link to comment Share on other sites More sharing options...
radio_active Posted December 12, 2008 Share Posted December 12, 2008 Re: [mccode v2] Lottery Killah is right when it comes to this script however. For Killah, If you made it so each new lottery 1000 ticket IDs were inserted into the DB then users purchased the tickets which inserted there ID into the ticket ID, if they purchase 100 tickets you could get it to say you have 10% chance of winning the lottery as the rand picks out of the 1000 tickets, you cannot do that on this script though with out alot of editing... =) Quote Link to comment Share on other sites More sharing options...
Raptor_Jesus Posted December 13, 2008 Share Posted December 13, 2008 Re: [mccode v2] Lottery Anything can be done Quote Link to comment Share on other sites More sharing options...
Haunted Dawg Posted December 13, 2008 Share Posted December 13, 2008 Re: [mccode v2] Lottery Anything can be done Anything can be done? Are you sure? Well yes this could be done but i ain't going to do it for him. Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted December 13, 2008 Share Posted December 13, 2008 Re: [mccode v2] Lottery Anything can be done Thats true with enough mental will you can accomplish anything. Anything can be done Anything can be done? Are you sure? Well yes this could be done but i ain't going to do it for him. :-o Quote Link to comment Share on other sites More sharing options...
Haunted Dawg Posted December 13, 2008 Share Posted December 13, 2008 Re: [mccode v2] Lottery If anything can be done. Why are there still thing's out in world that still need to be answered? :P Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted December 13, 2008 Share Posted December 13, 2008 Re: [mccode v2] Lottery If anything can be done. Why are there still thing's out in world that still need to be answered? :P because people are pig headed and only look after themselves. Quote Link to comment Share on other sites More sharing options...
Bubbl3z Posted December 24, 2008 Share Posted December 24, 2008 Re: [mccode v2] Lottery so when is it set for? Quote Link to comment Share on other sites More sharing options...
Saha Posted January 7, 2009 Share Posted January 7, 2009 Re: [Free V2] Lottery ok, i made a mistake with what i gave it should be 0 0 * * 5 0-Sunday 1-Monday 2-Tuesday 3-Wednesday 4-Thursday 5-Friday 6-Saturday Sorry to sound newbie but could you post the cron which is set to that date/time? Cause i cannot find were i put this... thanx in adnvance. Quote Link to comment Share on other sites More sharing options...
dj_rive Posted January 11, 2009 Share Posted January 11, 2009 Re: [mccode v2] Lottery cron_weekly.php 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.