03.08.2011, 19:19
how can i get how many houses has by checking teir name? i got this
this return wrong valtue:
this return wrong valtue:
pawn Код:
stock getPlayerHouses(playerid)
{
new string[128], houses;
format(string, sizeof(string), "SELECT `hOwner` FROM `house` WHERE `hOwner` = '%s'", GetPlayerNameEx(playerid));
mysql_query(string);
mysql_store_result();
while(mysql_retrieve_row())
{
houses ++;
return 1;
}
mysql_free_result();
return houses;
}