English Timer2 - easy timer! icon

6 comments
11.09.15 03:03:15 pm
like 4 like it!
479 b, 58 Downloads
EnderCrypt
User
Offline Off
i was bored so.. might aswell upload something?

this lua doesent actually do anything, it just makes timer easier by giving you an extra function

originally you use
Code:
1
2
3
4
timer(1000,"myFunction",id)
function myFunction(id)
     id = tonumber(id)
end


this is messy, only allows 1 variable that ALSO must be a string, nothing else, making usage VERY limited

so instead i created this!

Code:
1
2
3
timer2(1000,{id,data},function(id,data)

end)


you dont need another function, you just send it as argument into timer2, secondly multiple arguments of ANY types can be sent through

i used this hundreds of times, and i hope it will server you all developers well, if you got questions, ask me

ps. dont forget to dofile it
image
ok This file has been reviewed and approved by Yates (03.12.15 10:51:15 pm)

Comments

6 comments
Goto Page
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in
12.10.15 03:02:05 am
Up
Paulo49
User
Offline Off
timer = 0
addhook("second","timer")
function timer(id)
timer = timer +1
end
11.09.15 08:13:21 pm
Up
Fraizeraust
Moderator
Offline Off
That's quite useful, good job though I won't gonna leave a like because I don't have any use of it at the moment.
11.09.15 05:11:05 pm
like I like it!
Up
xsiN
User
Offline Off
Good script, it really helped me develop my newest script (secret :P)

Like and download
11.09.15 04:38:04 pm
like I like it!
Up
PyKemis
User
Offline Off
I think this has been made before. file cs2d Timer Extra function(timerEx) v4.0 (12)

I'm still giving a like because it uses better syntax for creating timers.
11.09.15 04:02:21 pm
like I like it!
Up
Goo
User
Offline Off
Looks useful
11.09.15 03:49:12 pm
like I like it!
Up
RedizGaming
GAME BANNED
Offline Off
Rlly i like this!
To the start Previous 1 Next To the start