[Help] Problem with resets in DarksWeb

zilvis89

New Member
Joined
Aug 19, 2009
Messages
53
Reaction score
0
when people are in game they press reset button in website and error doesnt appear there so ppl just press Reset then switch char , then again press and then swich again and so on...
in creal_reset_do.php i have this code where it should show error:

$online_check = mssql_query("SELECT * FROM MEMB_STAT WHERE memb___id='$username'");
$online_checked = mssql_fetch_array($online_check);
$hero = mssql_query("SELECT * FROM Character WHERE Name='$char'");
$row = mssql_fetch_array($hero);
if (empty($char)) { echo "<td><br><font size=2>Please select Character!</font><br><br></td>"; $error=1; }
elseif ($online_checked['ConnectStat'] != 0){ echo "<td><br><font size=2>Account is online, must be logged off!</font><br><br></td>"; $error=1; }

($online_checked['ConnectStat'] != 0) can reset ingmae and offline
($online_checked['ConnectStat'] > 0) can reset ingame and offline
($online_checked['ConnectStat'] < 0) cant reset at all(writes Account is Online
($online_checked['ConnectStat'] != 1) cant reset at all like above
($online_checked['ConnectStat'] > 1) cant reset at all like above
($online_checked['ConnectStat'] < 0) can reset ingame and offline


people use this to increase resets, how can i fix it?