hej posiadam dziwny problem czego nie rozumiem, a mo?e kto? mia? taki przypadek mianowicie, zawsze gdy chce odpali? jaka? paczk? do posprawdzania, wali bl?dy takie jak
czaje wchodze w baze edytuje struktury date, no ale co nie edytuje to wali mi b??dem przy pr?bie zapisu
problem polega na tym ze nie da sie wyciagnac auta z przecho po prostu jak wyciagam to one sie nie wyciaga a jak 2 raz wejde w przecho to nadal w nim jest xd. W debugu s? 2 errory :
1.[ERROR][Freshuu]pssm-parking2/c_parking.lua:142: attempt to concatenate global 'driveType' (a nil value)
2.[Freshuu]pssm-parking2/s_parking.lua:80: exports:Call to not-running server resource (PSSM-vhicles) [string ''?'']
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...
Startuje prace no ale nie startuje si?, ni ma b?edow w DB3 wi?c nwm, wie kto? o co chodzi?
s.lua
[code]local b=createElement("text")
setElementData(b,"name","Praca Dorywcza: SVnZarobek:n800,000 $nWymagania: Prawo jazdy kat. B || Reputacja: 200nPraca pod reputacj?!")
setElementPosition(b,-1739.04, 809.88, 24.89)
local zone = createColSphere(-1739.04, 809.88, 24.89,3 )
createBlip(-1739.04, 809.88, 24.89, 46,2,0,0,0,0,0,275)
local m1 = createMarker(-1739.04, 809.88, 24.89-1, "cylinder", 1.5, 7, 108, 240)
setElementData(m1, 'icon', 'praca')
vehs = {}
local code = "StreetView"
veh_obj = {}
function removePreviousVehicles(plr)
for i,v in ipairs(getElementsByType("vehicle", resourceRoot)) do
local sby = getElementData(v, "zrespilGracz")
if sby and sby == plr and getPedOccupiedVehicle(plr) ~= v then
destroyElement(v)
end
end
end
addEventHandler("onMarkerHit", m1, function(el, md)
if getElementData(el, "player:srp") < 200 then triggerClientEvent(el, 'onClientAddNotification', el, 'Nie posiadasz wystarczaj?co reputacji: 1000 REP', 'error') return end
if getElementData(el, "player:license:pjB") == 0 then trigger...
Witam, nie dzia?a rejestrator dla sapd, powinien on si? pojawia? i pokazywa? pr?dko?? pojazdu z przodu itp niestety tak nie jest.
B?ed?w brak
[lua]local sx,sy=guiGetScreenSize()
local wlaczony=false
local isPolicjant=(
function(plr)
if getElementData(plr, "player:duty") == "SAPD" or getElementData (plr, "player:duty") == "ITD" then
return true
end
return false
end
)
function findRotation( x1, y1, x2, y2 )
local t = -math.deg( math.atan2( x2 - x1, y2 - y1 ) )
return t < 0 and t + 360 or t
end
function getElementSpeed(theElement, unit)
assert(isElement(theElement), "Bad argument 1 @ getElementSpeed (element expected, got " .. type(theElement) .. ")")
assert(getElementType(theElement) == "player" or getElementType(theElement) == "ped" or getElementType(theElement) == "object" or getElementType(theElement) == "vehicle", "Invalid element type @ getElementSpeed (player/ped/object/vehicle expected, got " .. getElementType(theElement) .. ")")
assert((unit == nil or type(unit) == "string" or type(unit) == "number") and (unit == nil or (tonumber(unit) and (tonumber(unit) == 0 or tonumber(unit) == 1 or tonumber(unit) == 2)) or unit == "m/s" or unit == "km/h" or unit == "mph"), "Bad argument 2 @ getElementSpeed (invalid speed unit)")
unit = unit == n...
Witam mam problem z zapisywaniem statystyk. Mianowicie gdy zarobie kase, srp, sp?dze czas oraz zrobie prawko, to gdy zrobie reconnect to nie zapisuje sie, jedynie zostaje kasa w bankomacie. Pomo?e kto?, bo nie ogarniam za bardzo
czemu jak podpinam baze danych pys 3.0 tak samo gm to czemu nie mo?e w??czy? mi si? serwer? z innymi serwerami tak nie mia?em, wydaje mi si? ?e to wina plik?w typu mtaserver.conf ale no nie wiem, ktos mzoe wie?
Witam bardzo serdecznie ka?dego, gdy zmieniam kolor rangi w nametagach, w corze, oraz w adminsie nie zmienia si? on pod tabem nie wiem co mam zrobi? bardzo prosz? o pomoc, daje piwko!
Witam mam taki problem ?e jak klikam wymiana i chce wymieni? pkt na premium to mi zabiera 5 ?eton?w i to tak wygl?da jak bym klika? w jeden przycisk 5 razy... pom?g? by kto? to poprawi?? bo walcze z tym juz od 2 dni i nie mog? tego znale??, bardzo bym by? wdzi?czny... pozdrawiam
[lua]elseif mysz(screenW * 0.4008, screenH * 0.6133, screenW * 0.0542, screenH * 0.0352) and okno3 == false and okno4 == true then
elseif mysz(822*px, 585*py, 126*px, 38*py) and gielda == true then
triggerServerEvent("wymien:pp", localPlayer, ile)
if niemozesz == true then return end
local cena = guiGetText(cenapp)
local ilosc = guiGetText(liczbapp)
if not tonumber(ilosc) then return end
if not tonumber(cena) then return end
if cena:len() > 6 then return end
if cena == "Cena" then return end
if ilosc == "Ilosc" then return end
if cena == "" then return end
if ilosc == "" then return end
if tonumber(cena) < 1 then return end
if tonumber(ilosc) < 1 then return end
if string.find(cena, 'E') then return end
if string.find(cena, 'e') then return end
if string.find(cena, 'r') then return end
if tonumber(ilosc) > tonumber(getElementData(localPlayer, "pp")) then exports["smta_base_notifications"]:noti("Nie posiadasz wystarczajacej ilosc DP", "error") return end
triggerServerEvent("wystaw:pp", localPlayer, tonumber(i...
Cze??, mam problem z paczk? Vectory RPG. Mog? przy pomocy innego auta rozwala? auta w kt?rych nikt nie siedzi. Jak to naprawi?? Brak b??d?w pod debugscript 3.
Witam tak jak w temacie nie mog? wyj?? pojazdu z Przechowywalni.
Taki Error wyskakuje podczas pr?by wyci?gni?cia Pojazdu z przecho:
Tak wygl?da linijka w kt?rej rzekomo jest b??d:
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
Pr?bowa?em ju? to przerabia? z innym skryptem ale mi nie wychodzi
M?g?by kto? mi podpowiedzie? co mam zrobi? ?eby to dzia?a?o? Og?lnie skrypt mam z internetu i chce go przerobi?. Tylko problem mam i nie wy?wietla wog?le avataru. Za pomoc daje Browaryy
Witam, mam nast?puj?cy problem po wej?ciu do markeru nie ma d?wi?ku. Oczywi?cie w debugu zero b??d?w, wi?c nie wiem co ?le zrobi?em. Dodam, ?e skrypt jest po stronie clienta.
local marker =createMarker(1756.68, -1120.09, 24.09-0.9,"cylinder", 1,0,255,0,255)
Siema mam taki problem gdy? si? mi nie wczytuj? interiore a mam je w paczce (paczka RL.2.0) I nie wiem co robi? pr?bowa?em w innych paczkach i tez mi si? nie wczytuj? co mam w takiej sytu??ci zrobi? restertowa?em ju? skrypty nie raz i nie pomaga POMOCY
Siema, po wgraniu paczki ventos rpg (tej najnowszej) na locala i po jej uruchomieniu i zalogowaniu si? na serwer posta? lewituje w powietrzu i nic nie da si? zrobi?.
Witam gdzie mam wgra? paczk? rpg PYStories SF z baz? danych bo nie wiem gdzie j? wgra? czy do resources czy do dethmatch?? i jak pod?aczy? t? baze danych z tej paczki? za pomoc daje respekrt i browca!!
Witam mam pewien problem w pracy ot?? nie mog? odczyta? topki
--Strona S pracy
[lua]
addEvent("onPlayerGetTopData", true)
addEventHandler("onPlayerGetTopData", resourceRoot, function()
if client and source == resourceRoot then
local data = exports["pystories-ustawienia-praca"]:getTopJobData("streetview")
triggerClientEvent(client, "onClientGetTopData", resourceRoot, data)
end
end)
[/lua]
-- Strona C pracy
[lua]
local sW, sH = guiGetScreenSize()
local zoom = 1
local baseX = 1920
local minZoom = 2
if sW < baseX then
zoom = math.min(minZoom, baseX/sW)
end
local textures = {}
local topka
Witam mam problem z logowaniem, gdy si? loguje to wszystko jest dobrze, ale nie zapisuje kasy i REP. w bazie danych r?wnie? nic nie ma w pys-logs pys-login
Witam wczoraj wgra?em dzialajaca paczke rt ktora dzialala normalnie wszystko w niej dzialalo natomiast dzis wchodze na serwer i nie moge sie zalogowac a zarejestrowac tak baze mam podloczona wszystko jest dobrze a w db3 wyskakuje mi blad https://imgur.com/a/flmnJ7x prosze o pomoc[color=darkred][/color][size=18][/size][size=24][/size][size=18][/size]
[lua]setTimer(function()
local players=getElementsByType('player')
for _, p in pairs(players) do
if getElementData(p, "player:online") and tonumber(getElementData(p, "player:online")) > 1 then
if getElementData(p, "player:online") == 1 then
local hour = getElementData(localPlayer,"player:hours") or 0
setElementData(localPlayer,"player:hours",hour+0.5)
end
setElementData(p, "player:online", 0)
if getElementData(p, "player:premium") then
givePlayerMoney(p, 250000)
rp = getElementData(p, "player:srp")
setElementData(p, "player:srp", rp+10)
triggerClientEvent(p, "createNotif",p,"Otrzymujesz 250,000$ oraz 10 RP za przegranie 30 minut",3,"success")
outputChatBox("#00ff00✔ #ffffff- Otrzymujesz 250,000$ oraz 10 RP za przegranie 30 minut!",p,255,255,255,true)
end
if getElementData(p, "player:premiumplus") then
givePlayerMoney(p, 400000)
rp = getElementData(p, "player:srp")
zeton = getElementData(p, "player:zetony")
setElementData(p, "player:srp", rp+20)
setElementData(p, "player:zetony", zeton+1)
triggerClientEvent(p,"[GOLD] Otrzymujesz 400,000$ oraz 20 RP za przegranie 30 minut oraz 1 zeton",3,"success")
outputChatBox(&...
addEventHandler("onColShapeLeave",getRootElement(), function(el,md)
if source == colshape then
if getElementData(el, "player:robbank") then
killTimer(timer)
setElementData(el,"player:robbank", nil)
outputChatBox("opu?ci?e? pomieszczenie przed otrzymaniem pieni?dzy, tw?j zarobek przepad?!",el,255,0,0)
end
end
end)
Problem jest taki, ?e mo?na przelecie? na drugi koniec mapy, a pieni?dze i tak si? dostaj?... Ma kto? pomys? jak ugry?? temat, ?eby po wyj?ciu z pomieszczenia rzeczywi?cie nie dostawa? kasy?