Jump to content
MakeWebGames

Recommended Posts

Posted
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.

  • 2 weeks later...
Posted

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

Posted

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 :)

  • 4 months later...
Posted
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...

Posted
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

Posted
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".

Posted
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...

Posted (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 by PrimeSuspect

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...