Announcement

Collapse
No announcement yet.

FrikQCC Compiling Error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • FrikQCC Compiling Error

    I've been having trouble compiling my Game with FrikQCC...
    here is my error log
    Code:
    ../progs.dat - 1 error(s), 0 warning(s)
    Error Q505 Ents/weps/damage.qc(103): Unknown value "void"
    and here is the line of code,
    Code:
    [COLOR="Red"][B][I][U]void[/U][/I][/B][/COLOR]() WaterMove =
    {
        if (self.movetype == MOVETYPE_NOCLIP)
            return;
    
        if (self.health < 0)
            return;
    
        if (self.waterlevel != 3)
        {
            self.air_finished = time + 12;
            self.dmg = 2;
        }
        else if (self.air_finished < time && self.pain_finished < time)
        {   // drown!
            self.dmg = self.dmg + 2;
    
            if (self.dmg > 15)
                self.dmg = 10;
    
            T_Damage (self, world, world, self.dmg);
            self.pain_finished = time + 1;
        }
    
        if (self.watertype == CONTENT_LAVA && self.dmgtime < time)
        {   // do damage
            self.dmgtime = time + 0.2;
            T_Damage (self, world, world, 6*self.waterlevel);
        }
        else if (self.watertype == CONTENT_SLIME && self.dmgtime < time)
        {   // do damage
            self.dmgtime = time + 1;
            T_Damage (self, world, world, 4*self.waterlevel);
        }
    };
    It makes no sense to me, as void is used alot I think...
    any help is appreciated, thanks in advanced!

  • #2
    I'm guessing the previous function doesn't end with };

    Comment


    • #3
      what Zop said. Did you change a value of this?

      Code:
      .float dmgtime;
      
      void () WaterMove =
      {
      dmgtime is defined there in the original Quake. doing something like .float dmgtime = 2 without the ; would create this error
      www.quakeone.com/qrack | www.quakeone.com/cax| http://en.twitch.tv/sputnikutah

      Comment


      • #4
        Add a space between void IE : void ()

        Comment

        Working...
        X