Jump to content
MakeWebGames

DesignLoft

Members
  • Posts

    40
  • Joined

  • Last visited

    Never

Everything posted by DesignLoft

  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.
  16. Re: Cron MYSQL Link Problem. right thanks, I'll delete them. Yes the mysql.php is included in all the crons. And the mysql connectoin as just beeen corrected,
  17. Re: Cron MYSQL Link Problem. But then if i delete that will the   global $c;   still work as i have deleted the $C from the mysql query, Also with braveupdate and the other crons they have more than 1 ,$c shall i delete all of them that i see? :?
  18. I have finally sorted out the "Access Denied" problem relating to the MYSQL login. Now the problem is the mysql links. As an example this is hospital.php, ( the error is happening with all the cron php's) Error: Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /usr/home/ben/public_html/mafia/SuPerdupercronSZ/are/not/4u/hospital.php on line 5   the line is: mysql_query("UPDATE users set hospital=hospital-1 WHERE hospital>0",$c);   any ideas how to sort this out? :?
  19. Re: Brave not refilling, yeah it might be, I've double tripled quadroupled checked the Crons, i'm gonna upload a fresh Script and see if it works then...
  20. Re: Refilling Bars well how we ment to fix this problem if the forums knackered???? :cry:
  21. Re: Brave not refilling, please..
  22. Re: [Lite] Hack Users PC i suggest adding } at the end just above end session() php?>
  23. Re: Brave not refilling, I have checked what you said, nothing is coming up in the error log and the mysql.php is in with the crons so it shouldn't need to be /.././/.//.// etc.. any ideas why please help!
  24. I am having serious trouble with the brave refilling, I have troubleshooted and have got rid of many errors, the errors i have got rid of are: Fixed URL Added the MYSQL Details into the Crons page   Everything else seems right, I have had Darkwolf to check my crons, he says they are fine, my braveupdate code is:   <?php include "mysql.php"; global $c; //brave update $q1=mysql_query("SELECT COUNT(*) as users FROM users",$c); $r=mysql_fetch_array($q1); $rows=$r['users']; print "Found $rows users to process."; $i=1; $next=$rows; $query="UPDATE users SET brave=brave+((maxbrave/10)+0.5) WHERE brave$query2="UPDATE users SET brave=maxbrave WHERE brave>maxbrave"; $query3="UPDATE users SET hp=hp+(maxhp/3) WHERE hp$query4="UPDATE users SET hp=maxhp WHERE hp>maxhp"; mysql_query($query,$c) or die("\nError Executing Query 1 for updating users $i to $next\n$query\n".mysql_error()."\nError Code:".mysql_errno()); mysql_query($query2,$c) or die("\nError Executing Query 2 for updating users $i to $next\n$query2\n".mysql_error()."\nError Code:".mysql_errno()); mysql_query($query3,$c) or die("\nError Executing Query 3 for updating users $i to $next\n$query3\n".mysql_error()."\nError Code:".mysql_errno()); mysql_query($query4,$c) or die("\nError Executing Query 4 for updating users $i to $next\n$query4\n".mysql_error()."\nError Code:".mysql_errno()); print "\nUsers $i to $next updated successfully."; print "\nDone."; ?>   is there any error to why this is happening, before i sorted the url etc.. the bravery was setting itsself to -28/5 and would NOT update, now when people do crimes, it just stays on how many bravery left, please help its the only thing stopping my game from opening.
  25. Re: Add jail key can someone please give me the sql code to insert into my database as i cannot figure it out!!!
×
×
  • Create New...