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

Błąd z getPlayerSlotItem

frost2321232

New Member
Joined
Apr 14, 2011
Messages
6
Reaction score
0
Siemka. Mam błąd z funkcją getPlayerSlotItem. Chodzi o to, że chce jej użyć np.

Code:
if (normal[i] == getPlayerSlotItem(cid, 1)) then
jakis kod
end

Gdzie normal to jest i element tablicy zmiennych liczbowych (zawarte są tam ID itemów), to nawet gdy warunek jest spełniony to i tak nie wykona tego kodu zawartej w IF'ie...

Prosiłbym o szybką odpowiedź, co może być nie tak. Dodam, że żadne errory w konsoli mi nie wyskakują (dotyczące tej funkcji).
 
Lua:
	local item = getPlayerSlotItem(cid, CONST_SLOT_HEAD)
	if (item and item.itemid == normal[i]) then
		-- jakis kod
	end
 
Back
Top