Nightimarez
New Member
- Joined
- Jul 24, 2008
- Messages
- 287
- Reaction score
- 2
PHP:
local pos = {x=1492, y=1170, z=5}
function onUse(cid, item, frompos, item2, topos)
if getCreatureCondition(cid, CONDITION_INFIGHT) > 0 then
doPlayerSendTextMessage(cid,22,"Teleporting.")
doTeleportThing(cid,pos)
else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You are in battle.")
end
end
I get this error.
PHP:
[C]: in function '__lt'