SRL Archive - FAQ

Close SMART when script ends


ds1003

2012-11-09 10:53:29

Hey guys, i have a script which currently ends and leaves SMART client open. I would however like it to automatically close SMART when it ends.

Can someone show me what code i would need to add (and where to add it) to ensure the script closes SMART before terminating itself.

Much appreciated!

The Killer

2012-11-09 11:04:54

TerminateSmart; i think :s

riwu

2012-11-09 20:40:33

SmartKillClient(SmartCurrentClient);

Twh

2012-11-11 11:01:33

From: ds1003
Hey guys, i have a script which currently ends and leaves SMART client open. I would however like it to automatically close SMART when it ends.

Can someone show me what code i would need to add (and where to add it) to ensure the script closes SMART before terminating itself.

Much appreciated!


SmartKillClient(SmartCurrentClient); closes SMART, as to where to put it - if your script only terminates when it reaches End. , then just put it right before that. Otherwise, if you have any TerminateScript;-s, then before the TerminateScript line, or anything else that can end up killing the script.

mike-gee420

2012-11-11 11:15:21

    Until(//BlahBlahBlah);
NextPlayer(True);
end;
SmartKillClients;
end.

I dont know if this is right, but i put it after main repeat loop is done.

riwu

2012-11-11 18:47:30

From: mike-gee420
    Until(//BlahBlahBlah);
NextPlayer(True);
end;
SmartKillClients;
end.

I dont know if this is right, but i put it after main repeat loop is done.

Why isn't NextPlayer with the rest of routine a loop? Or is it a while loop?