25.08.2013, 19:32
Hello hear i am again yes sorry
I try to make that one player only can have on house in Mysql but it doesnt work i try
I have set this to see if the player has a house or not but now its sets even for players how doesnt have any house
Sorry for my english
This is te hole script
I try to make that one player only can have on house in Mysql but it doesnt work i try
I have set this to see if the player has a house or not but now its sets even for players how doesnt have any house
Sorry for my english
Код:
HasHouse[playerid] =1;
Код:
stock PlayerOwnHouse(playerid) { new pname[24],QUERY[400]; GetPlayerName(playerid, pname, 24); format(QUERY, sizeof(QUERY), "SELECT id FROM House WHERE Owner = '%s' LIMIT 1",pname); mysql_query(QUERY); mysql_store_result(); HasHouse[playerid] =1; mysql_free_result(); }