ddgamedesign Posted April 18, 2010 Share Posted April 18, 2010 Hey all, Just curious if anyone could send a link (or post code here would be ideal) of an actual working lottery, where you can only buy a certain amount of tickets, winner is randomly chosen every week, and the money crediting actually works? (yes, i've been through several threads with tons of bugs and issues) v2 Mccodes. Thanks! :) Derek Quote Link to comment Share on other sites More sharing options...
Maniak Posted April 18, 2010 Share Posted April 18, 2010 Okay; i'll have a go at that now for you :) I'll post it as soon as it has been done and tested :) -Although I will not be able to test the cron. Quote Link to comment Share on other sites More sharing options...
Nicholas Posted April 18, 2010 Share Posted April 18, 2010 Okay; i'll have a go at that now for you :) I'll post it as soon as it has been done and tested :) -Although I will not be able to test the cron. why wont you beable to test the cron? run it manually to test it? unless you already got a weekly cron set up, make another file but change name of it. then add the cron to the database bit and run it manually for tests... to run it manually just type for example say in config.php the "code" was 1a2b3c type this URL in address bar for say for example "cron_day.php" /cron_day.php?code=1a2b3c and it will run it manually. Quote Link to comment Share on other sites More sharing options...
Maniak Posted April 18, 2010 Share Posted April 18, 2010 Thank you for that, Nicholas. I didn't realize I could do that. I've never really experimented with Crons, well running them anyway. Quote Link to comment Share on other sites More sharing options...
Uridium Posted April 18, 2010 Share Posted April 18, 2010 making a file called lottery_cron.php would be easier than using the day cron that way you wont messup your days when running the cron fro just the lottery... Quote Link to comment Share on other sites More sharing options...
ddgamedesign Posted April 19, 2010 Author Share Posted April 19, 2010 There is this one: http://makewebgames.io/index.php?page=Thread&threadID=29157&pageNo=1 But it apparently had some issues with players not being credited winnings and such. Quote Link to comment Share on other sites More sharing options...
Maniak Posted April 19, 2010 Share Posted April 19, 2010 Well, I do not know how to work with queries using sprintf; let alone using sprintf with an echo 8| Quote Link to comment Share on other sites More sharing options...
ddgamedesign Posted April 19, 2010 Author Share Posted April 19, 2010 Anyone else have a working Lottery mod they can share, please? I don't feel like spending hours debugging, if someone was able to muck through the thread I posted and come up with a working Lottery. Quote Link to comment Share on other sites More sharing options...
Maniak Posted April 19, 2010 Share Posted April 19, 2010 Anyone else have a working Lottery mod they can share, please? I don't feel like spending hours debugging, if someone was able to muck through the thread I posted and come up with a working Lottery. As I said, give me a little bit of time to code one up! I have other things to do other than code free modifications. Quote Link to comment Share on other sites More sharing options...
ddgamedesign Posted April 20, 2010 Author Share Posted April 20, 2010 Anyone else have a working Lottery mod they can share, please? I don't feel like spending hours debugging, if someone was able to muck through the thread I posted and come up with a working Lottery. As I said, give me a little bit of time to code one up! I have other things to do other than code free modifications. Understood, and thanks. Just was curious if anyone else had debugged code from that thread they could share. I'm willing to pay a few bucks or whatever, if necessary. Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted April 20, 2010 Share Posted April 20, 2010 Ive posted on the other thread how to fix it. I was suprised nobody had noticed (apart from Feky) the problem with crediting the winnings. Quote Link to comment Share on other sites More sharing options...
ddgamedesign Posted April 20, 2010 Author Share Posted April 20, 2010 Thanks, rulerofzu! Appreciate the help. I believe I have one that works right now. 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.