Advertisement
Guest User

Untitled

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