• 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 Teleport 2 players - small problem.

resho

New Member
Joined
Nov 9, 2008
Messages
70
Reaction score
0
Location
East Europe
Hello, I have problem, i get this error:

70di12.jpg


Script[talkaction]:
Code:
function onSay(cid, words, param, channel)
newpos = { x = 857, y = 1079, z = 7 } 
var1 = Lekr
uidofplayer = getPlayerByNameWildcard(var1)
doTeleportThing(uidofplayer, newpos)
end

What's wrong there?
 
try
Code:
function onSay(cid, words, param, channel)
doTeleportThing(getCreatureByName("Lekr"), {x=857, y=1079, z=7})
end
 
Back
Top