Advertisement
CptAntimate

fehler1

Apr 25th, 2020
684
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 3.12 KB | None | 0 0
  1. span class="re5"> Fehler!!!!
  2. 16:58:59 Error in expression <{maxence_waiting_med_calls};
  3. };
  4.  
  5.  
  6. if (((count _var)-1) < _cur) then {
  7. _requestLi>
  8. 16:58:59   Error position: <count _var)-1) < _cur) then {
  9. _requestLi>
  10. 16:58:59   Error count: Typ code, erwartet Array,Zeichenfolge,Config entry
  11. 16:58:59 File Dispatch\client\fn_lbChangedMessage.sqf..., line 48
  12.  
  13.  
  14. Script!!!
  15.  
  16. /*
  17.     author: Maxence Lyon
  18.     altis DEV: https://altisdev.com/user/maxence-lyon
  19.     Teamspeak 3: ts.the-programmer.com
  20.     Web site: www.the-programmer.com
  21.     Steam: « Une Vache Sur CS – Maxence », please leave a message on my profile who says the exact reason before adding me.
  22.  
  23.     Terms of use:
  24.         - This file is forbidden unless you have permission from the author. If you have this file without permission to use it please do not use it and do not share it.
  25.         - If you have permission to use this file, you can use it on your server however it is strictly forbidden to share it.
  26.         - Out of respect for the author please do not delete this information.
  27.  
  28.     License number:
  29.     Server's name:
  30.     Owner's name:
  31. */
  32.  
  33. _var = {[]};
  34. _display = findDisplay 6930;
  35. _requestList = _display displayCtrl 6943;
  36. _message = _display displayCtrl 6947;
  37.  
  38. _cur = lbCurSel _requestList;
  39.  
  40. _curSelection = lbcursel _message;
  41. _str = (_message lbData _curSelection);
  42.  
  43. (_display displayCtrl 6945) ctrlSetText ([_str,"Max_Settings_Dispatch","Dispatch_Localization"] call theprogrammer_core_fnc_localize);
  44.  
  45. if !((_cur isEqualTo -1) && ((_requestList lbData 0) isEqualto "NULL")) then {
  46.    /* _var = switch (playerSide) do {
  47.         case west : {maxence_waiting_cop_calls};
  48.         case independent : {maxence_waiting_med_calls};
  49.         case east : {maxence_waiting_east_calls};
  50.         default {[]};
  51.     };
  52.     */
  53.  
  54.  
  55.     if (player getVariable "CopimDienst") then {
  56.         _var = {maxence_waiting_cop_calls};
  57.     };
  58.     if (player getVariable "MedimDienst") then {
  59.         _var = {maxence_waiting_med_calls};
  60.     };
  61.  
  62.  
  63.     if (((count _var)-1) < _cur) then {
  64.         _requestList lbDelete _cur;
  65.  
  66.         ctrlShow [6953,false];
  67.         ctrlEnable [6954,false];
  68.         ctrlEnable [6955,false];
  69.         ctrlSetText [6932,""];
  70.         ctrlShow [6956,false];
  71.  
  72.         {
  73.             (_display displayCtrl _x) ctrlSetText "";
  74.         } forEach [6948,6949,6950,6951,6952];
  75.  
  76.         if ((lbSize _requestList) isEqualTo 0) then {
  77.             _requestList lbadd (["STR_NO_CALLS","Max_Settings_Dispatch","Dispatch_Localization"] call theprogrammer_core_fnc_localize);
  78.             _requestList lbSetData [0,"NULL"];
  79.         };
  80.  
  81.         _playerData = _var select _cur;
  82.  
  83.         if ((_curSelection isEqualTo 0) && ((_playerData select 6) isEqualTo 0)) then {
  84.             ctrlEnable [6945,true];
  85.         } else {
  86.             ctrlEnable [6945,false];
  87.         };
  88.     } else {
  89.         if (_curSelection isEqualTo 0) then {
  90.             ctrlEnable [6945,true];
  91.         } else {
  92.             ctrlEnable [6945,false];
  93.         };
  94.     };
  95. } else {
  96.     if (_curSelection isEqualTo 0) then {
  97.         ctrlEnable [6945,true];
  98.     } else {
  99.         ctrlEnable [6945,false];
  100.     };
  101. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement