Advertisement
Guest User

Untitled

a guest
Jan 19th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.66 KB | None | 0 0
  1. span class="re5"> p_executeCode = {
  2.     _codeBox = display displayCtrl 302;
  3.     _returnBox = display displayCtrl 303;
  4.     _targetSelector = display displayCtrl 104;
  5.     _targetName = uiNameSpace getvariable "playerTarget";
  6.  
  7.     _code = ctrlText _codeBox;
  8.     _curMode = ctrlText _targetSelector;
  9.  
  10.     switch (_curMode) do {
  11.  
  12.       case "Local": {
  13.         ["Executed code locally"] spawn p_notification;
  14.         _return = call compile _code;
  15.       };
  16.  
  17.       case "Target": {
  18.  
  19.       };
  20.  
  21.       case "notTarget": {
  22.  
  23.       };
  24.  
  25.       case "Global": {
  26.  
  27.       };
  28.  
  29.       case "Server": {
  30.  
  31.       };
  32.  
  33.     };
  34. _returnBox ctrlSetText _return;
  35. hint format ["%1", _return];
  36. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement