aqubjukr
Well-Known Member
Does anyone know how to tell me the correct way to get the text value typed by the player inside the showTextDialog? I know that the function is structured in the following way: showTextDialog(id, text, canWrite, length), but I couldn't do it at all.
Lua:
local function processValue(cid)
local player = Player(cid)
local text = "Insert a value:\n"
if player:showTextDialog(3505, text, true, 35) then
addEvent(function() player:sendTextMessage(MESSAGE_EVENT_ADVANCE, text) end, 3000)
end
end