Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //normal message
- case 0:
- {
- if(isNULL _target) exitWith {};
- _to = call compile format["%1", _target];
- [[_msg,name _player,0],"TON_fnc_clientMessage",_to,false] spawn life_fnc_MP;
- private["_query","_pid","_toID"];
- _pid = getPlayerUID _player;
- _toID = getPlayerUID _target;
- _msg = [_msg] call DB_fnc_mresString;
- _fromName = name _player;
- _toName = name _target;
- _query = format["INSERT INTO messages (fromID, toID, message, fromName, toName) VALUES('%1', '%2', '""%3""', '%4', '%5')",_pid,_toID,_msg,_fromName,_toName];
- diag_log format["Query: %1",_query];
- waitUntil{!DB_Async_Active};
- [_query,1] call DB_fnc_asyncCall;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement