klapaucius94
Active User
- Joined
- Oct 31, 2010
- Messages
- 74
- Reaction score
- 0
Mam tfs 0.3.6 i taki oto skrypt na skull remove:
I co prawda skrypt dzia?a, jednak w silniku wyskakuje taki b??d:
Czemu? Jak sobie z tym poradzi??
Code:
function onUse(cid, item, frompos, item2, topos)
local zabieraLadunki = "tak" -- Czy zabiera ladunki runy
local usuwaRedSkulla = "tak" -- Czy usuwa red skulla
if((getPlayerSkullType(cid) ~= SKULL_RED or usuwaRedSkulla == "tak") or getPlayerSkullType(cid) ~= SKULL_GREEN) then
doCreatureSetSkullType(cid, SKULL_NONE)
doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE,"You don't have any skull now.")
doSendMagicEffect(getPlayerPosition(cid),CONST_ME_MAGIC_RED)
doRemoveItem(item.uid, 1)
else
doPlayerSendCancel(cid,"You can't remove red or green skull.")
end
if(zabieraLadunki == "tak") then
if(item.type > 1) then
doChangeTypeItem(item.uid, item.type-1)
else
doRemoveItem(item.uid,1)
end
end
end
Czemu? Jak sobie z tym poradzi??