Forum

> > CS2D > Scripts > Timer not work, tostring[SOLVED]...
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

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

4 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

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

strelok_953
User Off Offline

Zitieren
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
1× editiert, zuletzt 08.06.14 13:43:55

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

VADemon
User Off Offline

Zitieren
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? )
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht