Results 1 to 3 of 3

Thread: Script Error

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    ... connecting
    Join Date
    Feb 2013
    Posts
    7
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Script Error

    Hey,

    I have a problem with my Hide & Seek mod on 1.2 & 1.3 everything works perfect but on 1.0 I get this error :

    PHP Code:
    ******* script runtime error *******
    cannot cast undefined to bool: (file 'maps/mp/gametypes/hns2.gsc'line 1620)
     if(!
    level.newround)
        *
    called from:
    (
    file 'maps/mp/gametypes/hns2.gsc'line 705)
     
    count(); 
    This is the Part of the script :

    PHP Code:
    if(!level.newround)
        {
            if (
    self.pers["team"]=="allies"
            {
                
    self.pers["team"]="axis";
                
    self.sessionteam="axis";
                
    self.hud_skills destroy();
                
    self.hud_skill1 destroy();
                
    self.hud_skill2 destroy();
                
    self.hud_skill3 destroy();
                
    self.hud_skillt destroy();
                
    count();

                
    wait 2;
                if(
    doKillcam && level.killcamself maps\mp\gametypes\_killcam::killcam(attackerNum2psOffsetTimetrue);
                if (
    isDefined(self.blackscreen)) self.blackscreen destroy();
                if (
    isDefined(self.hud_kiir)) self.hud_kiir destroy();
                
    self thread moveplayer("axis");
            }
            else 
            {
                
    self.hud_skills destroy();
                
    self.hud_skill1 destroy();
                
    self.hud_skill2 destroy();
                
    self.hud_skill3 destroy();
                
    self.hud_skillt destroy();

                
    wait 1.5;
                if(
    doKillcam && level.killcamself maps\mp\gametypes\_killcam::killcam(attackerNum2psOffsetTimetrue);
                
    self thread respawn();
            }
        } 
    Last edited by AnGeR; 14th December 2013 at 16:56.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •