What's new

Lua Script Error: [MoveEvents Interface]

Status
Not open for further replies.

Buli14

Active User
Joined
May 16, 2009
Messages
104
Reaction score
0
Witam. Jak uruchamiam otsa to na liscie informacji o otsie mam taki b??d:

Lua Script Error: [MoveEvents Interface]
data/movements/scripts/paccmost.lua:eek:nStepIn

luaDoPlayerSendTextMessage(). Player not found

a w tym paccmost mam ustawione tak:
function onStepIn(cid, item, pos)

local look = getPlayerLookDir(cid)

if isPremium(cid) ~= 1 then
if look == 0 or look == 1 then
doMoveCreature(cid, look+2)
elseif look == 2 or look == 3 then
doMoveCreature(cid, look-2)
end
doPlayerSendTextMessage(cid,21, "Only Premium members!")
else
return 0
end
end


Za pomoc oczywiscie daje +

/Je?eli z?y dzia? to bardzo przepraszam moderator?w forum.
 

dominikms1

Senior User
Joined
Feb 6, 2010
Messages
696
Reaction score
66
Odp: Lua Script Error: [MoveEvents Interface]

function onStepIn(cid, item, pos)

Tu? za tym dodaj tak? linijk?
PHP:
if isPlayer(cid) == false then
return true
end

Chyba ze chcesz aby potwory nie mog?y przechodzi? przez to, to zmien true na false
 

Buli14

Active User
Joined
May 16, 2009
Messages
104
Reaction score
0
Odp: Lua Script Error: [MoveEvents Interface]

ale potwory mog? chodzi?. i jak ma to all wygl?da? ?
 

dominikms1

Senior User
Joined
Feb 6, 2010
Messages
696
Reaction score
66
Odp: Lua Script Error: [MoveEvents Interface]

PHP:
function onStepIn(cid, item, pos)
if isPlayer(cid) == false then
return true
end
look = getPlayerLookDir(cid)
if isPremium(cid) ~= 1 then
if look == 0 or look == 1 then
doMoveCreature(cid, look+2)
elseif look == 2 or look == 3
then
doMoveCreature(cid, look-2)
end
doPlayerSendTextMessage(cid,21,
"Only Premium members!")
else
return 0
end
end

Tak Podmien ten skrypt, bedzie dzialac, nie bedzie b??du:)
 

Buli14

Active User
Joined
May 16, 2009
Messages
104
Reaction score
0
Odp: Lua Script Error: [MoveEvents Interface]

dalej jest ten b??d;/
 
Status
Not open for further replies.
Top