Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. " _plate = _dbInfo select 1;" \n
  2. "" \n
  3. " _query = format [""UPDATE vehicles SET alive='0' WHERE pid='%1' AND plate='%2'"",_uid,_plate];" \n
  4. " _query spawn {" \n
  5. " " \n
  6. " _thread = [_this,1] call DB_fnc_asyncCall;" \n
  7. " };" \n
  8. " };" \n
  9. " if (!isNil ""_x"" && {!isNull _x}) then {" \n
  10. " deleteVehicle _x;" \n
  11. " };" \n
  12. " };" \n
  13. "} forEach allMissionObjects ""LandVehicle"";" \n
  14. "" \n
  15. "{" \n
  16. " if (!alive _x) then {" \n
  17. " _dbInfo = _x getVariable [""dbInfo"",[]];" \n
  18. " if (count _dbInfo > 0) then {" \n
  19. " _uid = _dbInfo select 0;" \n
  20. " _plate = _dbInfo select 1;" \n
  21. "" \n
  22. " _query = format [""UPDATE vehicles SET alive='0' WHERE pid='%1' AND plate='%2'"",_uid,_plate];" \n
  23. " _query spawn {" \n
  24. " " \n
  25. " _thread = [_this,1] call DB_fnc_asyncCall;" \n
  26. " };" \n
  27. " };" \n
  28. " if (!isNil ""_x"" && {!isNull _x}) then {" \n
  29. " deleteVehicle _x;" \n
  30. " };" \n
  31. " };" \n
  32. "} forEach allMissionObjects ""Air"";" \n
  33. "_cars = time;" \n
  34. "" \n
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement