Zero-Affect Posted June 9, 2008 Share Posted June 9, 2008 Re: Tutorial: v1 - v2 Conversion Yeah but joker thats cause you don't have the skill to code your own version 2 blows until you edit it... which on your sites you haven't done much editing but i guess thats cause your so elite... lmao why is the word noob always used by you? when your the biggest noob on ce Get over yourself :roll: Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted July 8, 2008 Share Posted July 8, 2008 Re: Tutorial: v1 - v2 Conversion *muffles laughter* Be nice people! Quote Link to comment Share on other sites More sharing options...
~Destiny-Gaming~ Posted July 8, 2008 Share Posted July 8, 2008 Re: Tutorial: v1 - v2 Conversion All he does is use OTHER PEOPLE HACKS! To Hack Game's he should stop I Disagree with joker he's just a kid! Quote Link to comment Share on other sites More sharing options...
Karlos Posted August 17, 2008 Share Posted August 17, 2008 Re: Tutorial: v1 - v2 Conversion Cheers Thanks To This Ive Convered 50+ Mods :) Quote Link to comment Share on other sites More sharing options...
Djkanna Posted August 19, 2008 Share Posted August 19, 2008 Re: Tutorial: v1 - v2 Conversion When I converted a v1 to a v2 I got this message: Fatal error: Cannot redeclare money_formatter() (previously declared in /global_func.php:2) in /global_func.php on line 5 Please can someone help , wow this is my first post. Thanks EDIT: I was a dumbass back then and hey I know know when my first post on here was I just used to be a lurker xD Quote Link to comment Share on other sites More sharing options...
XCU53S Posted September 1, 2008 Share Posted September 1, 2008 Re: Tutorial: v1 - v2 Conversion take the money format lines out of the mod its already delacred in global_func.php as it says Quote Link to comment Share on other sites More sharing options...
Uridium Posted September 3, 2008 Share Posted September 3, 2008 Re: Tutorial: v1 - v2 Conversion when i converted a v1 to a v2 i got this message Fatal error: Cannot redeclare money_formatter() (previously declared in /global_func.php:2) in /global_func.php on line 5 please can someone help wow this is my first post when your converting to V2 remove the line that says include "global_func.php"; and overwrite with include "globals.php"; Quote Link to comment Share on other sites More sharing options...
Tylor Posted September 28, 2008 Share Posted September 28, 2008 Re: Tutorial: v1 - v2 Conversion thanks i wanted to change a couple of mods and now i can Quote Link to comment Share on other sites More sharing options...
Uridium Posted October 1, 2008 Share Posted October 1, 2008 Re: Tutorial: v1 - v2 Conversion Just a quick note for V2. You dont always have to change mysql_fetch_array to $db->fetch_row.. As this can also lead to you having page errors However the $db->query is often found next to a SELECT FROM or INSERT INTO or UPDATE or DELETE prompt where as the fetch_row is more commonly placed after a SELECT FROM query $qo=$db->query("SELECT i.* FROM items i WHERE i.itmid={$_GET['wepid']}"); $r1=$db->fetch_row($qo); and num_rows are more likely to be found near a Call from the mysql that has an ORDER BY statement.. Quote Link to comment Share on other sites More sharing options...
winfidel Posted October 18, 2008 Share Posted October 18, 2008 Re: Tutorial: v1 - v2 Conversion What do I do with this? */5 * * * * curl http://localhost/cron_fivemins.php?code ... 87f3643cb* * * * * curl http://localhost/cron_minute.php?code=c ... 187f3643cb 0 * * * * curl http://localhost/cron_hour.php?code=c1e ... 187f3643cb 0 0 * * * curl http://localhost/cron_day.php?code=c1ea ... 187f3643cb Quote Link to comment Share on other sites More sharing options...
Kaotic Posted October 19, 2008 Share Posted October 19, 2008 Re: Tutorial: v1 - v2 Conversion What do I do with this? */5 * * * * curl http://localhost/cron_fivemins.php?code ... 87f3643cb* * * * * curl http://localhost/cron_minute.php?code=c ... 187f3643cb 0 * * * * curl http://localhost/cron_hour.php?code=c1e ... 187f3643cb 0 0 * * * curl http://localhost/cron_day.php?code=c1ea ... 187f3643cb Lol... if u can read those are the crons it takes to run the game... but since it's local host i wouldn't worry about it Quote Link to comment Share on other sites More sharing options...
winfidel Posted October 22, 2008 Share Posted October 22, 2008 Re: Tutorial: v1 - v2 Conversion I'm in testing... on xp local.. its hosted someplace else... I just cant get the crons to work but then I figured out: who cares I'm designing/modifying... I've having a bitch of a time... I just started learning this stuff five days ago... I've covered a lot of ground... I had never heard of mccode.. myphp... tables or php... so I think I'm doing okay.. I could always use help though... I want things... for my game... a register page set up to take name / password / email / replace promo code with Country... then depending on country I want to add and subtract stats or give cash then I want to set up the explore page to respond to what city they are in... in city one no bank href / no crystal market in city three a bank and so on In city five I want females 12% Energy every 5 mins instead of 8% that's what I'm searching the boards for... knowledge... and better casino games... screw that look in box... roulette... 50/50 that sucks... I want card games and something better... Quote Link to comment Share on other sites More sharing options...
thedestroyer Posted December 28, 2009 Share Posted December 28, 2009 i got one problem how do you change this to v2? (mysql_num_rows($eq) == 0) Quote Link to comment Share on other sites More sharing options...
Tcmaker Posted January 6, 2010 Share Posted January 6, 2010 Just a quick note for V2. You dont always have to change mysql_fetch_array to $db->fetch_row.. As this can also lead to you having page errors However the $db->query is often found next to a SELECT FROM or INSERT INTO or UPDATE or DELETE prompt where as the fetch_row is more commonly placed after a SELECT FROM query $qo=$db->query("SELECT i.* FROM items i WHERE i.itmid={$_GET['wepid']}"); $r1=$db->fetch_row($qo); and num_rows are more likely to be found near a Call from the mysql that has an ORDER BY statement.. well i cant get my item market page to show any ideas why i have tryed everything Quote Link to comment Share on other sites More sharing options...
Joshua Posted January 14, 2010 Share Posted January 14, 2010 woops >,< mysql_query -- $db->query ___________ mysql_num_rows -- $db->num_rows ________________ mysql_fetch_row -- $db->fetch_row ________________ Also helps to add, go into all your functions where you have global $ir,$c etc etc etc, And add $db Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted January 15, 2010 Share Posted January 15, 2010 Coverting is Easy! open in notepad CTRL + H -- find: mysql_ replace with: $db-> -- find: fetch_array replace with: fetch_row -- find: session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); replace with: include_once (DIRNAME(__FILE__) . '/globals.php'); Difficult ain't it lol Quote Link to comment Share on other sites More sharing options...
KDawg08 Posted January 19, 2010 Share Posted January 19, 2010 what's with this part crimgame? (DIRNAME(__FILE__) . Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted January 19, 2010 Share Posted January 19, 2010 if i remember correctly DIRNAME(__FILE__) . 'globals.php' returns with something like /user/public_html/globals.php, i've used it for so long i actually have never researched it. Quote Link to comment Share on other sites More sharing options...
KDawg08 Posted January 19, 2010 Share Posted January 19, 2010 if i remember correctly DIRNAME(__FILE__) . 'globals.php' returns with something like /user/public_html/globals.php, i've used it for so long i actually have never researched it. never used it before... then again mine is a V1 game anyhow. Quote Link to comment Share on other sites More sharing options...
AlabamaHit Posted January 19, 2010 Share Posted January 19, 2010 It is all a personal preference. I persnally don't use it either. When I include a file i use include_once('filename'); No difference in it. Just all personal preference. And when converting somethign I just change the top crap to include_once('globals.php'); No reason to go and change all those query's even though it is easy with Replace All in notepad.. it is no way safer. Just go and look at the database class. How can it be it is nothing more than a function changing the mysql_ to $db-> there is no more security added into the database class. Quote Link to comment Share on other sites More sharing options...
KDawg08 Posted January 19, 2010 Share Posted January 19, 2010 How could I make it so my V1 mod could use V2 mods without converting them? instead of having to convert all the $db-> to mysql_ and arrays to rows etc? Is there a simple way to do this for V1? Quote Link to comment Share on other sites More sharing options...
AlabamaHit Posted January 20, 2010 Share Posted January 20, 2010 Add the Database Class from v2 to v1?? Then you would never have to worry about it lol. And go even futher also. Make a page called globals.php and add all the top stuff then you wouldn't have to change to much lol. Quote Link to comment Share on other sites More sharing options...
Djkanna Posted January 20, 2010 Share Posted January 20, 2010 if i remember correctly DIRNAME(__FILE__) . 'globals.php' returns with something like /user/public_html/globals.php, i've used it for so long i actually have never researched it. Yup "Returns directory name component of path" :) http://php.net/manual/en/function.dirname.php Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted January 21, 2010 Share Posted January 21, 2010 Yeah i thought it was something like that. Quote Link to comment Share on other sites More sharing options...
mr_shuu Posted January 2, 2011 Share Posted January 2, 2011 ------- --------- Quote Link to comment Share on other sites More sharing options...
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.