• 01-04.05.2026 - DOUBLE EXP / SKILL EVENT!

Skrypty & Kody Czemu nie usuwa itemsa?

Status
Zamknięty.

Pingwino

Active User
Zarejestrowany
Dołączył
Luty 9, 2012
Posty
94
Liczba reakcji
1
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2312 then
if (getPlayerStorageValue(cid,21446) < 1) then
local playerpos = getCreaturePosition(cid)
doRemoveItem(item.uid,2312)
setPlayerStorageValue(cid,21446,1)

doCreatureSay(cid, "Gratulacje! Zyskujesz dostep do premium island !", TALKTYPE_ORANGE_1)
else
doCreatureSay(cid, "Posiadasz juz dostep do premium island.", TALKTYPE_ORANGE_1)
end
end
end

Gdy uzywam to daje mi dostep ale nie usuwa runki ;/ jak mialem items o id 5706 to usuwa?o ;x a ja chce o id 2312
 
Odp: Czemu nie usuwa itemsa?

Spr?buj tak:

Kod:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2312 then
if (getPlayerStorageValue(cid,21446) < 1) then
local playerpos = getCreaturePosition(cid)
doRemoveItem(item.uid,2312,1)
setPlayerStorageValue(cid,21446,1)

doCreatureSay(cid, "Gratulacje! Zyskujesz dostep do premium island !", TALKTYPE_ORANGE_1)
else
doCreatureSay(cid, "Posiadasz juz dostep do premium island.", TALKTYPE_ORANGE_1)
end
end
end

albo

Kod:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2312 then
if (getPlayerStorageValue(cid,21446) < 1) then
local playerpos = getCreaturePosition(cid)
doRemoveItem(item.itemid,2312)
setPlayerStorageValue(cid,21446,1)

doCreatureSay(cid, "Gratulacje! Zyskujesz dostep do premium island !", TALKTYPE_ORANGE_1)
else
doCreatureSay(cid, "Posiadasz juz dostep do premium island.", TALKTYPE_ORANGE_1)
end
end
end
 
Status
Zamknięty.
Back
Do góry