PHP help! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: PHP help! (
/showthread.php?tid=598127)
PHP help! -
SetPlayerNameTag - 09.01.2016
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))
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);
}
}
Re: PHP help! -
SetPlayerNameTag - 09.01.2016
nvm fixed