• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

doPlayerSendTextMessage

SasirO

Banned User
Joined
Apr 30, 2009
Messages
559
Reaction score
0
How to make it so a player recieve a message talktype Orange on the middle of the screen, I've already tried numers 1-30 and noone of them worked.

Code:
(cid,?, "")

I've tried this way too:
Code:
doPlayerSendTextMessage(cid,"",TALKTYPE_ORANGE_1)

but im getting debug, is there any other way to make it works?
 
I already checked this... If i use this funcion then everyone will see the text, and i want only the one who steps in to see the text
 
There is optional parameter in doSendAnimatedText.

One thing you need to do is just open LUA_FUNCTIONS file.

PS. doSendAnimatedText(pos, text, color[, player])
 
Hmm, its still not working
heres my simple script:
Code:
function onStepIn(cid, item, pos)

    if item.actionid == 43119 and isPlayer(cid) == TRUE then
		doSendAnimatedText(playerPos, 'Not working lalala', TEXTCOLOR_ORANGE)
        end
		end

Code:
[27/06/2009 14:35:01] attempt to index a nil value
[27/06/2009 14:35:01] stack traceback:
[27/06/2009 14:35:01] 	[C]: in function 'doSendAnimatedText'
 
Code:
doSendAnimatedText(getCreaturePosition(cid), 'Not working lalala', TEXTCOLOR_ORANGE, cid)

And remember it work only in 0.3+
 
Back
Top