kuba1418
Banned
- Dołączył
- Kwiecień 12, 2008
- Posty
- 178
- Liczba reakcji
- 17
Odp: Skrypty na zam?wienie.
Odp: Skrypty na zam?wienie.
Odp: Skrypty na zam?wienie.
Wyskakuje mi co? takiego :/function onUse(cid, item, frompos, item2, topos)
local voc1 = 4
local voc2 = 8
local level = getPlayerLevel(cid)
local maglv = getPlayerMagLevel(cid)
local ile = (level*10)+(maglv*10)
local zuzytyPot = 210 -- ID zuzytego potiona. Zmien!
if (getPlayerVocation(cid) == voc1) or (getPlayerVocation(cid) == voc2) then
doPlayerAddHealth(cid,ile)
doTransformItem(item.uid,zuzytyPot)
doPlayerSay(cid,"Ahhh...",TALKTYPE_ORANGE_1)
else
doPlayerSendCancel(cid,"You are not a knight or an elite knight.")
end
end
[02/01/2009 17:03:52] Lua Script Error: [Action Interface]
[02/01/2009 17:03:52] data/actions/scripts/other/uhp.luanUse
[02/01/2009 17:03:52] data/actions/scripts/other/uhp.lua:9: attempt to call global 'doPlayerAddHealth' (a nil value)
[02/01/2009 17:03:52] stack traceback:
[02/01/2009 17:03:52] data/actions/scripts/other/uhp.lua:9: in function <data/actions/scripts/other/uhp.lua:1>
Ostatnia edycja: