local position = { x = 1000, y = 1000, z = 7 }
function onStepIn(cid, item, frompos, itemEx, topos)
if getPlayerAccess(cid) >= 2 -- or idk the access of the tutor :D
doTeleportThing(cid, position)
doPlayerSendTextMessage(cid,21,"You are in.")
else
doTeleportThing(cid, fromPosition, TRUE)
doPlayerSendTextMessage(cid,21,"You can't enter unless u are a staff member.")
end
return true
end
local position = { x = 1014, y = 1028, z = 7 }
function onStepIn(cid, item, frompos, itemEx, topos)
if getPlayerAccess(cid) >= 2 -- or idk the access of the tutor
doTeleportThing(cid, position)
doPlayerSendTextMessage(cid,21,"You are in.")
else
doTeleportThing(cid, fromPosition, TRUE)
doPlayerSendTextMessage(cid,21,"You can't enter unless u are a staff member.")
end
return true
end
<action actionid="8585" event="script" value="staff.lua"/>
Is That Right
Data/actions/sripts/staff
Data/Actions/actions.xml
- - - Updated - - -
[29/07/2012 19:39:21] [Error - LuaScriptInterface::loadFile] data/actions/scripts/Staff Door.lua:5: 'then' expected near 'doTeleportThing'
[29/07/2012 19:39:21] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/Staff Door.lua)
[29/07/2012 19:39:21] data/actions/scripts/Staff Door.lua:5: 'then' expected near 'doTeleportThing'
[29/07/2012 19:39:21] Reloaded actions.
[30/07/2012 11:38:42] [Error - LuaScriptInterface::loadFile] data/movements/scripts/Staff.lua:5: 'then' expected near 'doTeleportThing'
[30/07/2012 11:38:42] [Warning - Event::loadScript] Cannot load script (data/movements/scripts/Staff.lua)
[30/07/2012 11:38:42] data/movements/scripts/Staff.lua:5: 'then' expected near 'doTeleportThing'
local position = { x = 1032, y = 1028, z = 7 }
function onStepIn(cid, item, frompos, itemEx, topos)
if getPlayerAccess(cid) >= 2
doTeleportPlayer(cid, position)
doPlayerSendTextMessage(cid,21,"You are in.")
else
doTeleportPlayer(cid, fromPosition, TRUE)
doPlayerSendTextMessage(cid,21,"You can't enter unless u are a staff member.")
end
return true
end
<movevent type="StepIn" uniqueid="6000" event="script" value="Staff.lua"/>
[30/07/2012 11:38:42] [Error - LuaScriptInterface::loadFile] data/movements/scripts/Staff.lua:5: 'then' expected near 'doTeleportThing'
[30/07/2012 11:38:42] [Warning - Event::loadScript] Cannot load script (data/movements/scripts/Staff.lua)
[30/07/2012 11:38:42] data/movements/scripts/Staff.lua:5: 'then' expected near 'doTeleportThing'
local position = { x = 1032, y = 1028, z = 7 }
function onStepIn(cid, item, frompos, itemEx, topos)
if getPlayerAccess(cid) >= 2
doTeleportPlayer(cid, position)
doPlayerSendTextMessage(cid,21,"You are in.")
else
doTeleportPlayer(cid, fromPosition, TRUE)
doPlayerSendTextMessage(cid,21,"You can't enter unless u are a staff member.")
end
return true
end
<movevent type="StepIn" uniqueid="6000" event="script" value="Staff.lua"/>
man
- - - Updated - - -
man
idk whats the probem pls help
Then add a god damn "then" on line 5 after "doTeleportThing", you can read right?
and again thatlocal position = { x = 1032, y = 1028, z = 7 }
function onStepIn(cid, item, frompos, itemEx, topos)
if getPlayerAccess(cid) >= 2
Then add a god damn "then" on line 5 after "doTeleportThing",(cid, position)
doPlayerSendTextMessage(cid,21,"You are in.")
else
doTeleportPlayer(cid, fromPosition, TRUE)
doPlayerSendTextMessage(cid,21,"You can't enter unless u are a staff member.")
end
return true
end
[30/07/2012 12:06:11] [Error - GlobalEvent Interface]
[30/07/2012 12:06:11] data/globalevents/scripts/zombie/onthink.luanThink
[30/07/2012 12:06:11] Description:
[30/07/2012 12:06:11] data/lib/zombie_event.lua:105: bad argument #2 to 'random' (interval is empty)
[30/07/2012 12:06:11] stack traceback:
[30/07/2012 12:06:11] [C]: in function 'random'
[30/07/2012 12:06:12] data/lib/zombie_event.lua:105: in function 'spawnNewZombie'
[30/07/2012 12:06:12] data/globalevents/scripts/zombie/onthink.lua:6: in function <data/globalevents/scripts/zombie/onthink.lua:1>
[30/07/2012 12:06:12] [Error - GlobalEvents::think] Couldn't execute event: ZombieGlobalThink
[30/07/2012 12:06:16] [Error - LuaScriptInterface::loadFile] data/movements/scripts/Staff.lua:5: 'then' expected near 'Then'
[30/07/2012 12:06:16] [Warning - Event::loadScript] Cannot load script (data/movements/scripts/Staff.lua)
[30/07/2012 12:06:16] data/movements/scripts/Staff.lua:5: 'then' expected near 'Then'
and again that Error:local position = { x = 1032, y = 1028, z = 7 }
function onStepIn(cid, item, frompos, itemEx, topos)
if getPlayerAccess(cid) >= 2
Then add a god damn "then" on line 5 after "doTeleportThing",(cid, position)
doPlayerSendTextMessage(cid,21,"You are in.")
else
doTeleportPlayer(cid, fromPosition, TRUE)
doPlayerSendTextMessage(cid,21,"You can't enter unless u are a staff member.")
end
return true
end
[30/07/2012 12:08:25] [Error - LuaScriptInterface::loadFile] data/movements/scripts/Staff.lua:5: 'then' expected near 'Then'
[30/07/2012 12:08:25] [Warning - Event::loadScript] Cannot load script (data/movements/scripts/Staff.lua)
[30/07/2012 12:08:25] data/movements/scripts/Staff.lua:5: 'then' expected near 'Then'
[30/07/2012 12:08:54] Reloaded movements.
local position = { x = 1032, y = 1028, z = 7 }
function onStepIn(cid, item, frompos, itemEx, topos)
if getPlayerAccess(cid) >= 2
Then add a god damn "then" on line 5 after "doTeleportThing",(cid, position)
doPlayerSendTextMessage(cid,21,"You are in.")
else
doTeleportPlayer(cid, fromPosition, TRUE)
doPlayerSendTextMessage(cid,21,"You can't enter unless u are a staff member.")
end
return true
end
local position = { x = 1000, y = 1000, z = 7 }
function onStepIn(cid, item, frompos, itemEx, topos)
if getPlayerAccess(cid) >= 2 then
doTeleportThing(cid, position)
doPlayerSendTextMessage(cid,21,"You are in.")
else
doTeleportThing(cid, fromPosition, TRUE)
doPlayerSendTextMessage(cid,21,"You can't enter unless u are a staff member.")
end
return true
end
omagad, I'm not sure if i should laugh or cry.Now i made do
and again that
- - - Updated - - -
Now i made do
and again that Error: