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: Help with a score script  (Read 2863 times)

0 Members and 1 Guest are viewing this topic.

Offline 9thInfSandman

  • Members
  • *
Help with a score script
« on: 23 Jun 2007, 04:39:30 »
Hey, I'm trying to make my own ranking system and I want ArmA to automatically give anyone who is a West Pilot points so they can fly immediately.  I am using ArmA Edit.

This is what I have:

{
   _unit = player;
   if (player isKindOf "SoldierWPilot") then
   {
      if (score _unit < rank1)  exitWith
      {
         player addscore 1000;
         hint "Pilot points awarded";
      };
   };
};


I get no errors when I start the match, it just doesn't work.  Please help.


Sandman

Offline Cheetah

  • Former Staff
  • ****
Re: Help with a score script
« Reply #1 on: 23 Jun 2007, 11:01:02 »
The following might work:
Code: [Select]
   _unit = player;
   if (player isKindOf "SoldierWPilot") then
   {
      if (score _unit < rank1)  exitWith
      {
         player addscore 1000;
         hint "Pilot points awarded";
      };
   };
Like missions? Help with Beta Testing! or take a look at the OFPEC Missions Depot for reviewed missions!

Offline 9thInfSandman

  • Members
  • *
Re: Help with a score script
« Reply #2 on: 24 Jun 2007, 00:18:51 »
Thanks man, it worked like a charm.  :D

Sandman