Hallo habe das Ultimate Script eingefügt.Jedoch wenn ich auf die Fraktionskasse zugreifen will mit /fstate erscheint folgender Fehler:
ERROR: ultimate/fraktionen/allround.lua:629: attempt to concatenate field '?' (a nil value)
die fstate Funktion:
Lua
function fstate_func(player)
local frac = vioGetElementData ( player, "fraktion" )
if frac > 0 then
if frac == 1 or frac == 6 or frac == 8 then
outputChatBox ( factionDepotData["money"][1].."$", player, 200, 200, 0 )
elseif frac == 5 then
outputChatBox ( factionDepotData["money"][frac].."$", player, 200, 200, 0 )
elseif frac == 6 then
outputChatBox ( factionDepotData["money"][6].."$", player, 200, 200, 0 )
elseif frac == 10 or frac == 11 then
outputChatBox ( factionDepotData["money"][10] .. "$ | " .. factionDepotData["drugs"][10] .. "g Drogen | " .. factionDepotData["mats"][10] .. " Materialien", player, 200, 200, 0 )
else
outputChatBox ( factionDepotData["money"][frac] .. "$ | " .. factionDepotData["drugs"][frac] .. "g Drogen | " .. factionDepotData["mats"][frac] .. " Materialien", player, 200, 200, 0 )
end
end
end
addCommandHandler ( "fstate", fstate_func )
Alles anzeigen
ich hoffe es kann mir wer weiterhelfen.danke schon mal im voraus