Cze?? posiadam wgrane dwa osobne skrypty, jeden na zarz?zdanie panelem organizacji z paczki pystories (mam t? paczke wgran? w serwer) i drugi z jakiego? innego serwera z ogrpg chyba, na za?o?enie organizacji w urzedzie, problem jest taki ?e nie dzia?a komenda jak to pisze w skrypcie: /panel.organizacji, nic si? nie wy?wietla po wpisaniu a powinien by? panel:
kod:
[lua] local zaproszenia = {}
local max_people_in_org = 55 ---- MAKSYMALNA LICZBA LUDZI W ORGANIZACJI!
function findPlayer(plr,cel)
local target=nil
if (tonumber(cel) ~= nil) then
for _,thePlayer in ipairs(getElementsByType("player")) do
if getElementData(thePlayer,"player:sid") == tonumber(cel) then target = thePlayer end
end
else -- podano fragment nicku
for _,thePlayer in ipairs(getElementsByType("player")) do
if string.find(string.gsub(getPlayerName(thePlayer):lower(),"#%x%x%x%x%x%x", ""), cel:lower(), 0, true) then
if (target) then
outputChatBox("* Znaleziono wiecej niz jednego gracza o pasujacym nicku, podaj wiecej liter.", plr)
return nil
end
target=thePlayer
end
end
end
if target and getElementData(target,"p:inv") then return nil end
return target
end
addEvent("lidero:editUser", true)
addEventHandler("lidero:editUser", resourceRoot, function(text,rank,faction)
local result1=exports["pystories-db"]:dbGet("SELECT * FROM pystories_user... |