Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2016
403
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. /*
  2. File: fn_mresArray.sqf
  3. Author: Bryan "Tonic" Boardwine";
  4. Description:
  5. Acts as a mres (MySQL Real Escape) for arrays so they
  6. can be properly inserted into the database without causing
  7. any problems. The return method is 'hacky' but it's effective.
  8. */
  9. private["_array"];
  10. _array = [_this,0,[],[[]]] call BIS_fnc_param;
  11. _array = str(str(_array));
  12. _array = toArray(_array);
  13.  
  14. for "_i" from 0 to (count _array)-1 do
  15. {
  16. _sel = _array select _i;
  17. if ((_i != 0 && _i != ((count _array)-1))) then
  18. {
  19. if (_sel isEqualTo 34) then
  20. {
  21. _array set[_i,96];
  22. };
  23. };
  24. };
  25.  
  26. toString(_array);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement