Jump to content

setTimer (Again)!!


Lloyd Logan

Recommended Posts

Posted

Hey, this has been annoying me, how do i use

outputChatBox 

with

setTimer 

? its getting hopeless as I can only use setTimer with fIxVeh :(

If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE

SCOTLAND, my hometown, and the Home of GTA!

Posted

What do you mean by using outputChatBox with setTimer? you mean send a chat message after X time? if so, then is easy:

setTimer ( outputChatBox, 5000, 1, "Hello World!" ) 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
--setTimer(outputChatBox, time, how many times to repeat(use 0 for infinite), "And the string you want to output") 
--like this: 
setTimer(outputChatBox, 1000, 1, "String") 
--it outputs String on the chatBox after 1 sec 
  

Currently working as a paid scripter. Contact me for details.

Posted
What do you mean by using outputChatBox with setTimer? you mean send a chat message after X time? if so, then is easy:
setTimer ( outputChatBox, 5000, 1, "Hello World!" ) 

Jeez, :oops: I kept writing,

setTimer (5000, 1,outputChatBox("blah"), hitElement) 

Thank you.

If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE

SCOTLAND, my hometown, and the Home of GTA!

Posted

You're welcome.

With setTimer is always like this:

setTimer ( function, time, repeats, arguments ) 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
You're welcome.

With setTimer is always like this:

setTimer ( function, time, repeats, arguments ) 

Ah, see this always confused me, so if I were to do setElementHealth(<---Random) would it be,

setTimer(setElementHealth, 5000, 1, 100) 

?

Thanks

If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE

SCOTLAND, my hometown, and the Home of GTA!

Posted

Yes, but you would need to put the element before the "100".

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
Yes, but you would need to put the element before the "100".

Ahh I understand now, Thank you!

If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE

SCOTLAND, my hometown, and the Home of GTA!

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
  • Recently Browsing   0 members

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