I am trying to make a way to seperate lines in centerPrint through events. Here's what I have:
package NewLine
{
Function GameConnection::centerPrint(%client,%msg,%time)
{
if(striCmp(%msg,"<nl>"))
{
%msg = strReplace(%msg,"<nl>","\t");
if(getFieldCount(%msg) < 4)
{
for(%i=0;%i<getFieldCount(%msg);%i++)
{
%field = getField(%msg,%i);
%msg = %msg NL %field;
}
}
}
Parent::CenterPrint(%client,%msg,%time);
}
};
activatePackage(NewLine);
But that crashes me when I call the function. Any help?
Ha, mind blank, I can just use "\n"