SRL Archive - Help and Support

time per player?


phantombmx

2006-04-19 01:40:58

is there any pre-determined function or variable that would do a nextplayer(true) after a certain amount of time?

like if i want it to spend 10 minutes per player, how would i do it?

XxKanexX

2006-04-19 01:49:10


var St: integer;

begin
St:= Getsystemtime;
begin
repeat
~Bla.. Script?
if (GetSystemTime-St >= 1000*10) then
begin
NextPlayer(true);
St:= GetSystemTime;
end;
until(bla);
end.

phantombmx

2006-04-19 02:11:19

thanks kane but i think you got your time thing wrong..
if (GetSystemTime-St >= 1000*10) then

should be
if (GetSystemTime-St >= 60000*10) then
it kept loggin out like 2-3 seconds after it logged in, found out why tho.. THANKS KANE!!! ;)

XxKanexX

2006-04-19 02:23:42

Woops, i made that 10 seconds :p

If you need further help with it, ask me.