nie dzia?a mi panel czyli klikam p i jest tylko opcje dzia?aj? a reszta si? nie podswietla i nie chce mi dzia?a? robi?em reinstalacje odpala?em od nowa serwer nawet kupi?em gdzie indziej serwer na innej platformie i nadal to mam
Siemka mam problem z paczk? denverMTA jak chce kupi? auto to mi si? nie zapisuje w przecho a jak wyjd? z serwera i wejd? nie zapisuje si? hajs pomo?e kto? dam zimne piwko za pomoc
Witam, mam ma?y problem z oknem na dxdrawach. Mianowicie, GUI dzia?a pi?knie bez ?adnych zarzut?w do momentu a? nie zamkn? go/rozpoczn? pracy. Problem jest taki, ?e po ponownym wej?ciu w marker po wy??czeniu okna GUI si? nie pojawia tak jakby tego markera tam nie by?o, B??d?w nie ma ?adnych w db3. Za pomoc daje zimnego
[lua]
local screenW, screenH = guiGetScreenSize()
okieneczko = false
function Panelmagazyn()
dxDraw..
end
addEvent("GUImagazynu", true)
addEventHandler("GUImagazynu", resourceRoot, function()
if okieneczko == false then
addEventHandler("onClientRender",root,Panelmagazyn)
tick = getTickCount()
okieneczko = true
showCursor (true)
end
end)
function ZamknijOkno(button, state)
if okieneczko and button == "left" and state == "down" then
if cursorPosition(screenW * 0.5098, screenH * 0.5573, screenW * 0.1963, screenH * 0.0469) then
removeEventHandler("onClientRender",root,Panelmagazyn)
okieneczko = false
showCursor (false)
end
end
end
addEventHandler("onClientClick", getRootElement(), ZamknijOkno)
function Rozpocznijprace(button, state)
if okieneczko and button == "left" and state == "down" then
if cursorPosition(screenW * 0.2949, screenH * 0.4870, screenW * 0.1963, screenH...
Witam potrzebuje pomocy w zmianie limitu banku kto? mi tak napisa? : wystarczy strukture tabeli bank_money zmieni? z int 11 na bigint 20 . Ale nie wiem jaki to skrypt czy to baza danych prosze o pomoc za pomoc b?dzie piwko na gtao Dzi?kuje
Witam. Ostatnio bawie sie Gamemodem XyzzyRP dla MTA SA, i nie dziala import aut. Klikam w "Rozpocznij prace" w budynku importu, wchodze w marker, wpisuje /importujpojazd 410 i nic. Moze ktos cos poradzic? Pozdrawiam
Siemka wszystkim, problem mam taki. Nie moge wej?? na sw?j serwer
B??d pobierania: Error downloading requested files. Couldn't connect to server. [Failed to connect to 178.33.54.31 port 20409: Connection refused] [dxLibary/images/line.png]
Prosze mi nie pisa? rzeczy typu "Ty masz zje*any serwer" poniewa? dzieje si? tak tylko kiedy ja wbijam inni mog? bez problemu wbi?.
Po kolei pr?bowa?em wy??cza? skrypty i sprawdza? czy na ka?dym skrypcie error wyskakuje, i tak na ka?dym w nie kt?rych skryptach ma problem z pobraniem plik?w png a w innych w zwyk?ych plikach. Reinstall mta nie pom?g?, wczesniej mia?em problem z hudem w mta wi?c zrobi?em reinstall gta sa po czym wbi?em na serwer i wszystko dzia?a?o, poszed?em d?u?sze zw chcialem wbic i nie wbija, dzieje sie tak tylko na tym serwerze
[ Dodano: 2019-11-08, 10:48 ]
Dodam jeszcze ?e w konsoli serwera jest napisane po prostu
JOIN: Nick joined the game (IP: **********)
i po sekundzie od wbicia
QUIT: Nick left the game [Quit]
W konsoli nie ma ?adnych b??d?w
Witam mam problem, tworze konto na serwerze (jako pierwszy i jest ono w tabeli na samej gorze) i kolega jako drugi (jest konto w tabeli pod moim) i logujac sie na serwer w kolumnie logged zmienia mi wartosc 0 na 1, gdy kolega wbije na serwer (jesli ja jestem tez online) to jemu nie zmienia logged na 1 tylko przypisuje tak jakby cala jego tabele do mojej. Jesli on wyjdzie z serwera (gdy ja jestem online) to w tabeli mojego konta wartosc logged zmienia sie na 0 podczas gdy ja jestem nadal online. Tak samo jest z innymi kolumnami np. premium mam do 2020-01-01 a kolega 0000-00-00 i on wejdzie i wyjdzie z serwera (gdy ja jestem online) to mi zmienia wartosc z 2020-01-01 na 0000-00-00.
Czy to jest przez kolumne "id", kt?re ciagle posiada wartosc 0 ?
[19-10-19 20:02] apps restarted successfully
[19-10-19 20:02] WARNING: admin-system/Player/s_player_commands.lua:734: Expected number, got non-convertible string. This warning may be an error in future versions. [DUP x6]
[19-10-19 20:03] ERROR: job-system-trucker/s_trucker_job.lua:42: call: failed to call 'mysql:fetch_assoc' [string "?"]
[19-10-19 20:03] ERROR: job-system-trucker/s_trucker_job.lua:48: call: failed to call 'mysql:free_result' [string "?"]
[19-10-19 20:03] INFO: [JOB-SYSTEM-TRUCKER] Fetched 0 actual orders sucessfully from SQL
[19-10-19 20:03] WARNING: report-system/s_reports.lua:83: Bad argument @ 'getPlayersInTeam' [Expected team at argument 1, got nil]
[19-10-19 20:03] ERROR: report-system/s_reports.lua:83: attempt to get length of a boolean value
[19-10-19 20:04] restart: Requested by Console
[19-10-19 20:04] restart: Resource restarting...
[19-10-19 20:04] Stopping account
[19-10-19 20:04] Resource 'account' changed, reloading and starting
[19-10-19 20:04] WARNING: account/c_main.lua(Line 3) [Client] showPlayerHudComponent is deprecated and may not work in future versions. Please replace with setPlayerHudComponentVisible.
[19-10-19 20:04] WARNING: account/c_characters.lua(Line 7) [Client] showPlayerHudComponent is deprecated and may not work in future versions. Please replace with setPlayerHudComponentVisible.
[19-10-19 2...
Cze??, wi?c zrobi?em skrypt do montowania Nitra i Paintjoba lecz jak klikam zeby kupic to bierze pieniadze i pisze ze naklejono paintjob, w bazie danych ID paintjoba sie zmienia lecz po wyjeciu auta z przecho paintjob Wraca na ten przed monta?em.
]m?j kod Client:
[lua]GUIEditor = {
button = {},
window = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
local screenW, screenH = guiGetScreenSize()
GUIEditor.window[1] = guiCreateWindow((screenW - 678) / 2, (screenH - 598) / 2, 678, 598, "Monta? Nitra, Painjob?w", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000")
Witam potrzebuj? od was Pomocy Mianowicie mam na takim jednym serwerze wgran? podmianke obiekt?w Dev_paczka i w prawym g?rnym rogu ekranu Pisze napsis "edytor obiekt?w dev Gaming i jak si? klika litere "q" to wyskakuje Okienko do wyboru pod?ogi jak na map editorze Nie wiem jak to usunac a Sama paczka jest zakodowana "luac" Jak kto? wie jak usun?? niech si? zg?osi pod tym postem
Wi?c tak problem polega na braku kolor?w w ScoreBoardzie ... dodawa?em ka?d? mo?liw? funkcj? local r , g ,b getPlayerNameTag ( theplayer ) i z bia?ego koloru w tabeli robi si? czarny kolor a tu w?a?nie chodzi o to aby kolory Administracji pobiera? ten scoreboard [ RCON ] Czerwony itd.
Podaj? kod , skryptu :
[code]
local screenW, screenH = guiGetScreenSize()
local sx, sy = guiGetScreenSize()
local w, h=(sx/1680), (sy/1050)
function isMouseIn(psx,psy,pssx,pssy,abx,aby)
if not isCursorShowing() then return end
cx,cy=getCursorPosition()
cx,cy=cx*sx,cy*sy
if cx >= psx and cx <= psx+pssx and cy >= psy and cy <= psy+pssy then
return true,cx,cy
else
return false
end
end
local tabulator = false
local czcionka = dxCreateFont("f.ttf", 13*w)
local czcionka2 = dxCreateFont("f.ttf", 18*w)
local k = 1
local n = 13
local m = 13
if not czcionka then
czcionka = "default"
end
local zakladki = {
id = "ID",
name = "Nazwa",
reputation = "RP",
organization = "Organizacja",
uid = "UID",
ping = "Ping",
faction = "Frakcja",
}
local ss = 1
local tabulator=false
local ping = {}
function sort(op1, op2)
if isElement(op1) and isElement(op2) then
return getElementData(op1, "id") < getElementData(op2, "id")
end
end
addEventHandler("onClientMarkerHit",xd, function(el,md)
if el~=localPlayer then return end --if getPedOccupiedVehicle(el) then return end
showCursor(true) addEventHandler("onClientRender", root, gui_bramki) setElementData(el, "marker:bramki", true) setElementFrozen(el, true) end)
db3 czyste a gdy dodam jedne marker nie tabelowo to wszystko pokazuje ?adnie
addEventHandler("onMarkerHit", wejscie, function(player, dimension)
if player and dimension then if player.type == "player" then if not player.inVehicle then
fadeCamera(player, false, 1, 0, 0, 0) Timer(function() player.interior = 1
setTimer(function() takeAllWeapons(player) end, 2000, 1) player:setPosition(531.54663, -1809.59167, 6.65) player:setRotation(0, 0, 360) end, 1000, 1) Timer(fadeCamera, 1000, 1, player, true, 1) end
end
end
end)
Witam mam problem z gamemodem SocietyMTA, ot?? gdy wje?d?am w marker ?eby w?o?y? pojazd do przechowalniani w debugscript 3 pokazuj? mi si? taki error:
a jak pr?buj? wyci?gn?? z przechowywalni to pojazd si? nie wyci?ga i pokazuj? si? taki error:
Witam, mam paczke Empire Santos i gdy chce odpalic skrypt, pisze mi: start: Resource is loaded, but has errors (Couldn't find script anim.luac for resource rpg_anims)
I tak w kazdym skrypcie, prosilbym o pomoc. Stawiam zimne
setElementInterior(Start, 5)
function MarkerHit(plr, hitElement, Start) outputChatBox("** Rozpocz??e?/a? prace Kelnera!", plr) setElementData(praca:kelner, true)
local los = math.random(1, #stoliki) local cel = createMarker(stoliki[los], 'cylinder', 1.2, 255, 0, 100, 0) setElementInterior(cel, 5)
function MarkerHit(plr, hitElement, cel)
function kaska(thePlayer) local hajs = math.random(150, 250) givePlayerMoney(hajs) outputChatBox("Za prace otrzymujesz"..hajs..,thePlayer) setElementData(praca:kelner, false) end
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
}
outputChatBox = _outputChatbox
function outputChatBox(tekst,gracz)
if not gracz then return end
if not isElement(gracz) then return end
if getElementType(gracz) ~= "player" then return end
triggerClientEvent(gracz,"powiadomienie",root,tekst)
end
function getAdmin2(plr,level)
if level then
local result=exports["tiyl-db"]:dbGet("SELECT * from tiyl_ekipa_adm WHERE serial=? AND level=?", getPlayerSerial(plr), level)
if result and #result > 0 then
return true
else
return false
end
else
local result=exports["tiyl-db"]:dbGet("SELECT * from tiyl_ekipa_adm WHERE serial=?", getPlayerSerial(plr))
if result and #result > 0 then
return true
else
return false
end
end
end
--///////////////////////////////////// WCZYTYWANIE POJAZD?W /////////////////////////////////
function getVehicleHandlingProperty ( element, property )
if isElement ( element ) and getElementType (...
Po restarcie serwera popsu?a mi sie przechowywalnia w db3 jest taki b?ad
Kod
function loadCar( )
if veh then veh:destroy( ) end
local color=split(vehicles[actual_car]["color"], ",") local lights=split(vehicles[actual_car]["headlights"], ","); veh = createVehicle( vehicles[actual_car].model, 1385.87, -20.98, 1000.82 );
for i,v in ipairs(split(vehicles[actual_car]["tuning"], ",")) do veh:addUpgrade( v ); end
veh:setHeadLightColor( lights[1], lights[2], lights[3] ); veh:setInterior( 1 ); veh:setFrozen( true ); loaded = true; end
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
Witam, problem polega na tym ?e wchodz?c na serwer nie mog? si? zarejestrowa?, w og?le nie chce mi dzia?a? przycisk "Rejestruj". Mog?em si? zalogowa? wcze?niej, poniewa? moje dane by?y w Bazie Danych. Gdy zrobi?em czystk? i chcia?em si? zarejestrowa? nie dzia?a?o.
Za ka?d? pomocn? odpowied? postawi?
Witam mam problem z logowaniem w db mam taki b??d https://imgur.com/a/jYwrUfY
Wszystkie db zosta?y dobrze pod??czone w mtaserv.conf tez jest okej. Mo?e to wina tego ?e baza danych jest na localhost.
local screenW, screenH = guiGetScreenSize()
F1 = false
function cursorPosition(x, y, w, h)
if (not isCursorShowing()) then
return false
end
local mx, my = getCursorPosition()
local fullx, fully = guiGetScreenSize()
cursorx, cursory = mx*fullx, my*fully
if cursorx > x and cursorx < x + w and cursory > y and cursory < y + h then
return true
else
return false
end
end
addCommandHandler("qkx.vip",function(plr,cmd,cel,dni)
if exports['pystories-admins']:getAdmin(plr,4) then if not cel then outputChatBox("/qkx.vip [gracz] [dni]",plr) return end if not dni then outputChatBox("/qkx.vip [gracz] [dni]",plr) return end if not tonumber(dni) then outputChatBox("/qkx.vip [gracz] [dni]",plr) return end
local target=exports["pystories-core"]:findPlayer(plr,cel)
Zastosowa?em si? do poradnika gravgora lecz po wyjscu z deatchmatch nie mam zadnego x86.
Baza zosta?a podpi?ta i to nic nie zmienia, nadal jest sending.
[code]-- connection settings
local hostname = "94.23.90.14"
local username ="db_45775"
local password = "GjadushgGuadyDSGaijd"
local database = "db_45775"
local port = 3306
-- global things.
local MySQLConnection = nil
local resultPool = { }
local sqllog = false
local countqueries = 0
a
-- connectToDatabase - Internal function, to spawn a DB connection
function connectToDatabase(res)
MySQLConnection = mysql_connect(hostname, username, password, database, port)
if (not MySQLConnection) then
if (res == getThisResource()) then
cancelEvent(true, "Cannot connect to the database.")
end
return nil
end
return nil
end
addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), connectToDatabase, false)
-- destroyDatabaseConnection - Internal function, kill the connection if theres one.
function destroyDatabaseConnection()
if (not MySQLConnection) then
return nil
end
mysql_close(MySQLConnection)
return nil
end
addEventHandler("onResourceStop", getResourceRootElement(getThisResource()), destroyDatabaseConnection, false)
-- do something usefull here
function logSQLError(str)
local message = str or 'N/A'
outputDebugString("MYSQL ERROR "..mysql_errno(MySQLConnection) .....
Witam chce si? zalogowa? ale nie ma nigdzie linijki do wpisania loginu i hasla
dam pare kod?w bo nw jaki do tego s?u?y[lua]if getElementData(localPlayer, "player:sid") then return end
local root = getRootElement()
local resourceRoot = getResourceRootElement(getThisResource())
local screenWidth, screenHeight = guiGetScreenSize()
local screenW,screenH = guiGetScreenSize()
local blurStrength = 20
local myScreenSource = dxCreateScreenSource(screenWidth, screenHeight)
blurShader, blurTec = dxCreateShader("shaders/BlurShader.fx")
function renderblur()
if blur == true then
dxUpdateScreenSource(myScreenSource)
dxDrawImage(0, 0, screenWidth, screenHeight, blurShader)
end
end
addEventHandler("onClientRender", root, renderblur)
addEventHandler("onClientResourceStop", resourceRoot,
function()
if blurShader and isElement(blurShader) then
destroyElement(blurShader)
blurShader = nil
end
end)
x,y=2513.58, 1282.80-- my width
intro_step=math.random(0,850)
local sx,sy=guiGetScreenSize()
local data={ showed=nil, button={}, info=nil, misc=nil, }
function isMouseIn(psx,psy,pssx,pssy,abx,aby)
if not isCursorShowing() then return ...
Siema,jak mog? naprawi? ten b??d na moim serwerze? mianowicie chodzi o to ?e mam panel logowania od VastRPG i opcja zapami?taj has?o nie dzia?a bo wywala b??d taki ERROR: Client (D4nyPL triggered serverwside event AntyLost but event is not added serverside
Co robi??
Kod:
[code]
local sx,sy=guiGetScreenSize()
local data={ showed=nil, button={}, info=nil, misc=nil, }
local czcionka = dxCreateFont("font/1.ttf", 15)
function isMouseIn(psx,psy,pssx,pssy,abx,aby)
if not isCursorShowing() then return end
cx,cy=getCursorPosition()
cx,cy=cx*sx,cy*sy
if cx >= psx and cx <= psx+pssx and cy >= psy and cy <= psy+pssy then
return true,cx,cy
else
return false
end
end
local dist = 200
local angler = 0
function getPointFromDistanceRotation(x, y, dist, angler)
local a = math.rad(270 - angler)
local dx = math.cos(a) * dist;
local dy = math.sin(a) * dist;
return x+dx, y+dy;
end
function roundedRectangle(x, y, w, h, color)
dxDrawRectangle(x, y, w, h, color, false)
dxDrawRectangle(x + 2, y - 1, w - 4, 1, color, false)
dxDrawRectangle(x + 2, y + h, w - 4, 1, color, false)
dxDrawRectangle(x - 1, y + 2, 1, h - 4, color, false)
dxDrawRectangle(x + w, y + 2, 1, h - 4, color, false)
end
local x,y = guiGetScreenSize()
local f = x / 1024
local nY = y*f
function renderZoneBox()
if data.info then dxDrawText(data.info, sx*252/1024, sy*232/768, sx*800/1024, sy*255/768, toco...
local armyranksFullName = {
"Private",
"Private First Class",
"Specialist",
"Corporal",
"Sergeant",
"Staff Sergeant",
"Sergeant First Class",
"Master Sergeant",
"First Sergeant",
"Sergeant Major",
"Command Sergeant Major",
"Sergeant Major of the Army",
"Second Lieutenant",
"First Lieutenant",
"Captain",
"Major",
"Lieutenant Colonel",
"Colonel",
"Brigadier General",
"Major General",
"Lieutenant General",
"General",
"General of the Army",
"United States General"
}
function removeHexColor(text)
text = string.gsub(text,"#%x%x%x%x%x%x", "")
return text
end
function getPlayerAdditionalRank(plr,rank)
if getElementData(plr,"data:specialtext") then
for key, value in ipairs(getElementData(plr,"data:specialtext")) do
if ( value == rank ) or ( removeHexColor(value) == rank ) then
return true
end
end
end
end
function getPlayerFromPartialName(name)
local name = name and name:gsub("#%x%x%x%x%x%x", ""):lower() or nil
if name then
for _, player in ipairs(g...
Witam trace hp a w hudzie jest dalej 100%
[lua]function RGBToHex(red, green, blue, alpha)
if((red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255) or (alpha and (alpha < 0 or alpha > 255))) then
return nil
end
if(alpha) then
return string.format("#%.2X%.2X%.2X%.2X", red,green,blue,alpha)
else
return string.format("#%.2X%.2X%.2X", red,green,blue)
end
end
function roundedRectangle(x, y, w, h, color)
exports["blur"]:dxDrawBluredRectangle(x, y, w, h, color, false)
exports["blur"]:dxDrawBluredRectangle(x + 2, y - 1, w - 4, 1, color, false)
exports["blur"]:dxDrawBluredRectangle(x + 2, y + h, w - 4, 1, color, false)
exports["blur"]:dxDrawBluredRectangle(x - 1, y + 2, 1, h - 4, color, false)
exports["blur"]:dxDrawBluredRectangle(x + w, y + 2, 1, h - 4, color, false)
end
local screenW, screenH = guiGetScreenSize()
local sx, sy = guiGetScreenSize()
function kursorek(psx,psy,pssx,pssy,abx,aby)
if not isCursorShowing() then return end
cx,cy=getCursorPosition()
cx,cy=cx*sx,cy*sy
if cx >= psx and cx <= psx+pssx and cy >= psy and cy <= psy+pssy then
return true,cx,cy
else
return false
end
end
Witam mam taki problem, zrobi?em marker, kt?ry teleportuje do banku (Interior 1) ale kiedy zrobi?em marker powrotny na interior 0 (Los Santos) to ten marker nie pojawi? si? nawet w banku.
Prosz? o pomoc
Witam, dzi? zainstalowa?em PAWN'a, niby wszystko dobrze, otwieram go "Failed to set data for " ", okej otworzy?em jako administrator i zacz??em robi? jaki? tam ma?y skrypt na hp, kiedy chcia?em zapisa? co? takiego mi si? pojawi?o:
C:Usersuser47Desktopserwergamemodeshape.pwn(4) : fatal error 100: cannot read from file: "zcmd"
[ Dodano: 2019-08-02, 07:07 ]
W sumie pr?bowa?em co? zrobi? z hp, prosty skrypt zeby dawa?o hp, jeden raz si? uda?o a drugi raz pisze ?e "warning 203: symbol is never used"
[ Dodano: 2019-08-02, 07:08 ]
Plus, gdy uda?o mi si? jeden raz zrobi? te hp, chcia?em wejsc, wchodze i gdy chce da? komedne pisze " unknown command"
Witam, chcia?em zrobi? podmiank? admirala co? na typ offroad, doda?em mu lampy na dachu z monster trucka i zderzaki z patriota, jednak gdy exportuje ca?y pojazd nie pokazuje si? to, te cz??ci z innych aut
Czy da si? to jako? "doklei?" by dzia?a?o? Jestem nowy te? w te klocki.
A, i wszystko zapisuje jak ma by? admiral.dff