MaRcell Posted February 5, 2017 Share Posted February 5, 2017 http://imgur.com/a/csyE6 LINE 1 ERROr 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
..:D&G:.. Posted February 5, 2017 Share Posted February 5, 2017 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now