Jump to content
MakeWebGames

DesignLoft

Members
  • Posts

    40
  • Joined

  • Last visited

    Never

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

DesignLoft's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Re: Viewuser.php error I fixed the problem , it was i hadn't told the <table..... to print"
  2. Re: Viewuser.php error Update, now when i put the valid User id in it now comes up as a blank page, but with header.php menu.php included all working
  3. I have recently transformed the layout of viewuser drastically. I have taken out quite alot of the old text and php code and replaced it with a more cleaner nice layout, now after adding the various } to the end the page loads yet the error appears   Invalid use of file   I have looked at the code which this error relates to and cannot see what i have done wrong, would like some support please!
  4. Re: Duties thanks guys, such a n00b 8-)
  5. Having looked at my "viewuser.php" I see the duties are always N/A, i dont know how to change or what these do! do you change them on the admin panel?
  6. Re: hack pc and crystal slots error if you tell us whats on the line of the code error we maybe able to :-o
  7. Re: (LITE) Mail Signatures! After putting that in and uploading files I get this error   Fatal error: Call to undefined function: mailsig_change() in /usr/home/ben/public_html/mafia/preferences.php on line 65   line 65 is:   mailsig_change();   any ideas why?
  8. Re: Division by zero error when moving the "users stats" into the mainmenu.php Bump :)
  9. Well now i'm out of the beta phase I decided to make it more user friendly and i thought to place the users stats, like brave etc.. into the main menu. like on monocountry. so i copy this code over as it is required: function userdata($ir,$lv,$fm,$cm,$dosessh=1) $enperc=(int) ($ir['energy']/$ir['maxenergy']*100); $wiperc=(int) ($ir['will']/$ir['maxwill']*100); $experc=(int) ( $ir['exp']/$ir['exp_needed']*100); $brperc=(int) ($ir['brave']/$ir['maxbrave']*100); $hpperc=(int) ($ir['hp']/$ir['maxhp']*100); $enopp=100-$enperc; $wiopp=100-$wiperc; $exopp=100-$experc; $bropp=100-$brperc; $hpopp=100-$hpperc; $d="";   and then where appropriate i add print " [b]Your Stats[/b] [b]Energy:[/b] {$enperc}% [b]Will:[/b] {$wiperc}% [b]Brave:[/b] {$ir['brave']}/{$ir['maxbrave']} [b]EXP:[/b] {$experc}% [b]Health:[/b] {$hpperc}%   then the error appears as:   Warning: Division by zero in /usr/home/ben/public_html/mafia/mainmenu.php on line 2 Warning: Division by zero in /usr/home/ben/public_html/mafia/mainmenu.php on line 3 Warning: Division by zero in /usr/home/ben/public_html/mafia/mainmenu.php on line 4 Warning: Division by zero in /usr/home/ben/public_html/mafia/mainmenu.php on line 5 Warning: Division by zero in /usr/home/ben/public_html/mafia/mainmenu.php on line 6 any ideas why? I know php doesn't allow division by zero as it is impossible. But since i copied it over from header.php where it was working i cannot see why?
  10. I've just edited my account "Admin" to increase the stats,money,crystals etc.. For security purposes. And now no matter what link i click on I see that my level keeps increasing by 1 per llink clicked on. Any ideas! thanks.
  11. Re: [Lite] Jail Thanks, works a treat! :-D
  12. Re: [Lite] Jail what would the cron be to lower the jail time by 1 every minute?, as when my users are in jail they stay in jail forever as the time does not go down.
  13. Re: Refill Bars Going Down even when the stats dont change! So then what? lol
  14. Well i've finally sorted out my crons, and now the brave etc.. updates. But now say like the crime goes down 2. and the overall bar is like 50% down now, so is all the other bars even though the stats havn't changed! like the bars are synconized or something.
  15. Re: Cron MYSQL Link Problem. I still keep getting   curl: Permission denied   the mysql is fine, cron locations everything.
×
×
  • Create New...