TSFMAG
Enjoy being different.
- Joined
- Jun 11, 2017
- Messages
- 9
- Reaction score
- 1
I'd like to fix this:
Here my report.lua:
Or if you have a script /report better post it here please, thanks for your time!
Lua:
[Error - LuaScriptInterface::loadFile] data/talkactions/scripts/report.lua:20: '}' expected (to close '{' at line 15) near 'function'
[Warning - Event::loadScript] Cannot load script (data/talkactions/scripts/report.lua)
data/talkactions/scripts/report.lua:20: '}' expected (to close '{' at line 15) near 'function'
Here my report.lua:
Lua:
function onSay(cid, words, param, channel) local time = 4 ---- Exhaustion cada numeral equivale a 1 hora. if param == "" or not param or param == " " then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "E necessario escrever o report") and false end if exhaustion.get(cid, 23246) then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você atingiu o limite de reports espere o limite sair") and false end if #param <= 4 then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "O seu report deve conter mais de 4 caracteres") and false end exhaustion.set(cid, 23246, time*36000*1000) doPlayerAddReport(cid, param) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Parabéns seu report foi enviado para nosso banco de dados logo ele sera visto\nA equipe agradece") return true end
Or if you have a script /report better post it here please, thanks for your time!
Last edited: