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

Simple error in the script, anyone might wanna share the solution?

frankfarmer

who'r ninja now
Premium User
Joined
Aug 5, 2008
Messages
1,581
Reaction score
79
Yo, whatsup. nuff' said.

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 :)
 
thanks, while we're at it..

"06:31 Account Manager: What do you want to be... a master sorcerer, a elder druid, a royal paladin, a elite knight"

where am I able to edit that? sources? Im starting up a noob-war server but haven't been doin any otservs for like, yea the one we did 2 years ago. so im a bit rusty, thanks for helping me out here
 
Back
Top