@Mark
Hello,
Well im just bit experimenting with modalwindow and its not going well.
Now problem when i execute the command, to make it appear, it executing the both choices, how i know that, ive added print to see. Then when i select one of them, it doesnt execute the prints.
Also i wonder is there a other way to make it, since this just look messy.
Thanks
Hello,
Well im just bit experimenting with modalwindow and its not going well.
Code:
function onSay(cid, words, param)
local modalWindow = ModalWindow(1, "Testing" "Test:")
modalWindow:addChoice(print("Choice1"), "Choice1")
modalWindow:addChoice(print("Choice2"), "Choice2")
modalWindow:addButton(1, "Yes")
modalWindow:addButton(0, "Cancel")
modalWindow:setDefaultEnterButton(1)
modalWindow:setDefaultEscapeButton(0)
modalWindow:setPriority(true)
modalWindow:sendToPlayer(cid)
return false
end
Now problem when i execute the command, to make it appear, it executing the both choices, how i know that, ive added print to see. Then when i select one of them, it doesnt execute the prints.
Also i wonder is there a other way to make it, since this just look messy.
Thanks