TheGodOfLegends
New Member
- Joined
- Aug 30, 2012
- Messages
- 13
- Reaction score
- 1
Hello!
i've seen this weird bug oftenly, everytime i try to use a Modalog Script
It Suddently appears
and suddently dissapears (the console error, )
and i have no idea why
Here's the script
Can anyone give a hint?
alDi
i've seen this weird bug oftenly, everytime i try to use a Modalog Script
It Suddently appears
and suddently dissapears (the console error, )
and i have no idea why
Here's the script
jobdialogtt = {
title = "Choose Your Title.",
message = " ",
buttons = {
{ id = 1, value = "Ok" },
{ id = 2, value = "Info" },
},
buttonEnter = 1,
buttonEnter = 2,
choices = {
{ id = 1, value = "Bloodseeker" },
{ id = 2, value = "Oslaught" },
{ id = 19, value = "Warlord" },
{ id = 18, value = "High Warlord" },
{ id = 19, value = "Overlord" },
{ id = 20, value = "High Overlord" },
},
popup = true
}
jobdialogt = {
title = "",
message = " ",
buttons = {
{ id = 1, value = "Ok" },
{ id = 2, value = "Cancel" },
},
buttonEnter = 1,
buttonCancel = 2,
choices = {
{ id = 1, value = "My Titles" },
{ id = 2, value = "Choose Title" },
},
popup = true
}
function callbacktt(cid, button, choice)
if (button == 1) then
if (choice == 1) then
if getPlayerStorageValue(cid,1900) > 0 then
doPlayerSendTextMessage(cid,4,"Bloodseeker Title enabled, please relog.")
setPlayerStorageValue(cid,2000, 1)
else
doPlayerSendTextMessage(cid,4,"You don't have this Title.")
end
end
end
end
function callbackjobt(cid, button, choice)
local t1s = getPlayerStorageValue(cid,1992)
local t1 = {
[-1] = "",
[1] = "Oslaught",
}
local t2s = getPlayerStorageValue(cid,1991)
local t2 = {
[-1] = "",
[1] = "Bloodseeker",
}
local myt = " <-- My Titles --> \n \n " .. t1[t1s] .. " " .. t2[t2s] .. ""
if (button == 1) then
if (choice == 1) then
doShowTextDialog(cid, 1446, myt)
end
if (choice == 2 ) then
addDialog(jobdialogtt,1500, cid,callbacktt);
end
end
end
function onSay(cid, words, param)
addDialog(jobdialogt, 1025, cid, callbackjobt);
return true
end
title = "Choose Your Title.",
message = " ",
buttons = {
{ id = 1, value = "Ok" },
{ id = 2, value = "Info" },
},
buttonEnter = 1,
buttonEnter = 2,
choices = {
{ id = 1, value = "Bloodseeker" },
{ id = 2, value = "Oslaught" },
{ id = 19, value = "Warlord" },
{ id = 18, value = "High Warlord" },
{ id = 19, value = "Overlord" },
{ id = 20, value = "High Overlord" },
},
popup = true
}
jobdialogt = {
title = "",
message = " ",
buttons = {
{ id = 1, value = "Ok" },
{ id = 2, value = "Cancel" },
},
buttonEnter = 1,
buttonCancel = 2,
choices = {
{ id = 1, value = "My Titles" },
{ id = 2, value = "Choose Title" },
},
popup = true
}
function callbacktt(cid, button, choice)
if (button == 1) then
if (choice == 1) then
if getPlayerStorageValue(cid,1900) > 0 then
doPlayerSendTextMessage(cid,4,"Bloodseeker Title enabled, please relog.")
setPlayerStorageValue(cid,2000, 1)
else
doPlayerSendTextMessage(cid,4,"You don't have this Title.")
end
end
end
end
function callbackjobt(cid, button, choice)
local t1s = getPlayerStorageValue(cid,1992)
local t1 = {
[-1] = "",
[1] = "Oslaught",
}
local t2s = getPlayerStorageValue(cid,1991)
local t2 = {
[-1] = "",
[1] = "Bloodseeker",
}
local myt = " <-- My Titles --> \n \n " .. t1[t1s] .. " " .. t2[t2s] .. ""
if (button == 1) then
if (choice == 1) then
doShowTextDialog(cid, 1446, myt)
end
if (choice == 2 ) then
addDialog(jobdialogtt,1500, cid,callbacktt);
end
end
end
function onSay(cid, words, param)
addDialog(jobdialogt, 1025, cid, callbackjobt);
return true
end
Can anyone give a hint?
Last edited: