09.05.2016, 19:40
Hi, so, I have my 'player_accounts' table with the primary key on the field 'ID' and my child table 'player_house' with the primary key set on 'Userid', the relation is set and working. I would like to know when a player perform a command like /lockhouse by example, how to compare both PlayerInfo[playerid][pID] with the Userid from the child table ?
In simple words, how to know if he owns a house ?
With enums it would be:
but how with a child table ?
In simple words, how to know if he owns a house ?
With enums it would be:
PHP код:
if(PlayerInfo[playerid][pID] == HouseInfo[houseid][hID]