SA-MP Forums Archive
Mysql - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Mysql (/showthread.php?tid=208171)



Mysql - Anthonyx3' - 07.01.2011

Hey guys, i asked this in my thread last night, but answer i got didnt work

pawn Код:
format ( string, sizeof ( string ), "SELECT * FROM `Users` WHERE `Name` = '%s'", UserStats [ playerid ] [ Name ] );
mysql_query ( string );
mysql_store_result ( );
if ( mysql_num_rows ( ) != 0 )
{
    //Registered.
}
else
{
    //Not registered.
}
i was told to use that to detect if player is registered or not, but it didnt work, it still send register dialog, no login. How could i correctly detect