07.01.2012, 17:38
Now i founded problem, if my user is not found in database, then server restart, if it is, it won`t
My code, what is problem there
format(Query, sizeof(Query), "SELECT * FROM `kasutajad` WHERE `Name` = '%s'", UuriM2ngijanimi(playerid));
mysql_query(Query);
mysql_store_result();
if(mysql_num_rows() == 1)
{
If user is
}
else
{
If user not found
}
what is the right code?
My code, what is problem there
format(Query, sizeof(Query), "SELECT * FROM `kasutajad` WHERE `Name` = '%s'", UuriM2ngijanimi(playerid));
mysql_query(Query);
mysql_store_result();
if(mysql_num_rows() == 1)
{
If user is
}
else
{
If user not found
}
what is the right code?