Hi,
i get a weird error after testing my script:

Code:
******* script runtime error *******
Illegal localized string reference: ^1TEXT must contain only alpha-numeric characters and underscores: (file 'earlmod/_precache.gsc', line 17)
  iprintln(msg2);
           *
Called thread:
(This is to give out an DEBUG message, iprintln msg + msg2 didnt't worked cause msg2 is an localized string).
Code:
msg(msg, msg2)
{
	if(!isDefined(msg))
		return;
		
	if(!isDefined(level.msgDelay))
		level.msgDelay = false;
		
	while(level.msgDelay) //Do not spam the console
		wait .2;
	
	level.msgDelay = true;
	
	iprintln(msg);
	
	if(isDefined(msg2))
		iprintln(msg2);
	
	wait .1;
	
	level.msgDelay = false;
}
Called from:
(This thread is for precaching strings)
Code:
string(string, rows)
{
	if(!isDefined(string))
	{
		if(level.publicDebug)
			msg("DEBUG: _precache.gsc::string - Could not recieve a string");
		return;
	}
	
	if(!rows)
	{
		precacheString(string);
		
		if(level.publicDebug)
			msg("DEBUG: _precache.gsc::string - Precached string ", string);
		
		return;
	}
	
	for(i = 0; i < string.size; i++)
	{
		precacheString(string[i]);
		
		if(level.publicDebug)
			msg("DEBUG: _precache.gsc::string - Precached string ", string[i]);
	}
}
Any ideas?