script runtime error
- 
 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************************************
- 
 @SMiLeY add this line to server messages function level endon( "game_ended" );
- 
 @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. 
- 
 @SMiLeY server_messages() function first lines 
- 
 @NeHo Is this correct? Or above? I tried both but still same script error. It only happens on round based games.  
- 
 @SMiLeY have you added the messages to your server.cfg? 
- 
 @NeHo The messages are in julia.cfg 
- 
 @NeHo Any ideas? As said only happens when game is round based. FreezeTag I am running. 
- 
 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************************************

