Postado Setembro 23, 2015 9 anos Eae Galera blz? tem como vcs me ajudarem? function onStepIn(cid, item, position, fromPosition) if item.actionid == 19456 and not isPremium(cid) then doTeleportThing(cid, fromPosition, TRUE) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Você não tem acesso Premium Account!") doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return true end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Bem Vindo á Área Premium!") return true end esse é meu script de premium.. só que se algum pokemon passar nele fica dando erro no client. [23/09/2015 03:25:59] [Error - MoveEvents Interface] [23/09/2015 03:25:59] data/movements/scripts/premiumtile.lua:onStepIn [23/09/2015 03:25:59] Description: [23/09/2015 03:25:59] (luaDoPlayerSendTextMessage) Player not found o que eu posso fazer? porque os players com vip passa com o pokemon no tile premium e enche o console de erro. agradeço se alguem me ajudar. vlws!
Postado Setembro 23, 2015 9 anos Solução function onStepIn(cid, item, position, fromPosition) if not isPlayer(cid) then return true end if item.actionid == 19456 and not isPremium(cid) then doTeleportThing(cid, fromPosition, TRUE) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Você não tem acesso Premium Account!") doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return true end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Bem Vindo á Área Premium!") return true end ➥ Regras | Seções OTServ | Seções BOT
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.