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

    script runtime error

    Scheduled Pinned Locked Moved
    Support
    2
    9
    654
    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.
    • SMiLeYS
      SMiLeY
      last edited by

      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
      • NeHoN
        NeHo Administrators
        last edited by

        @SMiLeY add this line to server messages function

        level endon( "game_ended" );
        

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

        SMiLeYS 1 Reply Last reply Reply Quote 1
        • SMiLeYS
          SMiLeY @NeHo
          last edited by

          @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.

          NeHoN 1 Reply Last reply Reply Quote 0
          • NeHoN
            NeHo Administrators @SMiLeY
            last edited by

            @SMiLeY server_messages() function first lines

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

            SMiLeYS 1 Reply Last reply Reply Quote 0
            • SMiLeYS
              SMiLeY @NeHo
              last edited by

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

              It only happens on round based games.

              s1.png

              NeHoN 1 Reply Last reply Reply Quote 0
              • NeHoN
                NeHo Administrators @SMiLeY
                last edited by

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

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

                SMiLeYS 2 Replies Last reply Reply Quote 0
                • SMiLeYS
                  SMiLeY @NeHo
                  last edited by

                  @NeHo The messages are in julia.cfg

                  1 Reply Last reply Reply Quote 0
                  • SMiLeYS
                    SMiLeY @NeHo
                    last edited by SMiLeY

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

                    SMiLeYS 1 Reply Last reply Reply Quote 0
                    • SMiLeYS
                      SMiLeY @SMiLeY
                      last edited by

                      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