Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Question with mp array  (Read 2285 times)

0 Members and 1 Guest are viewing this topic.

sgt.scorpion

  • Guest
Question with mp array
« on: 23 Nov 2002, 10:06:12 »
I need to create an array of just the human players in my coop mission. This script doesn't seem to work, anyway to save each players variable to global array?

_a = 0
_grp = group player
_units = units _grp
_count= count _units
mparray = []

#loop
_man = _units select _a
?(_man == player):mparray = mparray +[_man]
~.5
_a = _a + 1
?(_a < _count):goto "loop"
exit

Thanks for your help
Sgt. Scorpion