nathanmarck Posted April 30, 2008 Posted April 30, 2008 I found a Mining mod and converted it (first conversion that works fully) mine.php: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. MYSQL Query: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Delete ! Posted April 30, 2008 Posted April 30, 2008 Re: Mining V2 Converted Nice Work Saves People Alot Of Hassel =D Quote
Tezza` Posted April 30, 2008 Posted April 30, 2008 Re: Mining V2 Converted Maybe you want to look at it closer. Im guessing its ment to be v2? you need to change all the "mysql_" to "$db->", and all the "array" to "row". Also your SQL seems to be faulty. Quote
Zero-Affect Posted April 30, 2008 Posted April 30, 2008 Re: Mining V2 Converted i fixed this like 4 month ago but i wont post it cause i don't believe it to be a free modification would have to check on that its actually quiet simple to convert and fix the little errors in it Quote
Delete ! Posted April 30, 2008 Posted April 30, 2008 Re: Mining V2 Converted Well you can't blaim him for trying =D Quote
Zero-Affect Posted April 30, 2008 Posted April 30, 2008 Re: Mining V2 Converted Yeah good effort mate Quote
~Destiny-Gaming~ Posted April 30, 2008 Posted April 30, 2008 Re: Mining V2 Converted He Did Good So Good One :-) Quote
parelem Posted May 1, 2008 Posted May 1, 2008 Re: Mining V2 Converted Im guessing its ment to be v2? you need to change all the "mysql_" to "$db->", and all the "array" to "row". not true. Quote
Spudinski Posted May 1, 2008 Posted May 1, 2008 Re: Mining V2 Converted It is fine if it calls to the user-defined function db::query or if calls to the internal function mysql_query, just as long as it has the connection identifier is globally defined for either of the functions, it will work in the same way. The MySQL script for this is fine. Quote
Zero-Affect Posted May 1, 2008 Posted May 1, 2008 Re: Mining V2 Converted yeah if your db is mysql this code is fine Quote
nathanmarck Posted May 1, 2008 Author Posted May 1, 2008 Re: Mining V2 Converted Thanks for the constructive comments and its my first conversion so it must be good if your saying it is I saw a conversion but it didnt have 100% converted so it all works so i converted it so that it will look and feel like a v2 mod if theres anything i could change just ask me. If you would like a mod converting ask me as well Quote
Zero-Affect Posted May 1, 2008 Posted May 1, 2008 Re: Mining V2 Converted okay open it in notepad click ctrl + h then add: mysql_ in the fine what section and add $db-> in the replace with section then click replace all Quote
nathanmarck Posted May 1, 2008 Author Posted May 1, 2008 Re: Mining V2 Converted That give errors loads of errors so ill stick to how it is. Quote
Spudinski Posted May 1, 2008 Posted May 1, 2008 Re: Mining V2 Converted You have to define the $db variable globally. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
nathanmarck Posted May 1, 2008 Author Posted May 1, 2008 Re: Mining V2 Converted You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And thats with the code added. ~roulet-wilson Quote
Spudinski Posted May 1, 2008 Posted May 1, 2008 Re: Mining V2 Converted That line should be: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. or You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Guest Anonymous Posted May 1, 2008 Posted May 1, 2008 Re: Mining V2 Converted yeah if your db is mysql this code is fine Well I think changing to Oracle, SQL server etc would be a little bit advanced for most here. okay open it in notepad click ctrl + h then add: mysql_ in the fine what section and add $db-> in the replace with section then click replace all Assuming you have a backup and understand the ramifications of serachin and replace with global variables. Call to undefined function: fetch_array() in /home/www/the-gangster-teritory.freehostia.com/mine.php on line 5 And you say converting is simple ... Hehe Come on peeps - this is easy stuff - when converting mods from 1 -> 2 or 2-> 1, make the same source work in both. Quote
nathanmarck Posted May 1, 2008 Author Posted May 1, 2008 Re: Mining V2 Converted Everything looks fine it just dont work ~roulet-wilson Quote
nathanmarck Posted May 1, 2008 Author Posted May 1, 2008 Re: Mining V2 Converted Im getting the error but i dont know whats rong. Its saying that fetch_array isnt anywhere but it works without $db ~roulet-wilson Quote
Zero-Affect Posted May 1, 2008 Posted May 1, 2008 Re: Mining V2 Converted You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Not Tested But Should Work... Quote
jimmytubbs Posted May 1, 2008 Posted May 1, 2008 Re: Mining V2 Converted You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And thats with the code added. ~roulet-wilson omg thats easy change mysql_ to $db-> and _array to _row ( thats for all the script advice use notepad and ctrl + H ) Quote
Zero-Affect Posted May 2, 2008 Posted May 2, 2008 Re: Mining V2 Converted How about reading the post above your post... Quote
chromed Posted May 14, 2008 Posted May 14, 2008 Re: Mining V2 Converted im not sure whether this thread is old now or not, i forgot to look at the date, but i got this error You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. any help pleasse Quote
HITMAN 17 Posted May 14, 2008 Posted May 14, 2008 Re: Mining V2 Converted You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
John1 Posted May 14, 2008 Posted May 14, 2008 Re: Mining V2 Converted i have added the files as an attachment, the code works. please read the install notes, and post any errors or problems u have Quote
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.