08.07.2013, 06:37
Okay so i had this problem for a long time and can't get it fixed. But i know it is probably in the mysql_get_field or the sscanf.
This way it does not make it crash... Uncommenting it will make it crash. But it also says with mysql_get_field("HouseID", str); it is empty while its really not:
So why is it killing my server with this:
pawn Код:
// format(str, sizeof(str), "SELECT `HouseID` FROM `Houses` WHERE `Houseowner`='%s'", name);
// mysql_query(str);
// mysql_get_field("HouseID", str); //Gets the first field of the row returned (HouseID)
// mysql_free_result();
if(!sscanf(str, "d", integer))
So why is it killing my server with this:
pawn Код:
format(str, sizeof(str), "SELECT `HouseID` FROM `Houses` WHERE `Houseowner`='%s'", name);
mysql_query(str);
mysql_get_field("HouseID", str); //Gets the first field of the row returned (HouseID)
mysql_free_result();
if(!sscanf(str, "d", integer))