• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

doPlayerSendCancel(cid, hide, storage) will it work?

Printer

if Printer then print("LUA") end
Senator
Premium User
Joined
Dec 27, 2009
Messages
5,780
Solutions
31
Reaction score
2,299
Location
Sweden?
Hello everyone i got a script which updates every sec, but i need help. Everytime it updates every sec it will come doPlayerSendCancel msg, cant i hide the info come as cancel?

doPlayerSendCancel(cid, hide, storage) will it work?

Rep!
 
try
doPlayerSendCancel(cid,8,'Sorry not possible.')
doPlayerSendCancel(cid,10,'Sorry not possible.')
doPlayerSendCancel(cid,12,'Sorry not possible.')

xD
 
Here you go

Code:
function doUpdatePokemonsBar(cid)
	local ret = "p#,"
	local balls = getPlayerPokeballs(cid)
	local times = 0
	for a = 1, #balls do
		times = times + 1
		local item = balls[a]
		local hp = math.ceil(getItemAttribute(item.uid, "hp") * 100)
		local name = getItemAttribute(item.uid, "poke")
		local foto = fotos[name] - 928
		doItemSetAttribute(item.uid, "ballorder", times)
		ret = ret..""..foto..","..name..""..times..","..hp..","
	end
doPlayerSendCancel(cid, ret)
end
 
Try this:
LUA:
function doUpdatePokemonsBar(cid)
	local ret = "p#,"
	local balls = getPlayerPokeballs(cid)
	local times = 0
	for a = 1, #balls do
		times = times + 1
		local item = balls[a]
		local hp = math.ceil(getItemAttribute(item.uid, "hp") * 100)
		local name = getItemAttribute(item.uid, "poke")
		local foto = fotos[name] - 928
		doItemSetAttribute(item.uid, "ballorder", times)
	end
return true
end
 
Back
Top