Jump to content
MakeWebGames

Recommended Posts

Posted

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.

Posted

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.

Posted

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

Posted

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.

Posted

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

Guest Anonymous
Posted

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.

Posted

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 )

  • 2 weeks later...
Posted

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

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...