is there a way to do something like this? and if yes, how you do it in codes?
need help to code time
example :
repeat
killmonster
until ( 50000 elapsed) <- 5 mins
drinkpotion;
is there a way to do something like this? and if yes, how you do it in codes?
need help to code time
example :
repeat
killmonster
until ( 50000 elapsed) <- 5 mins
drinkpotion;
you can
Simba Code:MarkTimer(Timer);
repeat
killmonster
until TimeFromMark(Timer) <= (5 * 60000);
"Logic never changes, just the syntax" - Kyle Undefined?
Remember, The Edit Button Is There For A Reason!!!
Simba Code:program new;
var
TS: integer;
begin
TS := GetSystemTime;
repeat
Writeln(ToStr(GetSystemTime-TS));
until (TS+5000)<GetSystemTime;
end.
kk, ill try those. thanks
Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
Originally Posted by #srl
"A programmer is just a tool which converts caffeine into code"
There are currently 1 users browsing this thread. (0 members and 1 guests)