- Dołączył
- Styczeń 15, 2011
- Posty
- 45
- Liczba reakcji
- 1
Witam. Posiadam pewien skrypt na VIP'a i po dodaniu go w "Actions" wywala mi b??d w konsoli. Pomo?ecie to naprawi??
A oto i b??d:
M?j silnik to VisumXTRA 8.70
Kod:
local days = 30
local levelToBeVIP = 1
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerLevel(cid) >= levelToBeVIP then
if isPlayerVip(cid) == FALSE then
doCreatureSay(cid, "CONGRATULATIONS! You are now a VIP for "..days.." days! You can now enter the VIP-area and use unique features!. ", TALKTYPE_ORANGE_1)
end
doSendAnimatedText(getPlayerPosition(cid), "Welcome!", TEXTCOLOR_RED)
doPlayerAddVipDays(cid, days)
doRemoveItem(item.uid, 1)
doSendAnimatedText(getCreaturePosition(cid), "+"..days.." days", 30)
else
doPlayerSendCancel(cid, "You need level "..levelToBeVIP.." to be a VIP player.")
end
return TRUE
A oto i b??d:
Kod:
Warning: [Event::checkScript] Can not load script. /scripts/vip.lua
data/actions/scripts/vip.lua:17: 'end' expected (to close 'function' at line 5) near '<eof>'
