warriorfrog
Active Member
- Joined
- Jul 29, 2015
- Messages
- 334
- Reaction score
- 35
Someone can help me to fix my /zones? To check wich guilds own citys
I found this script but is incompatible to my sources 0.4 (3884)
Error img:
https://i.imgur.com/Gt6X6tX.png
code:
I found this script but is incompatible to my sources 0.4 (3884)
Error img:
https://i.imgur.com/Gt6X6tX.png
code:
Code:
function onSay(cid)
local str =""
for name, count in pairs(cityMonsters)do
local guildName = getGuildName(getGlobalStorageValue(count + DEFAULT_STORAGE))
if guildName then
if str ==""then
str ="Cidade "..name:explode(" ")[2].." dominada por "..guildName.."."
else
str = str.."\nCidade "..name:explode(" ")[2].." dominada por "..guildName.."."
end
end
end
doPlayerPopupFYI(cid, str ==""and"Nenhuma cidade conquistada."or str)
return true
end