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

Skull remover crashuje

Jak chcesz usuwać skulla to po prostu daj usuwanie skulla + query (DELETE FROM...).
Jeżeli ma skulla -> to ma fragi, nie ma sensu tego sprawdzać :).

Dlaczego masz crasha? Nie wiem =).
 
Zmien sobie na ten i juz

function onUse(cid, item, fromPosition, itemEx, toPosition)
doCreatureSay(cid, "tekst", TALKTYPE_ORANGE_1)
doPlayerSetRedSkullTicks(cid, 0)
doRemoveItem(item.uid,9019)
doRemoveCondition(cid,CONDITION_INFIGHT)
end
 
up

nie dziala ten Twoj skrypt, nie mam doPlayerSetRedSkullTicks
 
A ten? (nie testowalem)

local config =
{
item = itemid, -- itemid the item you right click on and reset your frags.
level = 1,
count = 0
}

function onUse(cid, item, frompos, item2, topos)
if getPlayerLevel(cid) >= config.level then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your frags has been removed. \n Thanks For Donate!")
doRemoveItem(item.uid)
getPlayerSkullType(cid, 0)
getPlayerSkullType(cid, 0)
else
doPlayerSendCancel(cid, "You dot have enough level")
end
return TRUE
end
 
A ten? :D

PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if(getPlayerRedSkullTicks(cid) == 0) then
        doCreatureSay(cid, "You dont have any frags!", TALKTYPE_ORANGE_1)
    else
        doCreatureSay(cid, "Frags sucesfully removed.", TALKTYPE_ORANGE_1)
        doPlayerSetRedSkullTicks(cid, -getPlayerRedSkullTicks(cid))
        doTransformItem(item.uid, 2320)
    end
end

Rep+ me ;_)
 
Back
Top