exec("folder/folder/file.cs");
it doesnt care how many lines are in file.cs, it will just execute it.
My loading script. How would i scan multiple line for more content?
$logFile = "config/server/ServerLogs/mrAccountData.cs";
%id = %this.BL_ID;
if(!isFile($logFile))
{
GameSave(%this);
} else {
%FO = new FileObject();
if(%FO.openForRead($logFile))
{
%FO.readline();
while(!%FO.isEOF())
{
%line = %FO.readLine(); %lid = getField(%line,0);
if(%lid $= %id)
{
%found = 1;
%this.ID = %id;
%this.cash = getField(%line,1);
%this.ed = getField(%line,2);
break;
}
}
%FO.close();
}
if(!%found)
{
messageClient(%this,'',"No File");
}
if(isObject(findclientbybl_id(%id)))
{
%this.client = findclientbybl_id(%id);
%this.client.cashobj = %this;
}
%FO.delete();
}
}