Jump to content

define that 1000 is 1 ? how?


zutto
 Share

Recommended Posts

yeah :E i am trying to set script to think that 1 is 1000 so i can make sleep more dum-friendly.. but i can figure out howto set that up ;E tried dim but didnt work so well..

[example]

$x = 104304

func

while 1

1 = 1000

;dostuff

sleep($x)

wend

endfunc

Link to comment
Share on other sites

yeah :E i am trying to set script to think that 1 is 1000 so i can make sleep more dum-friendly.. but i can figure out howto set that up ;E tried dim but didnt work so well..

[example]

$x = 104304

func

while 1

1 = 1000

;dostuff

sleep($x)

wend

endfunc

Sleep($X / 1000)

Maybe start out with the tutorials?

Link to comment
Share on other sites

yeah :E i am trying to set script to think that 1 is 1000 so i can make sleep more dum-friendly.. but i can figure out howto set that up ;E tried dim but didnt work so well..

[example]

$x = 104304

func

while 1

1 = 1000

;dostuff

sleep($x)

wend

endfunc

While 1
    ;do something
    Sleep(_Second(2))    ;sleep 2 seconds
Wend


Func _Second ($x)
    return ($x * 1000)
EndFuncoÝ÷ ÚÚºÚ"µÍÚ[HBÙÈÛÛY][ÂÔÛ
JHÜÛYHÙXÛÛÙ[[ÈÔÛ
    ÌÍÞ
BÛY
    ÌÍÞ
L
B[[
Edited by Chapi
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...