Niekt?re dodane skrypty dzia?aj? dopiero po ca?kowitym wy??czeniu i w??czeniu serwera. Nie raz zdarzy?o mi si? doda? skrypt i d?ugo si? zastanawia?em dlaczego on nie chce dzia?a? poprawnie. Dopiero jaki? czas temu zauwa?y?em ?e czasem pomaga ca?kowite wy??czenie i w?a?nie w??czenie serwera. Kto? mo?e wie dlaczego tak jest?
function getwyplata(el,md)
local uid = getElementData(el,"player:sid")
local result=exports["pystories-db"]:dbGet("SELECT * FROM pystories_factions WHERE sid=?", uid)
if #result > 0 then
if factions[result[1].code] then
if getElementData(el,"player:workinjob") and getElementData(el,"player:workinjob") >= 10 then
local money = (factions[result[1].code] * getElementData(el,"player:workinjob"))
local czas = getElementData(el,"player:workinjob")
setElementData(el,"player:workinjob",0)
exports["pystories-db"]:dbSet("UPDATE pystories_users SET worker=? WHERE id=?", "0", getElementData(el, "player:sid"))
outputChatBox("Ⓘ #FFFFFFTrwa przetwarzanie twoich danych...", el, 255, 255, 0, true)
s...
Nie chce dawa? Skin?w gdy kto? ma Premium chodzi mi tu o skiny premium, wszystko chyba poprawnie podpi?t? pod baz? danych m?g?by kto? pom?c?
Na dole daje link z skryptem
witam jak odpalam wi?kszo?? licznik?w to spadaj? mi fps do 20 i wyskakuje mi ogrom b??d?w
Error Loading Image @ dxDrawImage
i zamiast wy?wietla? mi tarczy to pokazuje mi sie tylko tekst
ss: https://imgur.com/iJhGKPk
Witam niestety nie dzia?aj? komendy typu /b /zpj /mute dodam, ze kick dziala do acl mam wpisane resource.pystories.admin i resource.* po wpisaniu zpj dane zostaja wpisane do bazy danych lecz gracz dalej moze wsiasc do auta prosze o pomoc
Witam ot?? mam problem z interiorami wszystkie wgra?em lecz ?aden nie dzia?a jest jaki? spos?b na naprawienie tego? tutaj zdj?cie https://imgur.com/a/gZ88q4O
Witam potrzebuje pomocy gdy? mam podpi?t? baz? danych mysql np. logowanie itd mi dzia?a ale jak kupuje pojazd w Salonie np. SF i chce odebra? pojazd z przechowywalni to po prostu si? nie da gdy klikam odbierz pojazd on znika w tabeli
a gdy nastepnie wchodz? w marker pojazd si? pojawia
Siema mam ma?y problem bo gdy wpisze na serwerze /dom [id] to on niby si? stworzy ale nie wida? tego blipu ?eby go kupi? w db te? si? tworzy. B??d z db3 to ERROR:[skrypty]/psrpg_DOMY/interiory.lua:15 badargument #1 to 'ipairs' (table expected, got boolean),
WARNING:[skrypty]/psrpg_DOMY/kupdom.lua:16 Bad argument @ 'setElementInterior' [Expected element at argument 1, got nil]
WARNING:[skrypty]/psrpg_DOMY/kupdom.lua:17 Bad argument @ 'setElementDimenision' [Expected element at argument 1, got nil
KODY:
Interiory.lua
[lua]
interiory={}
local dane=exports.DB2:pobierzTabeleWynikow("SELECT id,interior,entrance,`exit` FROM lss_interiory WHERE `exit` IS NOT NULL AND active=1")
for _,v in ipairs(dane) do
local ii = tonumber(v.id)
v.entrance=split(v.entrance,",") -- miejsce w ktorym pojawi sie gracz
v.exit=split(v.exit,",") -- wyjscie
Mam taki problem, ?e po wpisaniu komendy /b i /k poka?e si? komunikat o tym, ?e kto? zosta? zbanowany lub wyrzucony ale nie wywala to ich lub nie banuje na serwerze czyli tak jakby te komendy nie dzia?a?y.
[lua]
function cmd_pkick(plr, cmd, target, ...)
if getAdmin(plr,4) or getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) or getAdmin(plr,5) or getAdmin(plr,6) then
if not target or not ... then
outputChatBox("#007aff(ⓘ) #FFFFFFU?yj /k [ID/Nazwa gracza] [Pow?d]", plr, 255, 255, 255, true)
return
end
local player = exports["pystories-core"]:findPlayer(plr,target)
local text = table.concat({...}, " ")
if player then
triggerClientEvent(getRootElement(), "notiBig", getRootElement(), "Gracz "..getPlayerName(player):gsub("#%x%x%x%x%x%x","").." zostaje wykopany/a przez "..getPlayerName(plr):gsub("#%x%x%x%x%x%x","").. " z powodu: "..text, text)
outputConsole(" ", player)
outputConsole("Zosta?e? wykopany z serwera!", player)
outputConsole("Osoba wyrzucaj?ca: "..getPlayerName(plr):gsub("#%x%x%x%x%x%x",""), player)
outputConsole("Pow?d: "..text, player)
outputConsole(" ", player)
kickPlayer(player, getPlayerName(plr), "Sprawd? swoj? konsol? (~)")
end
end
end
addCommandHandler("k", cmd_pkick)
Witam mam problem z komendami /b /zpj /k te komendy mi nie dzia?aj? /warn dzia?a.... Mam dodane do acl resources.* oraz dutyadmin... Nie wiem o co chodzi kto? pomo?e??
Siemka, ostatnio wystartowa? m?j serwer. Wszystko wszystkim dzia?a. Ale 2 osoby maj? problem. Nie widz? ani napis?w w panelu logowania (przyciski widz?), ani na hudzie ani cen aut, ani panelu F1 (jednemu panel F1 dzia?a) ani Nick?w nad g?owami, ani wybierania respawnu, itp wsz?dzie gdzie co? pisze. Posiadam paczk? DenverMTA. My?la?em ?e to jest wina skryptu np 3dtext, ale zrestartowa?em i nadal nic. Poni?ej za??czam SS jednego z koleg?w jak to wszystko u niego wygl?da.
Witam, nie dzia?aj? mi zapisy w pystories-vehicles daj? tutaj na d?? kod prosz? o pomoc daje piwko i respekt!
[code]vehicles=0
root=getRootElement()
resourceRoot=getResourceRootElement(getThisResource())
local nlOffsets={
[411]={-1,0,-0.6}, -- infernus
[470]={-1,0,-0.4}, -- patriot
[541]={-0.9,0,-0.4}, -- bulelt
[549]={-0.9,0,-0.4}, -- tampa
[587]={-1,0,-0.5}, -- euros
}
local nlIDX={
3962,2113,1784,2054,2428,2352
}
function getVehicleHandlingProperty ( element, property )
if isElement ( element ) and getElementType ( element ) == "vehicle" and type ( property ) == "string" then
local handlingTable = getVehicleHandling ( element )
local value = handlingTable[property]
if value then
return value
end
end
return false
end
function getAdmin2(plr,level)
if level then
local result=exports["pystories-db"]:dbGet("SELECT * from pystories_admins WHERE serial=? AND level=?", getPlayerSerial(plr), level)
if result and #result > 0 then
return true
else
return false
end
else
local result=exports["pystories-db"]:dbGet("SELECT * from pystories_admins WHERE serial=?", getPlayerSerial(plr))
if result and #result > 0 then
return true
else
return false
end
end
end
--///////////////////////////////////// WCZYTYWANIE POJAZD?“W /////////////////////////////////
function onRespawn...
Cze??,
Na moim serwerze mam problem z banami, wywala zapisuje w tabeli MySQL ale gracz mo?e wej?? na serwer, je?eli chodzi np. o zabranie prawo jazdy to zabiera prawid?owo. O co chodzi?
Gdy banuje lub pbanuje gracza to nie wyrzuca go i nie daje mu bana tylko wskakuje powiadomienie i zostaje dodany do mysql zbanowanych lecz mo?e gra? na serwie i wchodzi? na niego
Prosz? o pomoc
Za rozwi?zanie problemu daje zimne piwko
Siemka,
Pisa?em do was aby?cie mi pomogli z logami na duty z ogrpg, i pomogli?cie, wgra?em i dzia?a, ale logi pokazuj? tylko jak adminsitracja si? loguje na duty i z niego schodzi, jak zrobi? tak aby jak kto? pisze do kogo? na czacie, pm, i przelewa komu? kase, aby to by?o na logach?
Kod dutyadmin w kt?rym s? linijki na logi:
[lua]
for k,v in ipairs ( getElementsByType ( "object" ) ) do
if getElementData ( v, "sciana:raportow" ) then
scianaplaczu = v
end
if getElementData(v,"sciana:text") then
scianatekstu = v
end
end
function isEventHandlerAdded( sEventName, pElementAttachedTo, func )
if
type( sEventName ) == 'string' and
isElement( pElementAttachedTo ) and
type( func ) == 'function'
then
local aAttachedFunctions = getEventHandlers( sEventName, pElementAttachedTo )
if type( aAttachedFunctions ) == 'table' and #aAttachedFunctions > 0 then
for i, v in ipairs( aAttachedFunctions ) do
if v == func then
return true
end
end
end
end
return false
end
local xtext=nil
local gameView={"Logi serwerowe"}
local sx,sy=guiGetScreenSize()
Link do gm:http://www.gtao.pl/<font-colorff00ff>gm<-font>-xaworld-vt113668,15.htm?sid=427ef59404546c24b6d14b3c61416dc2
Witam. Mam taki problem w tym gm ?e mam podpi?t? baz? danych oraz mam nadanego sobie admina ranga "4" i jeszcze mam za?adowany modu?. Ale nie dzia?a mi tworzenie dom?w. Wpisuj? komend? "dom" a tu nic. Wspomn? te? ?e w db3 nic niema
local nlOffsets={
[411]={-1,0,-0.6}, -- infernus
[470]={-1,0,-0.4}, -- patriot
[541]={-0.9,0,-0.4}, -- bulelt
[549]={-0.9,0,-0.4}, -- tampa
[587]={-1,0,-0.5}, -- euros
}
local nlIDX={
3962,2113,1784,2054,2428,2352
}
function getVehicleHandlingProperty ( element, property )
if isElement ( element ) and getElementType ( element ) == "vehicle" and type ( property ) == "string" then
local handlingTable = getVehicleHandling ( element )
local value = handlingTable[property]
if value then
return value
end
end
return false
end
function getAdmin2(plr,level)
if level then
local result=exports["ogrpg-db"]:dbGet("SELECT * from ogrpg_admins WHERE serial=? AND level=?", getPlayerSerial(plr), level)
if result and #result > 0 then
return true
else
return false
end
else
local result=exports["ogrpg-db"]:dbGet("SELECT * from ogrpg_admins WHERE serial=?", getPlayerSerial(plr))
if result and #result > 0 then
return true
else
return false
end
end
end
--///////////////////////////////////// WCZYTYWANIE POJAZD?W /////////////////////...
Witam mam problem w kt?rym chodzi o to ?e po wej?ciu w marker nie dzia?aj? przyciski rozpocznij i informacje tylko dzia?a przycisk wyj?cia z gui nie wiem jak to naprawi? denerwuje mnie ju? to jakby kto? pom?g? to moge piwko zimne stawi?
[lua]kurierMarker = createMarker ( -2521.24561, -621.98376, 131.74370, "cylinder", 1, 0, 180, 160 )
kurier_glowny = false
kurier_informacje = false
kurier_rozpocznij = false
function isMouseInPosition ( x, y, width, height )
if ( not isCursorShowing( ) ) then
return false
end
local sx, sy = guiGetScreenSize ( )
local cx, cy = getCursorPosition ( )
local cx, cy = ( cx * sx ), ( cy * sy )
if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then
return true
else
return false
end
end
Witam, nie dzia?aj? mi kolizje na map edytorze, mapuje sobie granice i mi?dzy innymi s? ko?o nich barierki kt?re si? zw?: DYN_ROADBARRIER_5 i da?em na nich kolizje, wy??czy?em breakble aby si? nie niszczy?y, ale ?eby kolizje by?y. Nie powi?szka?em niczego w skali, ale kolizje s?, uderza si? w nie autem, tylko potem one si? jakby "niszcz?" i znikaj? w d??.
Cze??, skrypty na ka?d? prac? PYS 3.0 nie dzia?aj?. Ot?? nie daj? pieni?dzy. W db3 pisze, ?e nie mam ztriggerowanego po stronie serwera (w ka?dym skrypcie ) i tak jest.. Nie wiem jak to zrobi? (Czarna magia :O), m?g?by kto? pom?c?
Trigger z strony clienta:
Witam, posiadam wgrany skrypt na dwa salony w SF - Downtown, oraz Doherty.
W salonach s? auta na swojej pozycji, lecz nie ma cen aut i komenda chyba przez to ?e nie ma cen /kuppojazd nie dzia?a. Skrypt to ogrpg-salon
A wi?c tak na moim pseudolku na paczce itsyourword nie dzia?aj? prawka i tylko one w acl doda?em resources.* i wgra?em modu?y, a i tak nic. A o to debugscript 3
Witam mam problem ot??, mam napisany skrypt na autobusy lecz nie dziala a dokladniej gdy wjade w punkt to nie dostaje ani hajsu ani nie znika ten punkt pom?g?by kto? oto kody:
[b][color=red]bus.lua[/color][/b]
[code]createBlip(1742.97, -1861.93, 13.58,46,2,255,0,0,255,0,100)
local m1 = createMarker(1742.97, -1861.93, 13.58-1, "cylinder", 1.2, 0,200,0,150)
local t = createElement('text')
setElementPosition(t,1742.97, -1861.93, 13.58)
setElementData(t,"name","Praca: Kierowca MZKnZarobki:nZwyk?y Gracz od 2750PLN do 2650PLN n Premium: x1.3 Wi?cej.")
local vehs = {}
local code = "Autobusy"
local zone = createColSphere( 1732.85, -1857.30, 13.54, 6 )
addEventHandler("onMarkerHit", m1, function(el, md)
if getElementData(el, "vehicle_job_owner") then
return
end
if not md or getElementType(el) ~= "player" or getPedOccupiedVehicle(el) then return end
if getElementData(el,"player:job") then return end
if #getElementsWithinColShape(zone,"vehicle") >= 1 then outputChatBox("[#00ff00INFORMACJA#ffffff]Kto? ju? zajmuje to miejsce, poczekaj a? odjedzie.",el,255,255,255,true) return end
local x,y,z = getElementPosition(el)
local autbus = createVehicle(431, 1732.85, -1857.30, 13.54, 0.00, 0, 270 )
setElementFrozen(el,true)
setElementData(autbus,"vehicle:desc","Miejski Zarz?dnKomunikacji")
setEleme...
A wi?c tak, mam gamemode Your Adventure , doda?em do ACL Admin resource.ogrpg-core wraz z dutyadmin, i dalej nie dzia?a, szuka?em na gtao taki temat ale ci?gle pisz? ?e bla bla dodaj do acl resource.dutyadmin... - ju? to zrobi?em, mo?ecie pom?c? by?bym wdzi?czny.
Witam. Na moim serwerze nie dzia?aj? komendy /zpj /b /k /w(komendy odpowiadaj?ce za bany kicki warny zabieranie prawka).
Podpi??em mysql wszystko ?adnie, a czy to resource.dutyadmin resource.ogrpg-core mam wklei? gdzie? tutaj w acl w ftp serwerowym?
Prosz? o pomoc! Ps. Mam za?o?one konto w acl na panel admina lecz gdy wchodz? na serwer to panel admina nie mog? wgl si? zarejestrowa? i lipa z panelu, wi?c chce przez ftp to odpali? Z g?ry dzi?ki za pomoc!
Cze??, potrzebuj? pomocy ze skryptem lss-domy. Mam podpi?t? tabel? mysql z iyw v1 wraz z zrobionymi 'niby' domami, ogrpg-db oraz DB2 te? podpisane. lss-domy sam skrypt te? jest wgrany. Domy si? nie wy?wietlaj?, da?by rad? kto? pom?c lub wys?a? dobry gotowy plik?
Kod:
[lua]
local function hit_marker(el,md)
if getElementType(el) ~= "player" or not md then return end
if getElementData(source,"start_job") then
if getElementData(el,"player:license:pjC") ~= 1 then
triggerEvent("onClientAddNotification", el, "Aby tu pracowa? musisz mie? zdane prawo jazdy kat. C!", "error")
return
end
if getElementData(el,"player:srp") < 250 then
triggerEvent("onClientAddNotification", el, "Aby tu pracowa? musisz mie? 250SP!", "error")
return
end
if getPedOccupiedVehicle(el) then return end
triggerClientEvent(el,"show_gui",resourceRoot,source)
elseif getElementData(source,"get_vehicles") then
if not getElementData(el,"packer_job") then return end
local veh = getPedOccupiedVehicle(el)
if veh then
if getElementData(veh,"loaded") or getElementModel(veh) ~= 578 then exports["1"]:outputNotificationBox (el, "Jed? do punktu oznaczonego blipem 'C'", 255, 255, 255) exports["1"]:outputNotificationBox (el, "Pojazdy zosta?y ju? za?adowane!", 255, 0, 0) return end
setElementFrozen(veh,true)
toggleControl(el,"enter_exit",false)
triggerEvent("...