Cirkus Serveri Forum

    • Register
    • Login
    • Search
    • CoD4xAdmin
    • Recent
    • Popular
    • Groups
    • Users

    script runtime error

    Support
    2
    9
    85
    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.
    • SMiLeY
      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
      • NeHo
        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. ...

        SMiLeY 1 Reply Last reply Reply Quote 1
        • SMiLeY
          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.

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

            @SMiLeY server_messages() function first lines

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

            SMiLeY 1 Reply Last reply Reply Quote 0
            • SMiLeY
              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

              NeHo 1 Reply Last reply Reply Quote 0
              • NeHo
                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. ...

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

                  @NeHo The messages are in julia.cfg

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

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

                    SMiLeY 1 Reply Last reply Reply Quote 0
                    • SMiLeY
                      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
                      1199
                      257
                      168
                      Visitors Today
                      Giglu NeHo
                      Powered & Designed by NeHo