• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved AnimatedText Error

Anteyz

Scripter
Joined
Jun 25, 2010
Messages
89
Reaction score
2
Hi. I have a problem with TFS distro 9.6.

PHP:
[04/04/2013 01:00:40] Lua Script Error: [Action Interface] 
[04/04/2013 01:00:40] data/actions/scripts/minasaker/demon oak/oak1.lua:onUse
[04/04/2013 01:00:40] LuaScriptInterface::luaDoSendAnimatedText(). Deprecated function.
[04/04/2013 01:00:40] stack traceback:
[04/04/2013 01:00:40] 	[C]: in function 'doSendAnimatedText'
[04/04/2013 01:00:40] 	data/actions/scripts/minasaker/demon oak/oak1.lua:27: in function <data/actions/scripts/minasaker/demon oak/oak1.lua:20>

doSendAnimatedText dosen't work!
Lua:
doSendAnimatedText(getPlayerPosition(cid), "hello", TEXTCOLOR_RED)

i've tried this ^ and so much else but the same error appears in my console.
Any idea?
 
The function doSendAnimatedText doesn't exist anymore in client 9.1+
You can use an alternative, but this only works with numbers.
Lua:
doPlayerSendTextMessage(cid, MESSAGE_EXPERIENCE, "Your text in server log", getCreaturePosition(cid), 100, TEXTCOLOR_RED)
The 100 is here the animated text in numbers.
 
You can use:
Lua:
doCreatureSay(cid, "hello", TALKTYPE_ORANGE_1)
But it's not exactly the same, it doesn't go up slowly like the animated text and it's only in orange.
 
Back
Top