-BRAIDZ- Posted June 11, 2015 Share Posted June 11, 2015 Ok this should work and this is the last time I am posting a full script for you, you really need to learn yourself or you will get nowhere: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Still not updating anything or sending event.. And what do you mean by this? 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...
KyleMassacre Posted June 11, 2015 Share Posted June 11, 2015 (edited) Is there stuff in the tables it's supposed to be updating? You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Copy/Paste what is shown on your screen Edited June 11, 2015 by KyleMassacre Added make shift trouble shooting Quote Link to comment Share on other sites More sharing options...
NonStopCoding Posted June 11, 2015 Author Share Posted June 11, 2015 Still not updating anything or sending event.. And what do you mean by this? You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. try this 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...
lucky3809 Posted June 11, 2015 Share Posted June 11, 2015 the raven script is bound to have multiple problems, the only way for him to actually find the error is to start with bit by bit of the cron script such a simple INSERT query, evidently that did not happen because the error threw that the query function was not present this function should be in his class folder, under which ever he set his database to mysqli or mysql when installing the engine.... So he needs to find the query() function and post that, if it is in that file. I think though he needs to open up his own thread so this one don't get over plowed by his Raven script errors lol. Quote Link to comment Share on other sites More sharing options...
Coly010 Posted June 11, 2015 Share Posted June 11, 2015 the raven script is bound to have multiple problems, the only way for him to actually find the error is to start with bit by bit of the cron script such a simple INSERT query, evidently that did not happen because the error threw that the query function was not present this function should be in his class folder, under which ever he set his database to mysqli or mysql when installing the engine.... So he needs to find the query() function and post that, if it is in that file. I think though he needs to open up his own thread so this one don't get over plowed by his Raven script errors lol. I'm not sure if he would even know what you're talking about to be honest, no harm to him. He just wont do the work to learn what's going on. Quote Link to comment Share on other sites More sharing options...
-BRAIDZ- Posted June 12, 2015 Share Posted June 12, 2015 try this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. This one worked, thank you Quote Link to comment Share on other sites More sharing options...
NonStopCoding Posted June 12, 2015 Author Share Posted June 12, 2015 This one worked, thank you thats good seems it need single quote ' around the query Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted June 12, 2015 Share Posted June 12, 2015 thats good seems it need single quote ' around the query Not to burst your bubble haha but that's not the problem. The problem was his hierarchy of where his functions, includes, and objects were placed in the script. Not to mention aade up function name called mysql_escape(). He placed the event_add function at the very top using the global variable/object $db which wasn't defined yet, and all he needed to do was include global_func.php. The quotes in the queries you place are to kind of inform MySQL that it's a string but the columns are casted as ints which MySQL will convert those to an int anyway. What [MENTION=68406]-BRAIDZ-[/MENTION] needs to understand is that you can use a variable without creating it. Doing that is like going to a country club you are not a member of. event_add(), and $db were trying to show up before being on the guest list Quote Link to comment Share on other sites More sharing options...
Uridium Posted June 20, 2015 Share Posted June 20, 2015 is there a single person cut off ???? what i mean is 1 person could play the game on their own and reap rewards Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted June 20, 2015 Share Posted June 20, 2015 is there a single person cut off ???? what i mean is 1 person could play the game on their own and reap rewards That's a good idea. There are a couple ways I can think of to battle that. Maybe use some stuff for my NWE lotto found here: https://github.com/KyleMassacre/Weekly-Lotto to expand on it. Some notable things I did is: For starters to try to eliminate certain people from reaping all the wins is I took a percentage of the money spent on tickets and added to the game. This way if it's a single player just playing they will lose money. I also added a revolving lottery. What that is, is a lottery where one week someone may not win and the pot just stays the same. So if the pot is at 1,000 and no one wins then the pot stays at 1,000 the next week and adds as more people play. I also added a recent winners table which brings me to my other idea on how to prevent the same player from winning. You can search the recent players and return say... 4 rows: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And just make sure their userid is not in the array Quote Link to comment Share on other sites More sharing options...
Uridium Posted June 21, 2015 Share Posted June 21, 2015 Another way would be to have a cut off if no more than 200 tickets sold but only allow 1 person to buy 100 tickets which would mean if it doesnt reach over 100 then that dra is invalid and rolls over until more players enter Quote Link to comment Share on other sites More sharing options...
-BRAIDZ- Posted February 1, 2016 Share Posted February 1, 2016 Trying to convert this For RC Engine at the moment.. Quote Link to comment Share on other sites More sharing options...
darkfelon Posted February 22, 2016 Share Posted February 22, 2016 [h=1]My Evil Doing - Critical Error[/h] A critical error has occurred, and this page cannot be displayed. Please try again later. Query failed i keep getting this error every time i try to update the ticket price and max lotto tickets Quote Link to comment Share on other sites More sharing options...
NonStopCoding Posted February 23, 2016 Author Share Posted February 23, 2016 My Evil Doing - Critical Error A critical error has occurred, and this page cannot be displayed. Please try again later. Query failed i keep getting this error every time i try to update the ticket price and max lotto tickets my bad change You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. to 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...
NonStopCoding Posted February 23, 2016 Author Share Posted February 23, 2016 (edited) Little update for this. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. then add this function into global_funcs.php or in the cron file up to you. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. then open up the cron file and look for You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and below this line add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Edited February 23, 2016 by NonStopCoding Quote Link to comment Share on other sites More sharing options...
boionfire81 Posted May 17, 2016 Share Posted May 17, 2016 is there anyway to start the pot off @ say 50? I'm using this as a crystals thing so need to get it started. Needs a jump off. Quote Link to comment Share on other sites More sharing options...
NonStopCoding Posted July 6, 2016 Author Share Posted July 6, 2016 is there anyway to start the pot off @ say 50? I'm using this as a crystals thing so need to get it started. Needs a jump off. change line 33 to 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...
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.