Database check question.

How do I check via script, how to check to see if someone has something in the database? This is a check to see if they have something and if so, don't give them another.
 
what do you want to check?
Magazines, Weapons, broken legs, Humanity...
Need a bit more specific on this one
 
I want to check a uid with a vehicle in the object table, more specifically an origins building: Match a classname with CharacterID cells in the database, in object_data.
 
Last edited:
Code:
_key = format["CHILD:501:dayz_epoch.object_data:[""CharacterID""]:[[""CharacterID"",""="",""%1""]]:[0,8]:",_playerID];
_result = _key call server_hiveReadWrite;
diag_log format ["_result = %1, %2",_result, typeName _result];

I know I can do it via a 501 call... however, I need the script to give me the data of a row that matches two criteria. How do I go about that? IE:

Where classname = velkaGaraz and the current CharacterID that's being called. They only show an example of a single call. I wouldn't know how to approach via a 501 call, this is new territory for me.
 
Last edited:
Back
Top