How do you make a sleep procedure in your script to log out every (x) ms or (x) loads?
How do you make a sleep procedure in your script to log out every (x) ms or (x) loads?
Timefrommark and MarkTime.
If timefrommark(x) > 30000 then
logout;
Marktime(x);
while timefrommark(x) < 30000 do
wait(100);
Loginplayer;
or
if players[currentplayer].integers[1] = 5 then
logout;
//+ 1 to the integers[1] everytime you get one more load
Get the general gist of my meaning?
[QUOTE]<GoF`> oh no its Raymooond
<Raymooond> Heya
<GoF`> is it ray or some other ray?
<LeeLokHin> No idea
<LeeLokHin> Raymond, what's the game you like the most?
<Raymooond> Runescape
<-- LeeLokHin has kicked Raymooond from #srl (Faker.)[/QUOTE]
Yeah i think so... Ill try it out its pretty late ill try to put it in/test it but ill post what happens tomorrow
Edit: how do you do marktime?
you need to include srl for marktime
MarkTime(AnIntegerHere);
TimeFromMark(AnIntegerHere);
marktime will make it start counting, and TimeFromMark will tell you how long it's been since you started counting.
if you call MarkTime(AnIntegerHere); again, it'll restart the count for that integer.
~RM
I'm a bit thick lol
SCAR Code:If TimeFromMark>=(TimeToRun) then
Says invalid parameters =/
TimeFromMark ( MarkNameHere:integer)
time := TimeFromMark(MyMark);
you forgot to say which mark
~RM
There are currently 1 users browsing this thread. (0 members and 1 guests)