Jump to content
Sign in to follow this  
MoNtEcRiStO©

IS YOUR SERVER BROKEN SINCE 1.64 UPDATE? READ THIS #104

Recommended Posts

On 9/24/2016 at 4:47 AM, Jason_000 said:

Update the mresArray -> profit

This is all I see in mresArray:

 
/*
    File: fn_mresArray.sqf
    Author: Bryan "Tonic" Boardwine";
    Description:
    Acts as a mres (MySQL Real Escape) for arrays so they
    can be properly inserted into the database without causing
    any problems. The return method is 'hacky' but it's effective.
@@ -9,7 +9,7 @@
 */
 private ["_array"];
 _array = [_this,0,[],[[]]] call BIS_fnc_param;
-_array = str(str(_array));
+_array = str _array;
 _array = toArray(_array);
 
 for "_i" from 0 to (count _array)-1 do
 @@ -24,4 +24,4 @@ for "_i" from 0 to (count _array)-1 do
     };
 };
 
-toString(_array); 
+str(toString(_array));

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×
×
  • Create New...