Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "\life_server\script_macros.hpp"
- _this spawn {
- _uid = [_this,0,"",[""]] call BIS_fnc_param;
- //_unit = [_this,1,"",[""]] call BIS_fnc_param;
- _unit = (_this select 1);
- _query = format["SELECT uid, name, base_name, pos_base, CodeDoor FROM mcf_code WHERE uid='%1'",_uid];
- //waitUntil{sleep (random 0.3); !DB_Async_Active};
- _queryResult = [_query,2,true] call DB_fnc_asyncCall;
- diag_log format["MCF_Result 1 : %1",_query];
- diag_log format["MCF_Result 2 : %1, %3",_queryResult,_unit];
- [[1],format["le serveur envoi les données du joueur : (%1) \n proprio [%2] mdp : %3",_queryResult,((_queryResult select 0)select 1) ,((_queryResult select 0)select 2) ]] remoteExecCall ["life_fnc_broadcast",RCLIENT];
- //[_queryResult]call life_fnc_backSQL;
- //[_queryResult]call MCF_fnc_backSQL;
- //sleep 2;
- [_queryResult] remoteExecCall ["MCF_fnc_backSQL",_unit];
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement