Guten Tag liebe Community,
ich habe in das Ultimate Script eine neue Datei eingefügt namens "report.lua". Ich habe das Script gestartet, habe /report Test eingegeben und es funktionierte nicht.
Infos:
- Ich nutze das Ultimate Script
- Ich habe es so in die "meta.xml" eingefügt: <script src="admin\report.lua"/>
- Das ist der Inhalt der Datei:
Lua
function report_func ( player, cmd, ... )
local parametersTable = {...}
local stringWithAllParameters = table.concat( parametersTable, " " )
if stringWithAllParameters == nil then
outputChatBox ("Bitte einen Text angeben!", player, 125, 0, 0 )
elseif stringWithAllParameters == "" or stringWithAllParameters == " " or stringWithAllParameters == " " then
outputChatBox ("Bitte einen Text angeben!", player, 125, 0, 0 )
else
counter = 0
for playeritem, index in pairs(adminsIngame) do
if vioGetElementData ( player, "handyType" ) == 0 then
telenr = "n.V."
elseif vioGetElementData ( player, "handyType" ) > 0 then
telenr = vioGetElementData ( player, "telenr" )
end
outputChatBox ( "Report von "..getPlayerName(player).." ("..telenr..")(ID: "..getElementData(player,"playerid").."): ", playeritem, 200, 255, 0 )
outputChatBox ( stringWithAllParameters, playeritem, 200, 200, 0 )
counter = counter + 1
end
if counter >= 1 then
outputChatBox ( "Dein Report wurde gesendet!", player, 0, 125, 0 )
else
outputChatBox ( "Im Moment ist kein Admin online! Nutze /admins, um zu sehen, wer online ist!", player, 0, 125, 0 )
end
end
end
addCommandHandler ("report", report_func )
Alles anzeigen
- Das Script stammt ursprünglich aus dem Vio Reloaded Script und war in der "admincmds.lua"
- Das ist die Fehlermeldung:
https://picload.org/view/dccpappc/…-05-34.png.html
Ich hoffe die Infos reichen aus und ihr könnt mir schnell helfen.
Wenn Infos benötigt werden, einfach bescheid sagen.
LG
DexTroX