- Joined
- Aug 5, 2008
- Messages
- 1,581
- Reaction score
- 81
Yo, whatsup. nuff' said.
using, 0.3.6 rev with the forgotten server.
and the error as follows:
so whatsup with it? easy rep here from me
using, 0.3.6 rev with the forgotten server.
Code:
if(param == '') then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
return true
end
local exhaust = exhaustion.get(cid, storage)
if(not exhaust) then
exhaustion.set(cid, storage, delaytime)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your report has been sent successfully!")
f:write(""..getPlayerName(cid).." reported a bug at " .. os.date("%d %B %Y - %X.", os.time()) .."\n"..param.." [x="..getPlayerPosition(cid).x..", y="..getPlayerPosition(cid).y..", z="..getPlayerPosition(cid).z.."].\n\n----------------------------------------------------------\n")
f:close()
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You must wait " .. exhaustion.get(cid, storage) .. " seconds to report.")
end
return TRUE
end
and the error as follows:
Code:
[22/01/2012 05:15:59] [Error - LuaScriptInterface::loadFile] data/talkactions/scripts/bugreport.lua:16: '<eof>' expected near 'end'
[22/01/2012 05:15:59] [Warning - Event::loadScript] Cannot load script (data/talkactions/scripts/bugreport.lua)
[22/01/2012 05:15:59] data/talkactions/scripts/bugreport.lua:16: '<eof>' expected near 'end'
so whatsup with it? easy rep here from me