hemrenus321
Advanced OT User
mam taki problem,
Code:
function onModalWindow(cid, modalWindowId, buttonId, choiceId)
if modalWindowId == 1 then
if buttonId == 1 then
local confirm = ModalWindow(2, "test", "lorem ipsum")
confirm:addButton(7, "YES")
confirm:addButton(8, "CANCEL")
confirm:sendToPlayer(cid)
if buttonId == 7 then
//nic sie nie dzieje
end
else if buttonId == 3 then
//tutaj jest dobrze
end
end
end
end