• 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!

Script ( if description null )




with me dont work


I use.

Code:
local v1 	= 	8926
local desc = getItemDescriptions(item.uid).special

if getPlayerItemCount(cid, v1) >= 1 then
	local item = getPlayerItemById(cid, true, v1)
	local name = getItemDescriptions(item.uid).name
	if (desc == "" ) then
		doPlayerSendTextMessage(cid,22,"Item found.")
		doRemoveItem(item.uid, 1)
	end
end
 
Lua:
if(desc == nil) then
Btw, == "" should work too :confused:.
Maybe desc variable's function is wrong?
 
with me dont work


I use.

Code:
local v1 	= 	8926
local desc = getItemDescriptions(item.uid).special

if getPlayerItemCount(cid, v1) >= 1 then
	local item = getPlayerItemById(cid, true, v1)
	local name = getItemDescriptions(item.uid).name
	if (desc == "" ) then
		doPlayerSendTextMessage(cid,22,"Item found.")
		doRemoveItem(item.uid, 1)
	end
end

Is that the full script you use? I think its not u,u

But well.. I think the function thing is before "local v1" if not, "desc" shouldn't work. Then, for what are u using "local name = getItemDescriptions(item.uid).name" ? It seems that is doing nothing u,u Also with the "local item = getPlayerItemById(cid, true, v1)".. If you could explain maybe a little bit your script.. Or post it complete
 
Back
Top