Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //fn_adventDB.sqf
- params [
- ["_pid","",[""]]
- ];
- _query = format ["UPDATE players SET advent = 1 WHERE pid='%1'",_pid];
- [_query,1] call DB_fnc_asyncCall;
- sleep 3;
- //fn_checkAdventDB.sqf
- params [
- ["_pid","",[""]]
- ];
- _query = format ["SELECT advent FROM players WHERE pid='%1'",_pid];
- _queryResult = [_query,2] call DB_fnc_asyncCall;
- ["Törchen wird geöffnet!",1] call life_fnc_msg;
- sleep 2;
- _status = _DBadvent select 0;
- if(status == 1) exitWith {
- [_queryResult] remoteExec ["life_fnc_advent",remoteExecutedOwner];
- };
- if(status != 1) exitWith {
- //["Du hast heute bereits ein Törchen geöffnet!",1] call life_fnc_msg;
- hint format ["Du hast heute bereits ein Törchen auf gemacht."];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement