CarOwner
#1

Well, I use Gamemode's South Central Roleplay, and I want to make a system to check the license plate for the police ...
In the database, in the part of CarOwner, instead of informing the name of the owner of the vehicle, it informs the ID of its character.
In Gamemode, I wanted to convert CarOwner from cache_get_field_int to cache_get_field_content
Reply
#2

Don't know the gamemode but if the database is properly normalized then you need a join to retrieve data from more than one table simultaneously. Or send an extra query (not recommended).
PHP код:
SELECT c.*, p.name FROM Car c WHERE plate 'xyz' INNER JOIN Player p ON c.CarOwner p.id 
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)