• CoD4xAdmin
  • Recent
  • Popular
  • Groups
  • Users
  • Register
  • Login
Cirkus Serveri Forum
  • CoD4xAdmin
  • Recent
  • Popular
  • Groups
  • Users
  • Register
  • Login

script runtime error

Scheduled Pinned Locked Moved
Support
2
9
658
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    SMiLeY
    last edited by 11 Aug 2022, 17:02

    Hi,

    All of a sudden after every map change I am getting this. I have not changed anything. Any ideas?

    Thank you 🙂

    ^1******* script runtime error *******
    pair 'say ' and 'undefined' has unmatching types 'string' and 'undefined': (file 'neho/messages.gsx', line 85)
     exec( "say "+ str );
                 *
    ^1called from:
    (file 'neho/messages.gsx', line 79)
       sayClient(svrmsg[i]);
       *
    ^1started from:
    (file 'neho/messages.gsx', line 78)
       wait level.delay_serv_messages;
       *
    ^1************************************
    
    ^1******* script runtime error *******
    cannot cast undefined to string: (file 'neho/messages.gsx', line 85)
     exec( "say "+ str );
                 *
    ^1called from:
    (file 'neho/messages.gsx', line 79)
       sayClient(svrmsg[i]);
       *
    ^1started from:
    (file 'neho/messages.gsx', line 78)
       wait level.delay_serv_messages;
       *
    ^1************************************
    
    1 Reply Last reply Reply Quote 0
    • N
      NeHo Administrators
      last edited by 12 Aug 2022, 12:22

      @SMiLeY add this line to server messages function

      level endon( "game_ended" );
      

      I keep hitting the 'Escape' key - but I'm still here. ...

      S 1 Reply Last reply 13 Aug 2022, 06:23 Reply Quote 1
      • S
        SMiLeY @NeHo
        last edited by 13 Aug 2022, 06:23

        @NeHo Forgive the noobness but this goes at the top of the script here:

        init()
        {
        	level.delay_serv_messages = getDvarInt("server_messages_delay");
        	level thread server_messages();
        }
        

        or at the bottom (last thing)

        }
        
        sayClient(str) {
        	exec( "say "+ str );
        	
        }
        

        What I did also notice is that the 'error' only comes on FreezeTag gametype. Not present on other gametypes. Nothing really to be concerned about but wondered why it suddenly came up.

        N 1 Reply Last reply 13 Aug 2022, 07:26 Reply Quote 0
        • N
          NeHo Administrators @SMiLeY
          last edited by 13 Aug 2022, 07:26

          @SMiLeY server_messages() function first lines

          I keep hitting the 'Escape' key - but I'm still here. ...

          S 1 Reply Last reply 23 Aug 2022, 15:36 Reply Quote 0
          • S
            SMiLeY @NeHo
            last edited by 23 Aug 2022, 15:36

            @NeHo Is this correct? Or above? I tried both but still same script error.

            It only happens on round based games.

            s1.png

            N 1 Reply Last reply 23 Aug 2022, 21:46 Reply Quote 0
            • N
              NeHo Administrators @SMiLeY
              last edited by 23 Aug 2022, 21:46

              @SMiLeY have you added the messages to your server.cfg?

              I keep hitting the 'Escape' key - but I'm still here. ...

              S 2 Replies Last reply 24 Aug 2022, 15:12 Reply Quote 0
              • S
                SMiLeY @NeHo
                last edited by 24 Aug 2022, 15:12

                @NeHo The messages are in julia.cfg

                1 Reply Last reply Reply Quote 0
                • S
                  SMiLeY @NeHo
                  last edited by SMiLeY 9 Feb 2022, 21:44 2 Sept 2022, 19:44

                  @NeHo Any ideas? As said only happens when game is round based. FreezeTag I am running.

                  S 1 Reply Last reply 22 Sept 2022, 14:11 Reply Quote 0
                  • S
                    SMiLeY @SMiLeY
                    last edited by 22 Sept 2022, 14:11

                    Does it on Free For All too so I was wrong that it was round based.

                    ^1******* script runtime error *******
                    pair 'say ' and 'undefined' has unmatching types 'string' and 'undefined': (file 'neho/functions.gsx', line 66)
                     exec( "say "+ str );
                                 *
                    ^1called from:
                    (file 'neho/messages.gsx', line 81)
                       sayClient(svrmsg[i]);
                       *
                    ^1started from:
                    (file 'neho/messages.gsx', line 80)
                       wait level.delay_serv_messages;
                       *
                    ^1************************************
                    
                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post

                    0

                    Online

                    191

                    Users

                    268

                    Topics

                    1.2k

                    Posts
                    Powered & Designed by NeHo