Jump to content

ERROR


MaRcell

Recommended Posts

http://imgur.com/a/csyE6

 

LINE 1 ERROr

  1. addEvent("liderShout", true)
    function liderShout(textox)
     if isTimer(TimerF) then
      killTimer(TimerF)
     end
     if texto then
      texto:destroy()
     end
     texto = Text.new(textox, screenWidth / 2, screenHeight - dxGetFontHeight(3, "bankgothic") / 2 - screenHeight / 2 + 225, false, "bankgothic", 3, "left")
     texto:color(106, 90, 205, 255)
     texto:scale(2)
     texto:type("border", 2, 0, 0, 0, 255)
     TimerF = setTimer(function()
      texto:destroy()
     end,5000,1)
    end
    addEventHandler("liderShout", root, liderShout)

     

Link to comment

Try this, dunno if it will make a difference but it's worth a try...

    function liderShout(textox)
     if isTimer(TimerF) then
      killTimer(TimerF)
     end
     if texto then
      texto:destroy()
     end
     texto = Text.new(textox, screenWidth / 2, screenHeight - dxGetFontHeight(3, "bankgothic") / 2 - screenHeight / 2 + 225, false, "bankgothic", 3, "left")
     texto:color(106, 90, 205, 255)
     texto:scale(2)
     texto:type("border", 2, 0, 0, 0, 255)
     TimerF = setTimer(function()
      texto:destroy()
     end,5000,1)
    end
    addEventHandler("liderShout", root, liderShout)
	addEvent("liderShout", true)

 

Link to comment

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...