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

Lua Error

ares413

New Member
Joined
Apr 1, 2010
Messages
130
Reaction score
3
im trying to get this vipcheck script working:


Code:
function onLogin(cid)
if getPlayerVipDays(cid) >= 1 then
doSendAnimatedText(getPlayerPosition(cid), "You have ".. getPlayerVipDays(cid) .." vip days left.", TEXTCOLOR_ORANGE_1)
end
return true
end



getting this error:

Code:
[15:19:31.252] [Error - GlobalEvent::configureEvent] No interval for globalevent with name vipcheck
[15:19:31.253] [Warning - BaseEvents::loadFromXml] Cannot configure an event


anyone know?
 
this is globalevents.xml:
Code:
    <globalevent name="vipcheck" event="script" value="vipCheck.lua"/>


it shouldnt need an interval..
 
Just remove the xml line from globlevent, since thw check is through onlogin
 
Back
Top Bottom