Jump to content
MakeWebGames

josh-j-c

Members
  • Posts

    60
  • Joined

  • Last visited

Everything posted by josh-j-c

  1. Re: [mccode v1] DONATION PACKS TO ITEMS Does this code above actually work, nowadays when people post mods, random people repost with different versions and do not state which version of Mccodes its actually ment for... Any other information on this mod above this post would be nice and anyone know if it actually does work, or anyone know of a mod that does work successfully ? if so please post :P Jc
  2. Re: [mccode V2] Very simple travel time mod. Lol ok kool :P Any progress with this mod ? ive been flicking through it but cannot find any problems, even though i got the synatax error about :? Anyone else got this word working successfully on there game ? Jc
  3. Re: [mccode v2] Changer User Password!   Just after the "include globals.php"; Although not having the main staff area in front of me this would only be a quick guess...
  4. Re: [mccode V2] Very simple travel time mod. Sorry just wandering $$BULL$EYE$ .... But why the name "tavern", if there traveling why not "currently traveling to:" Seems a little weird to me...
  5. Re: [mccode V2] Very simple travel time mod. Put the coding through testing and seems it failed straight away I'm getting errors such as,   QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE userid=1' at line 1 Query was UPDATE users SET money=money-2000,location=2, traveltime= WHERE userid=1   Completely out of the blue... See I'm in confussion now because i edited the database etc and it seem like the mod completely contradicts itself, for example to two MySql additions you have given us don't work together so the code couldn't possible work, and the page coding isn't sufficient ether anyone else experienced any issues such as these ? Sorry to be the bearer of bad news :S Jc
  6. Re: [mccode V2] Very simple travel time mod. Just wandering say i wanted to make alternative ways of transport what would i do in that situation ? :S Anyone exactly catch on to what i mean ? Jc
  7. Re: [mccode V2] Very simple travel time mod. Mod seems to be kool and ill be trying it out tomorrow after college nice mod mate all the coding looks legit... although are the prices easily negotiable ??? like taken from the database ??? Anyway nice mod and thanks for helping customise it to some of our specifications. Jc
  8. Re: [mccode V2] Very simple travel time mod. See i was in the direction of using,   ALTER TABLE `cities` ADD `traveltimecar` INT(11) NOT NULL DEFAULT '0';   And i was running through what else i would need to use to get the actual query to run on the page of the say "transportcar.php" Also it would be a little job editing the global you made like you said alot of "IF's" and "elseif" Im not the most efficiant coder and im by far not the best but ill foccus all my concentration on this mod now, i hope other people can help me and shaved92bravada make a kool free modification thanks, Jc
  9. Re: [mccode V2] Very simple travel time mod. Ive noticed that the time taken to travel is $random, is there any way in which you could do this for a dedicated time for each destination... ?? See i was thinking of making a new query in locations and add the time to travel in there and then place the query onto the page so that it picks it straight out... Would i be correct ? Also say you had more ways of transport eg driving a car what would you do, im under the impression you would just make another sql table within the locations again but call it something entirely different and add it in the for eg monorail page above, instead of my driving car traveling system.... could anyone actually tell me if im on the right track... Thanks, Jc
  10. Re: [mccode v2] Secure Bank! Tried but really didnt want to work, its a bit of a drag really lol, and could i upload css so that i could say place an image behind it and if so where would i actually add the css ? Thanks, Jc
  11. Re: [mccode v2] Secure Bank! I was wandering say i wanted to change the name of the file how would i get it to work that it wouldnt use   "You ask to withdraw 1, the banking lady grudgingly hands it over." Ive tried changing the "<form action='bank.php?action=withdraw' method='post'>" Part to a differnt name e.g , "test.php?action=withdraw" but it still doesnt seem to want to work, please could someone reply and tell me how to do this it would be grately thanked, Thank you JC
  12. Re: Error with my header I was thinking could i just edit the location of all the images and move them around on the original header but then place the images i have instead of the originals if you catch my drift, would that be much quicker ?   Thanks for your advice though much appreciated
  13. Hello i have been having Major issues with my header recently i have modded it up and have been dealt with issues affecting my site, its structure and its effectiveness, the problems with my header i have found but not been able to repair are,   Attacking. When i attack someone it bring me up to the area where i select a weapon to attack my enemies with my the alignment is all completely out of place Federal Jail. Once a person is in federal jail all that they can see is "You are in fed for Days" "Reason " Completely losing the reason and the amount of days.   There also was before an issue with the alignment of the federal jail but i somehow managed to repair that issue. The header i am using ATM is located bellow, if anyone could have a shot at fixing it, it would be greatly appreciated, thanks.   <?php class headers { function startheaders() { global $ir, $set; $back="#333333"; //Define the background colour of your site here. echo <<<EOF <html> <head> <title>{$set['game_name']}</title> <style> body { background: $back; font-family: Arial, Helvetica, sans-serif; } table { font-family: Tahoma; font-size: 12px; } .table { background-color:#000000; } .table3 { background-color:#000000; } .table td { background-color:#DEDEDE; height:22px; } .table3 td { background-color:#CCCCCC; } td .alt { background-color:#EEEEEE; height:22px; } td .h { background-image:url(tablehgrad.png); background-repeat:repeat-x; font-weight: bold; background-color: #D6D6D6; } .table th { background-image:url(tablehgrad.png); background-repeat:repeat-x; font-weight: bold; background-color: #D6D6D6; } a:link { text-decoration: none; color: #333333; } a:hover { text-decoration: underline; color: #666666; } a:active { text-decoration: none; color: #666666; } a:visited { text-decoration: none; color: #333333; } doodlebee #:1177461 </style> </head><body> <center><table width=900 border=0 cellpadding=0 cellspacing=0><tr><td> <image src='topheaderimage.png'></td></tr> <td background='middleheaderimage.png'> <table width=100% border=0 cellpadding=0 cellspacing=0> <tr valign="top"><td width=23><center></td><td width=183><center> EOF; } function userdata($ir,$lv,$fm,$cm,$dosessh=1) { global $db,$c,$userid, $set; $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; $db->query("UPDATE users SET laston=unix_timestamp(),lastip='$IP' WHERE userid=$userid"); if(!$ir['email']) { global $domain; die ("<body>Your account may be broken. Please mail help@{$domain} stating your username and player ID."); } if($dosessh && ($_SESSION['attacking'] || $ir['attacking'])) { print "You lost all your EXP for running from the fight."; $db->query("UPDATE users SET exp=0,attacking=0 WHERE userid=$userid"); $_SESSION['attacking']=0; } $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=""; $u=$ir['username']; if($ir['donatordays']) { $u = "<font color=green>[i]{$ir['username']}</font>[/i]";$d="[img=donator.gif]"; } $gn=""; global $staffpage; $bgcolor = 'FFFFFF'; print <<<OUT <center> [b]Name:[/b] $gn{$u} [{$ir['userid']}] $d [b]Money:[/b] {$fm} [b]Level:[/b] {$ir['level']} [b]Points:[/b] {$ir['crystals']} [[url='logout.php']Emergency Logout[/url]] <hr /> [b]Energy:[/b] {$enperc}% <img src=greenbar.png width=$enperc height=10><img src=redbar.png width=$enopp height=10> [b]Will:[/b] {$wiperc}% <img src=greenbar.png width=$wiperc height=10><img src=redbar.png width=$wiopp height=10> [b]Brave:[/b] {$ir['brave']}/{$ir['maxbrave']} <img src=greenbar.png width=$brperc height=10><img src=redbar.png width=$bropp height=10> <hr /> OUT; if($ir['fedjail']) { $q=$db->query("SELECT * FROM fedjail WHERE fed_userid=$userid"); $r=$db->fetch_row($q); die("</td><td width=25></td><td width=643><center><font color=red size=+1>You have been put in the {$set['game_name']} Federal Jail for {$r['fed_days']} day(s). Reason: {$r['fed_reason']}</font>[/b]</body></html>"); } if(file_exists('ipbans/'.$IP)) { die("[b]<font color=red size=+1>Your IP has been banned from {$set['game_name']}, there is no way around this.</font>[/b]</body></html>"); } } function menuarea() { include "mainmenu.php"; global $ir,$c; $bgcolor = 'FFFFFF'; print '</td><td width=25></td><td width=643><center>'; print "[url='donate.php']* Donate today and gain loads of extra's! *[/url] "; if($ir['hospital']) { print "You are currently in hospital for {$ir['hospital']} minutes. "; } if($ir['jail']) { print "You are currently in jail for {$ir['jail']} minutes. "; } } function smenuarea() { include "smenu.php"; global $ir,$c; $bgcolor = 'FFFFFF'; print '</td><td width=25></td><td width=643><center>'; } function endpage() { global $db; print <<<OUT </td><td width=27></td></tr> </table> </td></tr> <tr><td><image src='bottomheaderimage.png'></td></tr></table> OUT; } } ?>
  14. Re: [FREE] [V2] 2 Game Styles/Themes Thanks ill atempt to fix it when i get back from college, ty :mrgreen:
  15. Re: [FREE] [V2] 2 Game Styles/Themes Well is there a way to solve the issue, anyone have any time to flick through and find the issue ive sorted the federal jail centering issue but not the time and reason part yet and have made no progress on the attack problem yet..   Any help would be great thanks.
  16. Re: [FREE] [V2] 2 Game Styles/Themes Hi, Ive been looking through the template on various pages when i found that it has a few issues that would need sorting out.   One issue is found on template one where once you place a member of your game in federal jail the page is all messed up, also they can't actually see the length they are in federal jail for or reason. The second issue is when you attempt to attack someone the page is also messed up with the location of the text... Is there a solution to this anywhere and would anyone know how to solve this because it s a Major drawback to my game...   Any new answers would be largely appreciated, Thanks.
  17. Re: Counting (nr game) 2025 :-D
  18. Re: 3 Word Game Just after that....
  19. Re: bug report mod Hey, i think this could be a kool mod although its not in V2 :| Dont suppose anyone would be able to translate it, and yeah i know ill probly get called lazy just i dont want to screw my game up with the admin area and such, Thanks.
  20. Re: [Free] Profile Image Uploader   Personal use really is there a way in which because ive google'd it and everything and every single one it shows examples image's no other file formats.
  21. Re: [FREE] [V2] 2 Game Styles/Themes Hey loving the themes only one problem dont really like not having the tables from the original mc codes design, does anyone know how to bring those back ??
  22. Re: [Free] Profile Image Uploader Hey i were wandering would there be such a way that i could let my users of my game upload files such as .txt files and music files and such ??
  23. Re: MCcode V1.1 New Jobs[Free] yeah yeah, this mods pritty kool, right what i was looking for 8-) although still testing it, nice work though :-D
  24. Re: Email change for preferences.php Can i just say this isnt the best idea ive seen, wouldnt be too clever if say one of your accounts was hacked because what about forgot password ect if you used it... i mean id be pritty pissed if i couldnt retrieve my password and couldnt log on because i got my account hacked majour and i could NEVER get it back again, catch ma drift... Anywayz peace out! :-D
  25. On my V2 version of Mc Codes when i train in the gym i get absolutly no exp im testing if i get exp out of the crimes at this moment in time :| has anyone else had this issue ? If anyone could give me any help please could you thanks
×
×
  • Create New...