Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Trouble With Remove Timer,Help!


DyceDarg
 Share

Recommended Posts

ok,i make a Timer script,but when i put the Remove Timer, i get RTE5

(i use Eclipse Evolution V1 Source)

here my code

on Scripted Spells

If GetPlayerTarget(index) > 0 Then
Call SetTimer("tmrTest4 " & index & ",3", 10000)
Call SetPlayerDEF(GetPlayerTarget(index), GetPlayerDEF(GetPlayerTarget(index)) - 30)
Call SetPlayerMP(index, GetPlayerMP(index) - 10)
Call Sendstats(GetPlayerTarget(index))
Call battlemsg(index, "Script is Fine", 12, side)

Here my Timer

Sub TMRTEST4(index, script)

Call playermsg(index, "Buff endes", 11)
Call SetPlayerDEF(GetPlayerTarget(index), GetPlayerDEF(GetPlayerTarget(index)) + 30)
Call RemoveTimer("tmrtest4 " & index & ",")

End Sub

Whats wrong??
and one more thing,if i remove the "3" on this line
Call SetTimer("tmrTest4 " & index & ",3", 10000)

the script dont call the timer,so i dont understand whats is this,

waiting for help,thanks
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

×
×
  • Create New...