function onLogin(cid)
doBroadCastMessage("" .. getCreatureName(cid) .. "[ " .. getPlayerLevel(cid) .. "] has entered the game world!")
return true
end
<event type="login" name="LoginMessage" event="script" value="loginmessage.lua"/>
function onLogin(cid)
broadcastMessage("" .. getCreatureName(cid) .. "[ " .. getPlayerLevel(cid) .. "] has entered the game world!")
return true
end
<event type="login" name="LoginMessage" script="loginmessage.lua"/>
[16/01/2011 08:32:31] [Error - CreatureScript Interface]
[16/01/2011 08:32:31] data/creaturescripts/scripts/loginmessage.luanLogin
[16/01/2011 08:32:31] Description:
[16/01/2011 08:32:31] data/creaturescripts/scripts/loginmessage.lua:2: attempt to call global 'doBroadCastMessage' (a nil value)
[16/01/2011 08:32:31] stack traceback:
[16/01/2011 08:32:31] data/creaturescripts/scripts/loginmessage.lua:2: in function <data/creaturescripts/scripts/loginmessage.lua:1>
[16/01/2011 08:32:31] Download has logged out.
function onLogin(cid)
doBroadcastMessage(""..getCreatureName(cid).." [" .. getPlayerLevel(cid) .. "] has entered the game world.", 22)
return true
end
<event type="login" name="LoginMessage" script="loginmessage.lua"/>
im using tfs 8.6![]()