sidishere
2007-10-17 01:59:51
hey, i just need some help added a procedure into a script. i got this shutdown procedure from Tails111's (Heavily Edited by Hy) script. which can be found at:
http://www.villavu.com/forum/showthread.php?t=17735
so i take no credit whatsoever for it.
i want to add it into someelse's script so that it will shutdown the pc when the player = false (not working anymore). this is what i got so far:
Line 59: [Error] (15409:22): 'THEN' expected in script
could someone please help? thanks = ]
http://www.villavu.com/forum/showthread.php?t=17735
so i take no credit whatsoever for it.
procedure ShutDownPC;
begin
KeyDown(92);
wait(200);
KeyDown(82);
wait(200);
KeyUp(82);
wait(200);
KeyUp(92);
wait(200);
Sendkeys('shutdown -s -f -t 00'+chr(13));
end;i want to add it into someelse's script so that it will shutdown the pc when the player = false (not working anymore). this is what i got so far:
procedure ShutDownPC;
begin
if Players[0].Active := False; Then
KeyDown(92);
wait(200);
KeyDown(82);
wait(200);
KeyUp(82);
wait(200);
KeyUp(92);
wait(200);
Sendkeys('shutdown -s -f -t 00'+chr(13));
end;but it comes up with this:Line 59: [Error] (15409:22): 'THEN' expected in script
could someone please help? thanks = ]