Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.86 KB | None | 0 0
  1. #include "\life_server\script_macros.hpp"
  2. _this spawn {
  3. _uid        = [_this,0,"",[""]] call BIS_fnc_param;
  4. //_unit         = [_this,1,"",[""]] call BIS_fnc_param;
  5. _unit = (_this select 1);
  6. _query = format["SELECT uid, name, base_name, pos_base, CodeDoor FROM mcf_code WHERE uid='%1'",_uid];
  7. //waitUntil{sleep (random 0.3); !DB_Async_Active};
  8. _queryResult = [_query,2,true] call DB_fnc_asyncCall;
  9. diag_log format["MCF_Result 1 : %1",_query];
  10. diag_log format["MCF_Result 2 : %1, %3",_queryResult,_unit];
  11.  
  12. [[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];
  13.  
  14. //[_queryResult]call life_fnc_backSQL;
  15.  
  16. //[_queryResult]call MCF_fnc_backSQL;
  17. //sleep 2;
  18. [_queryResult] remoteExecCall ["MCF_fnc_backSQL",_unit];
  19. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement