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: type group expected object error  (Read 3371 times)

0 Members and 1 Guest are viewing this topic.

Offline Ironman

  • Former Staff
  • ****
    • {GSF} Home Page
type group expected object error
« on: 03 Jan 2009, 10:39:54 »
code:
Code: [Select]
{_x action ["GETOUT", heli1];unassignVehicle _x} forEach units group squad1;

error:
Code: [Select]
Error in expression <eli1];unassignVehicle _x} forEach units group squad1;
Sleep 25;

_scr = [heli1,[>
  Error position: <group squad1;
Sleep 25;

_scr = [heli1,[>
  Error group: Type Group, expected Object

For some reason I have such a hard time manipulating mandobles scripts even though that code is pretty much exactly what he has.... squad1 is a group name not a single person... that is the only difference but it shouldnt be causing an error.
TS3 IP: tor.zebgames.com:9992

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: type group expected object error
« Reply #1 on: 03 Jan 2009, 11:49:01 »
If the squad is already a group (as in squad1=group this, or sumtin) don't use the group command, just forEach units squad1.
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.