Robie sw?j autorski dashboard i chce zrobi? sprawdzanie nazwy org.
Dashboard chce podpi?c pod pysa i nie wiem jak zrobi? sprawdzanie org
probowa?em zrobi? tak
Nazwa si? nie wy?wietla?a i znik? tekst Organizacja:[/code]
Witam tak jak w temacie m?g? by kto? mi powiedzie? jak doda? si? do organizacji oraz jak zrobi? te biznesy na [GM] it'sa tego w LS z g?ry dzi?kuj? daje
Witam pr?buje zrobi? ?eby da?o si? dodawa? auta do organizacji, gdy przepisuje auto ca?y czas mam komunikat ?e nie jestem w organizacji pr?bowa?em pozmienia? moj? baz? danych ale nie wychodzi.
server
[lua]--[[
Developed by Yolos . You dont have agree to use this code! ;3
]]
function refreshgui(element)
local uid=getElementData(element,"player:uid")
if not uid then return end
local result=exports["tiyl-db"]:dbGet("SELECT tiyl_pojazdy.model,tiyl_pojazdy.id,tiyl_pojazdy.ownedGroup,tiyl_organizacje.name FROM tiyl_pojazdy left join tiyl_organizacje on tiyl_organizacje.id=tiyl_pojazdy.ownedGroup WHERE ownedPlayer=?", uid)
triggerClientEvent(element, "org:refresh", resourceRoot, result)
end
addEvent("org:check", true)
addEventHandler("org:check", resourceRoot, function(id,name)
-- Pobieramy UID gracza
local uid=getElementData(client,"player:uid")
if not uid then return end
-- Sprawdzamy czy jest jeszcze w?a?cicielem
local result=exports["tiyl-db"]:dbGet("SELECT * FROM tiyl_pojazdy WHERE id=? AND ownedPlayer=?", id, uid)
if #result < 0 then
outputChatBox("* Nie jeste? w?a?cicielem pojazdu.", client, 255, 0, 0)
return
end
local result=exports["tiyl-db"]:dbGet("SELECT * FROM tiyl_pojazdy WHERE id=? AND parking=0", id)
if #result > 0 then
outputChatBox("* Pojazd nie jest w przechowalni!.", client, 255,...
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...
Jak w temacie jest problem z organizacjiami. Pochodz? one z GM PYStories.. dzia?a przepisywanie pojazd?w na organizacje i inni cz?onkowie mog? nimi je?dzi? ale w tym problem ?e trzeba ich dodawa? przez MySQL wie kto? mo?e jak zrobi? panel lidera? najlepiej gotowy kod.
Nwm czy tutaj jest panel lidera org w tym GM
[ Dodano: 2016-12-30, 23:46 ]
PS. Na scoreboardzie pokazuje organizacje