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

Error: <'name'> expected near ... HELP!

Leyenda

New Member
Joined
Jul 13, 2012
Messages
28
Reaction score
1
okay im making a teleport command and get this error,
[17/10/2012 19:13:9] [Error - LuaInterface::loadFile] data/talkactions/scripts/tele.lua:1: '<name>' expected near '533'
[17/10/2012 19:13:9] [Error - Event::checkScript] Cannot load script (data/talkactions/scripts/tele.lua)
[17/10/2012 19:13:9] data/talkactions/scripts/tele.lua:1: '<name>' expected near '533'
here is the tele.lua file
PHP:
local poss = x:533 y:511 z:6 
function onSay(cid, words, param, channel)
    doTeleportThing(cid, poss)
			 doPlayerSendTextMessage(cid, 22, 'You have arrived!')
				doSendMagicEffect(poss, CONST_ME_TELEPORT)
end
 
Try this lol
Lua:
local pos = x:533 y:511 z:6  
function onSay(cid, words, param, channel) 
    doTeleportThing(cid, pos) 
             doPlayerSendTextMessage(cid, 22, 'You have arrived!') 
                doSendMagicEffect(pos, CONST_ME_TELEPORT) 
end
 
or the fact that the position table is defined totally wrong.

- - - Updated - - -

Earn some knowledge:
http://lua-users.org/wiki/TablesTutorial
 
Back
Top Bottom