Jump to content
MakeWebGames

Recommended Posts

Posted

Hello All

I'm getting the following error when attempting to hack account.

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 's bank account' where userid=1' at line 1

Query was update users set jailtime=106, jailreason='Caught trying to hack 's bank account' where userid=1

I have it installed on Mcodes V2

Here are a few lines of the Mod

$jailtime=rand(30,150);

$reason="Caught trying to hack {$r['username']}'s bank account";

$db->query("update users set jailtime=$jailtime, jailreason='$reason' where userid={$ir['userid']}");

}//end jailchance if

else

{

Thanks

Lynm77

Posted

Try this

 

$jailtime=rand(30,150);

$reason="Caught trying to hack {$r['username']} bank account";

$db->query("update users set jailtime=$jailtime, jailreason='$reason' where userid={$ir['userid']}");

}//end jailchance if

else

{

Posted

the problem with that fix is it will cause grammatical errors which may bother some people.

try this:

$jailtime=rand(30,150);
$reason="Caught trying to hack {$r['username']}\'s bank account";
$db->query("update users set jailtime=$jailtime, jailreason='$reason' where userid={$ir['userid']}");
}//end jailchance if
else
{

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