P1ng
2012-08-19 23:15:04
I've got a generic termination script but I want it to write a line of what procedure/function it was in when it terminated.
Now, obviously at present this won't work unless I store ProcedureName at the beginning of every proc/func, was just wondering if there might be an easier way to do this?
procedure QuitScript(Active: Boolean);
begin
NextPlayer(Active);
WriteLn('Script stopped @' + ProcedureName);
if AllPlayersInactive then
TerminateScript;
end; Now, obviously at present this won't work unless I store ProcedureName at the beginning of every proc/func, was just wondering if there might be an easier way to do this?