09.01.2016, 01:30
Sends player to create char if the Status is 2? Other returns error_msg.
This code not working i think
$checkact= mysql_query("SELECT `Name` FROM `samp_ucp` WHERE Status= '2' AND `Name` = '".GetP($_SESSION['Logged'], "name")."'");
mysql_real_escape_string($checkact);
if(!mysql_num_rows($checkact))
This code not working i think
$checkact= mysql_query("SELECT `Name` FROM `samp_ucp` WHERE Status= '2' AND `Name` = '".GetP($_SESSION['Logged'], "name")."'");
mysql_real_escape_string($checkact);
if(!mysql_num_rows($checkact))
PHP код:
if((GetP($id, "Character1") == "None") && (GetP($id, "Character2") == "None") && (GetP($id, "Character3") == "None"))
{
?>
<ul class="breadcrumb">
<i class="icon-chevron-right"></i> <li class="active">Switch Character</li>
</ul>
<?php
$checkact= mysql_query("SELECT `Name` FROM `samp_ucp` WHERE Status= '2' AND `Name` = '".GetP($_SESSION['Logged'], "name")."'");
mysql_real_escape_string($checkact);
if(!mysql_num_rows($checkact))
{
echo GetMessage("Hint:", 'Your account has not been activated yet!', 4);
}
else
{
echo "<meta http-equiv='refresh' content='2.0;url=?page=addchar'>";
echo GetMessage("Hint:", 'You don't have any characters! System will link you to create a character..', 4);
}
}