Jump to content

Kimse

Members
  • Content Count

    13
  • Joined

  • Last visited

Community Reputation

1 Neutral

About Kimse

  • Rank
    Member

Recent Profile Visitors

292 profile views
  1. It looks like after the recent update with the updatede bi-sign this is no longer working i havn't had any succes after the update.
  2. Kimse

    Airdrop Mission V2.1

    @Pril- here's the RPT https://pastebin.com/12xCR4ke im running a modded altislife v5 just FYI.
  3. Kimse

    Airdrop Mission V2.1

    not sure you have encounted this @Pril- but some times the air drop inst dropping its cargo and simple doing a fly by?. or a hidden feature :P. anyway lov the script its clean and works like a charm unless the not dropping cargo -kimse
  4. Kimse

    Loop issue.

    wow it actully fixed the problem and works if i may ask what is the diffent? and thanks alot this has been a headache for me the last couple days
  5. Kimse

    Loop issue.

    The script is called via remoteExecCall when a guy get send to jail [player,_bad,_time] remoteExecCall ["life_fnc_JailToDB",RSERV]; i have attached the RPT if you wanna see som hidden errors i didnt find ill try to see into the link you send and thanks for your reply @KillerAussie arma3server_2018-02-22_03-30-48.rpt
  6. Hello fine gents and lads I have now tried to make a script where it save's the prision time to database by every minute but doing the loop it keep coming with a error i just cant fix dunno if its the loop or it just cant be done that way. The loop i tried is #include "\life_server\script_macros.hpp" private["_unit","_bad","_id","_ret","_time","_tid"]; params [ ["_unit",objNull,[objNull]], ["_bad",false,[false]], ["_time",15,[0]] ]; for "_i" from 0 to 1 step 0 do { uiSleep (2 * 30); if (_time < 1) then { _time = _time - 1; _query = format["UPDATE players SET jail_time='%1' WHERE pid='%2'", _time, getPlayerUID _unit]; //playerid _result = [_query,1] call DB_fnc_asyncCall; diag_log format["[Jailtime] JailToDB"]; }; }; since the 1st loop didnt work i tried the other one if (_time > 1) then { shouldInow = true; } else { shouldInow = false; }; while {true} do { waitUntil {shouldInow}; sleep 60; _time = _time - 1; _query = format["UPDATE players SET jail_time='%1' WHERE pid='%2'", _time, getPlayerUID _unit]; //playerid _result = [_query,1] call DB_fnc_asyncCall; diag_log format["[Jailtime] JailToDB"]; }; the error's is overall the same but yet slighty diffent. i can see in the database it is working but as seen below its not doing the proper loop on a min. 1st for "_i" from 0 to 1 step 0 do { uiSleep (2 * 30); _time = _time - 1; _qu> Error position: <uiSleep (2 * 30); _time = _time - 1; _qu> Error Generic error in expression File \life_server\Functions\Jail\fn_JailToDB.sqf [life_fnc_JailToDB], line 70 "[Jailtime] JailToDB" Suspending not allowed in this context Error in expression < ]; 2nd Error in expression <then { for "_i" from 0 to 1 step 0 do { uiSleep (2 * 30); _time = _time - 1; _qu> Error position: <uiSleep (2 * 30); _time = _time - 1; _qu> Error Generic error in expression File \life_server\Functions\Jail\fn_JailToDB.sqf [life_fnc_JailToDB], line 71 "[Jailtime] JailToDB" Suspending not allowed in this context 3rd hope anyone could help me out on this if you need a RPT just say the word. cheers -kimse
×