A PHP Error was encountered

Severity: 8192

Message: Function create_function() is deprecated

Filename: geshi/geshi.php

Line Number: 4698

Backtrace:

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 693
Function: getPaste

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once

Firing Range AI script. - Stikked
From bejiitas_wrath, 8 Years ago, written in C.
Embed
  1. _xx = [] spawn
  2. {
  3.         private [ "_addMagazine", "_targets", "_selectedTarget", "_poses" ];
  4.         _addMagazine = 5;
  5.         BIS_expoSniper01 setunitpos "down";
  6.         Sleep 5;
  7.         _targets = [BIS_expoTarget01, BIS_expoTarget02, BIS_expoTarget03, BIS_expoTarget04, BIS_expoTarget05];
  8.         _poses = [ "UP", "MIDDLE", "DOWN", "DOWN", "DOWN", "DOWN", "DOWN", "MIDDLE", "MIDDLE", "MIDDLE" ];
  9.  
  10.         while {true} do
  11.         {
  12.                
  13.                 _selectedTarget = _targets select ( floor random ( count _targets ) );
  14.                 BIS_expoSniper01 setunitpos ( _poses select ( floor random ( count _poses ) ) );
  15.                 BIS_expoSniper01 lookat position _selectedTarget;
  16.                 BIS_expoSniper01 doTarget _selectedTarget;
  17.                 Sleep 4 + random 3 ;
  18.        
  19.                 if( (count list BIS_trg_restrictedarea1) == 0 ) then
  20.                 {
  21.                         BIS_expoSniper01 forceWeaponFire [ primaryWeapon BIS_expoSniper01, "SINGLE"];
  22.                 };
  23.                 Sleep 2 + random 4 ;
  24.                 _addMagazine = _addMagazine - 1;
  25.                 if( _addMagazine == 0 ) then
  26.                 {
  27.                         BIS_expoSniper01 addMagazine "5Rnd_127x108_Mag";
  28.                         _addMagazine = 5;
  29.                 };
  30.                
  31.                
  32.                
  33.         };
  34. };