Jump to content
MakeWebGames

richard's business mod update


Recommended Posts

So I found richard's business mod update (looks awesome by the way). But this one line is giving me issues.

 

 echo '<p class="heading">Create Company</p>';
                              $_POST['name'] = mysql_real_escape_string($_POST['name']);
                              $_POST['class'] = abs(@intval($_POST['class']));  

 

Basically, Im using mysqli, but switching to mysqli_real_escape_string returns a fatal also. Will post the exact error in a minute after I can login. >.<

 

Link to comment
Share on other sites

quick question. Last one for the day. With

http://makewebgames.io/forum/game-engines/mccode-development-support/free-modifications/16465-richards-business-mod-fixed-with-a-few-things-added

using the business mod, is going to help make my game more dynamic. Instead of just passive bonuses or items, there will be areas that are open just to certain company employees.

ie. law firm member who has been employed for more than 3 days will be able to access the bail feature for the jail. Allowing only lawyers to be able to bail people out.

So what details do I call? what should the if statement look like? I can figure the rest out from there. But defines are almost always unclear for me, and if statements semi.

Link to comment
Share on other sites

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...