15.12.2015, 14:50
PHP Code:
if(db_num_rows(queryresult) == MAX_HOUSES_PER_PLAYER) return SendClientMessage(playerid, 0xFF0000, "You already have the max amount of houses");
if(db_num_rows(queryresult) == MAX_HOUSES_PER_PLAYER) return SendClientMessage(playerid, 0xFF0000, "You already have the max amount of houses");
new rows, fields;
cache_get_data(rows, fields);
if(rows == MAX_PLAYER_PER_HOUSE