Comparing the playerid to child table
#1

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:
PHP код:
if(PlayerInfo[playerid][pID] == HouseInfo[houseid][hID
but how with a child table ?
Reply


Messages In This Thread
Comparing the playerid to child table - by vernz - 09.05.2016, 19:40
Re: Comparing the playerid to child table - by Konstantinos - 09.05.2016, 20:01
Re: Comparing the playerid to child table - by Nin9r - 10.05.2016, 09:30

Forum Jump:


Users browsing this thread: 1 Guest(s)