Danny696 Posted December 22, 2010 Posted December 22, 2010 IDE's are for n00bs, it even tabs it for you ha! Quote
Dominion Posted December 22, 2010 Posted December 22, 2010 IDE's are for n00bs, it even tabs it for you ha! No idea how that is true since I still need to understand what I type... Look over this. Quote
Danny696 Posted December 22, 2010 Posted December 22, 2010 Im guessing nickson likes the IDE environment, as after his short paragraph on text editors, he only talks about IDEs.. Quote
Dominion Posted December 22, 2010 Posted December 22, 2010 True I guess he does, but he has a point they are much better for developing with. ;) Quote
Kieran-R Posted December 22, 2010 Author Posted December 22, 2010 Nice mod :) Also about your comment about tabbing. When I first started I did not use tabs...i did not see why i would need to but after coding numerous features for my game I have realized how special tabbing can actually be. If the script is relatively small, then tabbing is not of much use tbh but when the script begins to be pretty large then tabbing would be a good method to use. Tabbing simply allows you to sift through code and recognize regions of the code with greater ease.. I personally use tabbing for code between functions so i can easily tell where one function ends and the next begins... also its good to use tabbing on code in between brackets.. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. With the method above you can easily recognize what code is between what brackets. This extremely helpful when there is a lot of code in between the brackets. Everyone has there own method of tabbing i guess...this is simply mine... Its also not bad to add comments in the script as well... The entire point of tabbing/comments is so that you or someone else can easily look through the script and make necessary changes... Hope that helps you understand about tabbing and when its appropriate to use them :) Happy Holidays, Curt EDIT: Well my example did not come out perfect but hopefully you get the idea :) Thanks for that Curt. thats defintally gave me an idea. Quote
secret_life Posted January 3, 2011 Posted January 3, 2011 nice job just little problem there in lottery.php and pointslottery.php change this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. to this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. i have a porblem when i run cronjob i have try it in browser with my key :) and i have fatal error Fatal error: Call to undefined method database::fetch_array() in .......mywebsite........../lotterycron.php on line 30 line 30 is You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. i dont know how corect the cron can you help :) thanks Quote
Danny696 Posted January 3, 2011 Posted January 3, 2011 Change to either You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. OR You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
secret_life Posted January 7, 2011 Posted January 7, 2011 thanks Danny for your answer i have corect the file lottery.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. pointslottery.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. lotterycron.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. i have add announcements for both thanks for this mod :) Quote
Uridium Posted January 9, 2011 Posted January 9, 2011 If you spent more time on this script you could add some nice features like a Lotto History button to show which ticket was draw and also adding 5 runner up prizes Quote
PrimeSuspect Posted June 3, 2011 Posted June 3, 2011 i run lotterycron.php to test if its working or not but result : nothing happens... Any idea to fix this ? Quote
Dominion Posted June 3, 2011 Posted June 3, 2011 i run lotterycron.php to test if its working or not but result : nothing happens... Any idea to fix this ? Remove the check for $_GET['code'] and run it again. If there are errors mysql_error() will show them to you... Quote
PrimeSuspect Posted June 3, 2011 Posted June 3, 2011 Remove the check for $_GET['code'] and run it again. If there are errors mysql_error() will show them to you... i completly removed that line and i get this error below ; Warning: require(../class/class_db_mysql.php) [function.require]: failed to open stream: No such file or directory in /home/game/public_html/lotterycron.php on line 9 Warning: require(../class/class_db_mysql.php) [function.require]: failed to open stream: No such file or directory in /home/game/public_html/lotterycron.php on line 9 Fatal error: require() [function.require]: Failed opening required '../class/class_db_mysql.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/game/public_html/lotterycron.php on line 9 Quote
Dominion Posted June 3, 2011 Posted June 3, 2011 i completly removed that line and i get this error below ; Warning: require(../class/class_db_mysql.php) [function.require]: failed to open stream: No such file or directory in /home/game/public_html/lotterycron.php on line 9 Warning: require(../class/class_db_mysql.php) [function.require]: failed to open stream: No such file or directory in /home/game/public_html/lotterycron.php on line 9 Fatal error: require() [function.require]: Failed opening required '../class/class_db_mysql.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/game/public_html/lotterycron.php on line 9 What version of mccodes are you using? In english that is saying "File not found". Quote
Dominion Posted June 4, 2011 Posted June 4, 2011 Mccode version 2 So check the path to the class folder, and files. Quote
PrimeSuspect Posted June 4, 2011 Posted June 4, 2011 i checked them.. nothing wrong with path and files... Anyway thank you.. Quote
Kieran-R Posted June 4, 2011 Author Posted June 4, 2011 i checked them.. nothing wrong with path and files... Anyway thank you.. Mabe you are trying to use the cron file in a separate folder? Quote
PrimeSuspect Posted June 4, 2011 Posted June 4, 2011 Mabe you are trying to use the cron file in a separate folder? cron and other lottery files are in same directory. (home directory) Quote
Dominion Posted June 4, 2011 Posted June 4, 2011 i checked them.. nothing wrong with path and files... Anyway thank you.. Then it would be working, and no ugly error would be telling you the file is not where you have pointed to... Quote
PrimeSuspect Posted June 4, 2011 Posted June 4, 2011 (edited) Then it would be working, and no ugly error would be telling you the file is not where you have pointed to... can this problem be about ravan template ? i use ravan theme with legal mccode (i asked before i use ravan theme with mccode) Edited June 4, 2011 by PrimeSuspect Quote
Danny696 Posted June 4, 2011 Posted June 4, 2011 If you use the ravan theme, then your breaking the law. Its not ravans, nor is it yours. Dont use it. Pay for one to be made. Quote
PrimeSuspect Posted June 4, 2011 Posted June 4, 2011 If you use the ravan theme, then your breaking the law. Its not ravans, nor is it yours. Dont use it. Pay for one to be made. Read what i wrote carefully pls.. Quote
Danny696 Posted June 4, 2011 Posted June 4, 2011 I read exacally what you said, I was just pointing out that you were breaking the law, use the info how you like... Quote
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.