07.01.2011, 22:26
Hey guys, i asked this in my thread last night, but answer i got didnt work
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
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.
}