Siemanko! Siedzę na scenie MTA/SAMP od prawie 12 lat i jakoby te 12 lat temu serwery RPG czy RP miały jakiś sens tak teraz są totalnie bez żadnego sensu.
Do czego zmierzam?
Tworzą się serwery na GTA5 wiadomo postęp, świat wszystko idzie z czasem mamy 25 rok 21 wieku... ale gta 5 to monopol i monotonnia ostatnimi czasy.
Przychodzę do was z zapytaniem, jeśli chciałbym zrobić serwer Role Play z naprawdę super klimatem, takim od gracza dla gracza, że przychodzisz z roboty zmęczony a odpalę sobie XYZ RP i popykam chwilę... too.
NA MTA -
Co chciałbyś zobaczyć na takim serwerze aby on cię zachęcił?
NA SAMP-
Co chciałbyś zobaczyć na takim serwerze aby on cię zachęcił?
Z góry dzięki za wypowiedzi! Chętnie poczytam a potem pozbieram ekipę do dobrego projektu
Siem mam problem ogólnie w moich salonach pokazał się taki błąd
WARNING: @mix_salon_2c_info.lua:89: <min_mta_version> section in the meta.xml is incorrect or missing (expected at least client 1.3.0-9.04431 because function is being called outside certain events)
<min_mta_version>1.3.0-9.04431</min_mta_version>
mam dodane to w mete ale nadal mi się to wyświetla prosze o pomoc
Witam tak jak w temacie wyświetla mi się takie coś
ERROR: [vehicles][systems]ior_vehicles/server/vehicles_server.lua:494: call: failed to call 'or _stock_vehicles:saveStockVehicles' [string "?"]
ERROR: [vehicles][systems]ior_vehicles/server/vehicles_server.lua:203: call: failed to call 'or stock_vehicles:loadStockVehicles' [string "?"]
Witam mam taki problem, ?e pr?buj? od jakiego? czasu wgra? podmiank? na serwer, ale mi co? nie wychodzi. W grze po zrefreshowaniu skrypt?w wyskakuje takowy komunikat:
Na pocz?tku lutego RockstarGames oficjalnie zapowiedzia?o prace nad GTA 6. Tu? po tym do sieci zacz??a trafia? du?a ilo?? przeciek?w, przekazywa?y one nowe informacje na temat gry.
Niedawno RockstarGames zamie?ci?o w GTA 5 du?? ilo?? plakat?w Vice City, znajduje si? na nich data 7 sierpnia. Mo?e to sugerowa?, ?e wtedy poznamy wi?cej informacji na temat GTA VI.
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...
Witam, pisz? ten post dla tego ?e mam problem z bankomatami z paczki Navaxa RPG 2.0. Gdy wchodz? w bankomat jest wszystko git, gdy klikam wyp?ata/wp?ata po czym na pole gdzie mam wpisa? numerki itd. i klikam kwot?, kt?r? chc? wp?aci? to mi nic nie wyskakuje w tym polu. Pomo?e kto? rozwi?za? ten problem? Daj? kr?tki filmik jak to wygl?da: https://imgur.com/a/cFRE2sf
Witam,napisa?em kod na wyp?aty z frakcji,gdy wgrywam jest wszystko dobrze nie ma ?adnego faila. Ale gdy ju? wejd? do urz?du pr?buj? nacisn?? przycisk "odbierz"
wtedy po prostu klikam ale nic mi nie daje do banko,ani do tzw. "portfela"
po prostu przycisk nie dzia?a
PS: robi?em aby wyp?aty sz?y do banku
local text=createElement ('text')
setElementPosition(text,709.15,-117.29,4545.40+1.2)
setElementData(text,"name","Odbi?r Wyp?aty")
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 nill
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 odbierz (el,md)
local sid = getElementData (el,"player:sid)
local result=exports["pystories-db"]:dbGet("SELECT * FROM pystories_factions WHERE sid=?", sid)
if #result > 0 then
if Frakcje[result[1].code] then
if getElementData(el,"player:workinjob") and get...
addEventHandler("onClientClick", root, function(btn, state)
if btn == "left" and state == "down" then
if isMouseInPosition(screenW * 0.5891, screenH * 0.6593, screenW * 0.1130, screenH * 0.0500) then
if guiGetVisible(lista) == true then
local selectedRow=guiGridListGetSelectedItem(lista) or -1
if selectedRow < 0 then return end
local vehicles=getElementsWithinColShape(cuboid,"vehicle")
if isElementWithinColShape(vehicles, cuboid) then
outputChatBox("Miejsce spawnu jest zaj?te, spr?buj po?niej!")
return
end
local id=guiGridListGetItemText(lista, selectedRow, 6)
guiGridListRemoveRow(lista, selectedRow)
draw_on=false
guiSetVisible(lista,false)
showCursor(false, false)
triggerServerEvent("spawnuj", localPlayer, tonumber(id))
toggleControl("fire", true)
end
end
end
end)
[/lua]
server:
[lua]
addEvent("spawnuj", true)
addEventHandler("spawnuj", root, function(id)
if not id then return end
local spawn=createVehicle(id, -1573.09424, 705.59589, -5.64320, 0,0,90, "SAPD_")
if spawn then
outputChatBox("Done!", el)
end
end)
[/lua]
Witam, wzoruj?c si? na Pylu chce odtworzy? przechowywalnie pojazd?w, tylko mam problem zwi?zany z pobieraniem informacji o danym poje?dzie. Do tej pory zrobi?em tak:
Witam mam co? nie tak z modelem spawn market station z gtao a jest to nim ze wgra?em na serwer te trzy rzeczy modele do folderu model a mape do folderu map uruchomi?em serwer i wystartowa?em te trzy rzeczy poprzez "p" no i si? okaza?o ?e jest dziura obok budynku
Witam kto? na moim serwerze spami takim czym? w consoli
[20-04-03 15:37] HTTP: Ignoring login attempt for user '***** Ci matke asdasdasd ***** Ci matke asdasdasd ***** Ci matke asdasdasd ***** Ci matke asdasdasd ***** Ci matke asdasdasd ***** Ci matke asdasdasd ***** Ci matke asdasdasd ***** Ci matke asdasdasd ***** Ci matke asdasdasd ***** Ci matke asdasdasd ***** Ci matke asdasdasd ***** Ci matke asdasdasd ***** Ci matke asdasdasd ***** Ci matke asdasdasd ***** Ci matke asdasdasd ***** Ci matke asdasdasd ***** Ci matke asdasdasd ***** Ci matke asdasdasd' from 83.26.183.138
[20-03-31 21:39] HTTP: Failed login attempt for user 'Machin' from 77.111.247.59
Kto? wie jak mu przeszkodzi? i co to oznacza w og?le ?
pystories-core/s_chats.lua:162: attempt to concatenate a boolean value
Taki o to b?ad wyskakuje kedy chce napisac jako w?asciciel a taki jako gracz / gracz premium:
pystories-core/s_chats.lua:156: attempt to concatenate a boolean value
kod:
ss na imgur
:https://imgur.com/a/vEm2FZa
[ Dodano : 2020-03-31, 13:30 ]
local id=getElementData(source,"id")
local level = tonumber(getElementData(source, "player:level"))
local p_level = tonumber(getElementData(source, "premium:level"))
if not level and not p_level then
outputChatBox("#FFFFFF[#FFFFFF"..getElementData(source,"id").."#FFFFFF] #FFFFFF"..getPlayerName(source):gsub("#%x%x%x%x%x%x","")..":#FFFFFF "..msg:gsub("#%x%x%x%x%x%x",""), v, _, _, _, true)
elseif level == 1 then
cancelEvent()
outputChatBox("#FFFFFF[#01bf34"..getElementData(source,"id").."#FFFFFF] #FFFFFF"..getPlayerName(source):gsub("#%x%x%x%x%x%x","")..":#FFFFFF "..msg:gsub("#%x%x%x%x%x%x",""), v, _, _, _, true)
elseif level == 2 then
cancelEvent()
outputChatBox("#FFFFFF[#ff0000"..getElementData(source,"id").."#FFFFFF] #FFFFFF"..getPlayerName(source):gsub("#%x%x%x%x%x%x","")..":#FFFFFF "..msg:gsub("#%x%x%x%x%x%x",""), v, _, _, _, true)
elseif ...
Witam Serdecznie prosz? o problem ze skryptem es-ww m.n.i sygnatury orientuje si? ?e jest to problem ze nie ma strony ww ale licz? na wasz? pomoc nie jestem jeszcze tak zawansowany aby zamieni? to
Witam serdecznie pisz? do was z pro?b? o pomoc w skryptach Mam problem z wieloma skryptami w gm Ems a mianowicie w ka?dym w debugscript wy?wietla si? "es-wodne_oddychanie/s_water.lua:9: Bad argument @ 'setPedStat' [Expected element at argument 1, got nil]" lub DXdrawText do ka?dego pliku jest inny napis po @'
oraz na docherty s? straszne spadki fps prosz? o pomoc w nagrod? dam
Zainstalowa?em voice chat na m?j serwer, s?abo s?ycha? na nim, prawie nic. S?ysza?em ?e najlepsze parametry na voice to: Server Voice Chat Quality [9]; Sample Rate: [32000Hz]; Bitrate [11600bps] tylko ?e za bardzo nie wiem jak to zrobi?. Za rozwi?zanie problemu dam Piwko
Kod nie trybi a ju? tyle g??wkowa?em
W mysql kolumna stworzona.
W debugu "attempt to perform arithmetic on a boolean value"
Cz??? kodu odpowiedzialna za b??d i wywala w miejscu:
maryha = tonumber(getElementData(gracz, "marihuana"))
-------------------------------------------------------
addEventHandler("onMarkerHit", getRootElement(), function(el,md)
if source == rozpraca then
if getElementType(el) == "vehicle" then return end
if getPedOccupiedVehicle(el) then return end
if getElementData(el,"player:job") then
triggerClientEvent(el, "createNotif",el,"Zako?„czono prac?™ zbierania marihuany!",3,"success")
removeElementData(el, "player:job")
triggerClientEvent(el, "usunmarkery",el,md)
toggleControl(el,"enter_exit", true)
else
if getElementData(el, "marihuana") == 30 then
triggerClientEvent(el, "createNotif",el,"Posiadasz limit marihuany przy sobie!n(30 g)",3,"error")
return
end
outputChatBox("Rozpocz?…?‚e?› prac?™ zbieracza marihuany aby j?… zako?„czy?‡ ponownie wejdĹş w marker.",el, 255,0,0)
outputChatBox("Pami?™taj, ĹĽe to nielegalna praca i policja moĹĽe Ci?™ z?‚apa?‡ w kaĹĽdej chwili!",el, 255,0,0)
outputChatBox("Aby sprzeda?‡ marihuane, ...
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
Witam mam oto taki kod i po wpisaniu komendy spr2 w db3 wyskakuje mi Table index is nil (Linijka liderwartosc[client] = 0) Prosze o pomoc. Stawiam Piwerko
local liderwartosc = {}
function sprawdzenie(player) local ranga = exports.ddsysgrup:getPlayerGroupRank(player)
if not liderwartosc[client] then
liderwartosc[client] = 0
end if ranga == "Founder" then
liderwartosc[client] = liderwartosc[client]+1
outputChatBox("dziala", player)
else liderwartosc[client] = liderwartosc[client]-1 return end
end
addCommandHandler("spr2", sprawdzenie)
local SQL = dbConnect("mysql", "dbname=db_.....;host=94.23.90.14", "db_.....","haslo","share=1")
local function connect()
-- w ponizszej linii uzupelnij dane autoryzacji
SQL = dbConnect("mysql", "dbname=db_.....;host=94.23.90.14", "db_.....","haslo","share=1")
if (not SQL) then
outputServerLog("BRAK POLACZENIA Z BAZA DANYCH!")
else
zapytanie("SET NAMES utf8;")
end
function pobierzTabeleWynikow(...)
local h=dbQuery(SQL,...)
if (not h) then
return nil
end
local rows = dbPoll(h, -1)
return rows
end
function pobierzWyniki(...)
local h=dbQuery(SQL,...)
if (not h) then
return nil
end
local rows = dbPoll(h, -1)
if not rows then return nil end
return rows[1]
end
function zapytanie(...)
local h=dbQuery(SQL,...)
local result,numrows=dbPoll(h,-1)
return numrows
en...
zrobi?em interakcje pojazdu gdy wsiadam a chcialbym zapali? silnik wyskakuje mi error clien(m?j nick) triggered serverside event onClientUseCarInteractionPanel, but event is
not added serverside.
Witam tak jak w temacie
mam problemik z skryptem startall autorstwa Jarsa132
oto kod
function startTheResource ( thePlayer, command, resourceName )
if ( resourceName ) then
local resource = "admin-d", "community-walizka" ( resourceName )
local start = startResource ( resource )
if ( start ) then
end
addCommandHandler ( "resource-start", startTheResource )
Za pomoc piwko
(to nie s? wszystkie skrypty by?cie nie wiedzieli jakie mamy skrypty, te co tu s? to s? tylko 2 kt?re s? takie o )
if source == wm.submit then
local selectedRow=guiGridListGetSelectedItem(wm.gridlist) or -1 if selectedRow < 0 then return end
local vehicles=getElementsWithinColShape(przechowalnie[ID_PRZECHO_DO_JAKIEJ_WLAZLES][1],"vehicle")
if #vehicles > 0 then outputChatBox("Miejsce odbioru pojazd?w jest zaj?te!", 255,0,0)
return end
Mam co? nie tak z syrenami Dzwi?kowymi do OSP nie wiem dlaczego nie dzia?a
o to kodzik
[lua]
addEvent("broadcastSound3D", true)
addEventHandler("broadcastSound3D", root, function(sound,range,minrange, bliskiKomunikat, dalekiKomunikat)
local el=source
if getElementDimension(localPlayer)~=getElementDimension(el) then return end
if getElementInterior(localPlayer)~=getElementInterior(el) then return end
local x,y,z=getElementPosition(localPlayer)
local x2,y2,z2=getElementPosition(el)
local dist=getDistanceBetweenPoints3D(x,y,z,x2,y2,z2)
if dist<range*2 then
if bliskiKomunikat and minrange and dist<minrange then
triggerEvent("onCaptionedEvent", root, bliskiKomunikat, 10)
outputChatBox(" * " .. bliskiKomunikat)
elseif dalekiKomunikat and dist<range then
triggerEvent("onCaptionedEvent", root, dalekiKomunikat, 10)
outputChatBox(" * " .. dalekiKomunikat)
end
local s=playSound3D(sound, x2,y2,z2)
setSoundMinDistance(s, minrange or 5)
setSoundMaxDistance(s, range)
end
end)
local soundSwitch_lu=getTickCount()-2000
local function soundSwitch()
outputDebugString("sw0")
if getTickCount()-soundSwitch_lu<2000 then return end
soundSwitch_lu=getTickCount()
local pojazd=getPedOccupiedVehicle(localPlayer)
outputDeb...
Tak jak w temacie co? nie tak z pr?dko?ci? chcia?em do jednostki po?cigowej w lspd da? moc 320km/h ale gdy doda?em to jest tylko 200 nie wiem dlaczego powie kto? mi dlaczego ?
Problem jest nast?puj?cy, gdy jaki? gracz wchodzi na serwer to w logach wy?wietla b??d: [18-07-19 14] ERROR: Client (nick gracza) triggered serverside event onPlayerLoaded, but event is not added serverside
function onClickEdit if btn == "left" and state == "down" then --[[ Linia 64 ]]--
if guiGetText(login) == "Wprowad? login" and mouse(0.34, 0.39, 0.16, 0.04) then
guiSetText(login, "")
elseif guiGetText(password) == "Wprowad? has?o" and mouse(0.34, 0.44, 0.16, 0.04) then
guiSetText(password, "")
elseif guiGetText(retypepassword) == "Powt?rz has?o" and mouse(0.34, 0.55, 0.16, 0.04) then
guiSetText(retypepassword, "") end
end
end
Czy kto? mo?e mi powiedzie?, dlaczego debugscript mi wypluwa taki b??d?:
rt-login: 64: '(' expected near 'if'
Witam, mam taki problem robie duty admin i pokazuje b??d ze niby nie mam w??czonego ar-db a mam.
kod
function duty(plr) local q1 = exports["ar:db"]:query("SELECT * FROM an-admin WHERE serial=? AND nick=?",getPlayerSerial(plr), getPlayerName(plr))
if #q1 < 1 then outputChatBox("Nie posiadasz uprawnie?.", plr) return end
outputChatBox("Rozpocze?e?(/a?) slu?be w ekipie serwerowej.", plr) outputChatBox("Pod /cmd znajdziesz wszystkie wa?ne informacje.", plr) giveWeapon( plr, 22, 99) end
addCommandHandler("duty", duty)
[ Dodano: 2018-05-17, 19:35 ]
Robi? to po stronie servera kod z connect mysql
local db = {}
function db.init() db.connect = dbConnect( "mysql", "tutaj dane nie poczebne", "share=1" )
if db.connect then
outputDebugString("[MYSQL]Po?czono z MySQL poprawnie!")
else outputDebugString("[MYSQL]NIE PO?CZONO Z MySQL!!! (ERR_01)", 1) end
end
addEventHandler("onResourceStart", resourceRoot, db.init)
function query(...)
if not {...} then return false end
local q = dbQuery(db.connect, ...)
return dbPoll(q, -1) end
Witam ot?? mam pewien problem z Freeroam poniewa? gdy kto? zginie to nie pojawia si? mapa a jak gracz sobie t? mape uruchomi i kliknie gdzie? aby si? zrespi? to niestety ale wyskakuje czarny ekran i pisze "You will be respawned to your specified location" a gdy testowa?em na polskifreeroam to wszystko dzia?a lecz gdy ubiera si? CJ'a w np. czapk? i klika si? remove to ta czapka nie znika prosze o porady