Lua Problem

  • Initiateur de la discussion
M

Mastfill

Nouveau né
Messages
10
Score réaction
1
Points
15
Bonsoir,
dans ma console, sa me dis que j'ai une erreur lua .

Code:
01/03/2018 00:15:02: Lua Error Couldn't include file 'sh_ano.lua' (File not found) (@addons/darkrpmodification-master/lua/darkrp_modules/ano_cmd/sv_ano.lua (line 1))
Couldn't include file 'sh_ano.lua' (File not found) (@addons/darkrpmodification-master/lua/darkrp_modules/ano_cmd/sv_ano.lua (line 1))
sa vient de mon anonyme command, un code qui permet de parler en anonyme

Code:
include ("sh_ano.lua")
local conf = ANOCONF
local function PlayerAno(ply, args) if args == "" then DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("invalid_x", "argument", "")) return "" end local DoSay = function(text) if text == "" then DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("invalid_x", "argument", "")) return end for k,v in pairs(player.GetAll()) do DarkRP.talkToPerson(v, Color(255,0,0,255), conf.tchatmsg, Color(255, 255, 255, 255), text, ply) ServerLog(ply:Nick() .. " do : ") end end return args, DoSay
end
DarkRP.defineChatCommand(conf.cmd, PlayerAno, 1.5)
-- Declaration of the command
DarkRP.declareChatCommand{ command = "ano", description = "écrire un annonyme sur le tchat", delay = 1.5
}
-- Automatic message in the chat.
function MsgAuto() if AutoMSG then for k, v in pairs(player.GetAll()) do v:ChatPrint( conf.AnoMsg ) end end end
timer.Create( "automsg", conf.TimeMsg, 0, MsgAuto)

https://imgur.com/8D2ICN1

mais le dossier sh_ano.lua et bien présent.
 
SowDev

SowDev

Geek
Messages
71
Score réaction
15
Points
65
Remplace include("sh_ano.lua") par include ('sh_ano.lua')

Au cas où pour tester
 
Offshorp

Offshorp

Amazonia Studio
Messages
704
Score réaction
256
Points
210
Cadeau: https://github.com/ImTheTechnician/AnoChat-Command
 
Discord d'entraide
Rejoignz-nous sur Discord