Forum

> > CS2D > Scripts > Timer not work, tostring[SOLVED]...
Forums overviewCS2D overview Scripts overviewLog in to reply

English Timer not work, tostring[SOLVED]...

4 replies
To the start Previous 1 Next To the start

old Timer not work, tostring[SOLVED]...

strelok_953
User Off Offline

Quote
Hello all,
Here is script work perfect, but timer not.
egh..is here:
1
2
3
4
5
6
timer(5000,'bc')


function bc(id)
   cd[id]=0
end

has not errors, the cooldown is:
!broadcast <txt>
i said:
!broadcast aa
this is works, i got normal broadcast message
1
msg("©100255100 "..player(id,"name").." ©255000000(Broadcast):©240240240 "..txt:sub(11))
but when i again say it(after 5 seconds) i dont get it, just message
!broadcast aa
so, maybe someone know the problem?
i have array function for use [id]=.
thanks
edited 1×, last 08.06.14 01:43:55 pm

old Re: Timer not work, tostring[SOLVED]...

VADemon
User Off Offline

Quote
1
2
3
4
5
6
7
timer(5000,'bc')


function bc(id)
   cd[id]=0
print("Timer worked")
end
Just to see if the timer resets the cooldown. To help you we need more of the broadcast code (by the way, why don't you just download the broadcasts from file archive? )
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview