Witam. Przeinstalowa?em sobie MTA i teraz jak pr?buje doda? panel admina w pliku acl to po uruchomieniu lokalnego serwera on z tego pliku znika. Przedtem jak dodawa?em funkcje odpowiedzialn? za panel to tam zawsze by?a, a teraz co? nie chce. Mo?e kto? wie o co z tym chodzi?
Siemam mam problem jak wchodz? w marker nie rozpoczyna si? praca za pom?c postawie piwo
Client:
[lua]addEventHandler("onClientMarkerHit",resourceRoot,function(el,dim)
if el~=localPlayer and dim then return end
if getElementType(el) ~= "player" then return end
if getPedOccupiedVehicle(el) then return end
if getElementData(localPlayer,"player:license:pjC") ~= 1 then
exports.noti:showBox("warning", "Aby tu pracowa? potrzebujesz prawo jazdy kategorii C.")
return
end
end)[/lua]
Server:
[lua]addEventHandler("onMarkerHit", m, function(el,dim)
if getElementType(el) ~= "player" and dim then
if getElementData(el,"player:job") then
outputChatBox("* Ju? posiadasz aktywn? prac?: "..getElementData(el,"player:job"),el,255,0,0)
return
end
local veh=createVehicle(getVehicleModelFromName("Benson"), -1755.09, 951.63, 24.74, 359.4, 359.9, 270.0)
setElementData(veh,"vehicle:desc","Praca Kuriera")
setElementData(veh,"temporary", true)
setElementData(veh,"spawnedBy", el)
setElementData(veh,"vehicle:mileage",0)
setElementData(veh,"vehicle:fuel",120)
warpPedIntoVehicle(el,veh)
setElementData(el,"playerr","Kurier")
triggerClientEvent(el, "benson:startJOB",...
Witam ! M?j znajomy ma problem z wej?ciem na jaki kolwiek serwer. Wyskakuje b?ad Ten mod nie jest zainstalowany (deatmatch) reinstall nic nie da?. Za pomoc
Witam , mam problem z rangami we Frakcjach , pr?buje nada? sobie Lidera SAPD daje rang? 99 bo niby to lider i wchodze na s?u?b? a tu rozpocz??e? prac? jako policjant a jak chc? i?? do zarz?dzania to pokazuje brak uprawnie? , nie wiem czy to ten dzia? ale pliski pom??cie to rozwi?za? bo nw o co chodzi
Mam problem z prac? poniewa? jak ustawiam zarobek wi?kszy od 500$ to nie przesy?a pieni?dzy na bankomat (dodam ze mam iyw), chcia?em prosi? o pomoc kolegi to kaza? wpisa? /debugscript 3 wpisuje a tam ze nie wyszuka?o tej komendy, a on do mnie : doda?e? si? do acl? a ja ?e tak i nie dzia?a ;d Ani mnie nie doda?o do acl ani nic, prosze o pomoc i prosz? wyt?umaczy? krok po kroku
[ Dodano: 2018-06-09, 13:19 ]
Dobra, z dodaniem si? do acl ogarn??em bo ogrp core blokowa?o, teraz pozosta? problem pracy ;d
Chcia?em podj?? si? edytowanie i podpi?cie its your world, fajnie wszystko pi?knie zedytowa?em DB2 Ogrpg - db tak jak pokazuj? poradniki na youtube, poczym wgra?em wszystkie pliki na ftp i potem wrzucam baze na mysql i wyskakuje mi taki b??d po 30 minutach wgrywania bazy...
mam problem wszystko dobrze robi? i nie mog? si? po?onczy?
[lua]--[[
Resource: OURGame v2
Developers: Split <[email protected]>
You have no right to use this code without my permission.
(c) 2015 <[email protected]>. All rights reserved.
]]
-- Functions
function dbSet(...)
if not {...} then return end
local stringe=dbPrepareString(DBHandler,...)
local query=dbExec(DBHandler, stringe)
return query
end
function dbGet(...)
if not {...} then return end
local stringe=dbPrepareString(DBHandler,...)
local query=dbQuery(DBHandler, stringe)
local result,num_affected_rows, last_insert_id =dbPoll(query, -1)
return result
end
addEventHandler("onResourceStart", resourceRoot, function()
DBHandler=dbConnect("mysql", "dbname="..DBName..";host="..DBHost.."", DBUser, DBPass, "share=1;autoreconnect=1")
if DBHandler then
outputDebugString("* Po??czono pomy?lnie! (MySQL)")
dbSet("SET NAMES utf8")
else
outputDebugString("* Brak po??czenia! (MySQL)")
end
end)
local SQL_LOGIN="xxx"
local SQL_PASSWD="xxx"
local SQL_DB="xxx"
local SQL_HOST="xxx"
local SQL_PORT=3306
Cze??. Mam taki problem z kodem mianowicie zrobi?em tak, aby nie mo?na by?o wsi??? do pojazdu gdy si? nie ma prawa jazdy (r?wnie? zrobi?em ?eby wyrzuca?o z pojazdu jak kto? jakim? cudem wsi?dzie). Ale gdzie? pope?ni?em b??d i podczas pr?by wej?cia do pojazdu jako pasa?er bez prawka na G jest to nie mo?liwe. Prosz? o pomoc, dam piwo i repk?!
[lua]addEventHandler("onClientVehicleEnter",getRootElement(),
function (player,seat)
if player ~= localPlayer then return end
if seat ~= 0 then return end
if getElementData(localPlayer, "VehSchool") == source then return end
if getElementData(source, "OwnerSchool") then
if getElementData(source, "OwnerSchool") ~= player then
setPedControlState(player, "enter_exit", true )
outputChatBox("To nie jest tw?j pojazd!",255,64,0,true)
return
end
end
for _,src in pairs(id_Lic) do
if getElementModel(source) == src[1] then
if getElementData(player, src[2]) ~= true then
outputChatBox("Nie posiadasz uprawnie? dla tej kategorii pojazdu!",255,64,0,true)
setTimer(function()
setPedControlState(player, "enter_exit", true )
end,50,10)
end
end
end
end
)
addEventHandler("onVehicleStartEnter",getRootElement(),
function (player,seat, jack, door)
if getElementData(player, "VehSchool") == sourc...
Siema pod??czy?em paczk? RPG w FTP i wgra?em SQL do PHPMYADMIN po zarejestrowaniu si? pokazuj si? ?e zosta?em zarejsetrowany a przy logowaniu jest: https://imgur.com/hTx8K2l
Cze??, jak dzisiaj chcia?em zapisa? map? to si? nie da?o i wyskoczy? error:
Niczego nie zapisywa?em/przesy?a?em teraz, a nie chc? straci? 4 godzin pracy :v
Licz? na pomoc!!
Robie sw?j z serwer z koleg? i mam pewien problem, ot?? gdy gracz wyjmuje auto z przechowywalnij to one automatycznie znika i usuwa i nie ma go nadal w przecho. Prosz? o pomoc !
Witam!
Mam problem, ot?? z rana jeszcze ?miga?em sobie na map editorze i robi?em mapki, a teraz jak chc? odpali? map editora to mi wyskakuj? taki b??d w konsoli :
==================================================================
= Multi Theft Auto: San Andreas v1.5.5
==================================================================
= Server name : Map Editor Server
= Server IP address: auto
= Server port : 22010
=
= Log file : ..rver/mods/deathmatch/logs/editor_server.log
= Maximum players : 1
= HTTP port : 22011
= Voice Chat : Disabled
= Bandwidth saving : None
==================================================================
[2017-12-02 18:36] ERROR: Error parsing editor_acl.xml - Line 0: Error document empty.
[2017-12-02 18:36] Server stopped!
Czesc, tak jak w temacie - nie mog? odda? pojazdu do przecho, w DB3 pisze mi:
[spoiler][color=red]ERROR: Przecho/s_parking.lua:40: attempt to index field '?' (a nil value)[/color][/spoiler]
Mam problem, poniewa? pr?buj? u?y? funkcji executeBrowserJavascript wraz z innerHTML, ale strona si? wy?wietla natomiast nie przekazuje nic do spana i dalej pozostaje pusty. Tutaj podaj? kod, co jest nie tak? ;/
Je?li z?y temat do przepraszam ale nie mog? doda? si? do admina wchodz? na m?j serwer wpisuje /register i has?o i podem /login i has?o i podem wchodz? na serwer project i zamiast console wpisuje nick m?j i daje restart i wchodz? na m?j serwer i wpisuje /login has?o do nie dzia?a nic nie dzia?? dam logi.
<!-- UWAGA: Wylacz serwer przed edycja tego pliku! -->
<!-- WARNING: Stop the server before editing this file! -->
<acl>
<group name="Everyone">
<acl name="Default"></acl>
<object name="user.*"></object>
<object name="resource.*"></object>
</group>
<group name="Moderator">
<acl name="Moderator"></acl>
<object name="resource.mapcycler"></object>
<object name="resource.mapmanager"></object>
<object name="resource.resourcemanager"></object>
<object name="resource.votemanager"></object>
<object name="user.tu m?j nick by?"></object>
</group>
<group name="SuperModerator">
<acl name="Moderator"></acl>
<acl name="SuperModerator"></acl>
</group>
<group name="Admin">
<acl name="Moderator"></a...
Nie mog? wej?? na sw?j serwer lokalny, gdy wchodz? nic si? nie chce pobra? a po chwili mnie roz??cza i wyskakuje taki b??d: https://i.imgur.com/n3Nl6nK.png
Nigdy wcze?niej tak nie mia?em.
Gamemode kt?ry jest zainstalowany na serwerze to DayZ lecz na standardowym "play" r?wnie? nie chce mi pobiera? plik?w.
Odinstalowa?em ju? nawet gta i mta ale to nic nie da?o, przed tym wyskakiwa? inny b??d ale nie pami?tam jaki.
ElO!
mam gamemode Future City Stories 2.0 i mam pewien problem.
Chodzi o premium i rozpocz?cie pracy jako tuner.
W bazie danych klikam na `ogrpg_users`szukam gracza i mam tam tak? tabelke jak premiumdate. Ustawiam tam np. miesi?c do przodu. I nic si? nie dzieje , jak nie mia?em premium tak nie mam.
Druga sprawa Jak mog? zrobi? prac? tunera poniewa? zrobi?em w urz?dzie mo?liwo?? zatrudnienia si? w pracy , ale gdy wchodze ?eby przebra? si? w str?j tunera wyskakuje ?e nie jestem zatrudniony.
Prosz? o pomoc w razie potrzeby jaki? screen?w czy co? prosz? pisa?.
function bramao (thePlayer)
if getElementData(thePlayer,'player:duty') and getElementData(thePlayer,'player:duty')=='PSP' then
moveObject ( brama1, 2000, -2102.099,-38, 32.3)
end
end
addCommandHandler("o",bramao)
function bramaz (thePlayer)
if getElementData(thePlayer,'player:duty') and getElementData(thePlayer,'player:duty')=='PSP' then
moveObject ( brama1, 2000, -2102.099,-38, 36.299)
end
end
addCommandHandler("z",bramaz)
function bramao (thePlayer)
if getElementData(thePlayer,'player:duty') and getElementData(thePlayer,'player:duty')=='PSP' then
moveObject ( brama2, 2000, -2102.100,-28.5, 32.3)
end
end
addCommandHandler("o",bramao)
function bramaz (thePlayer)
if getElementData(thePlayer,'player:duty') and getElementData(thePlayer,'player:duty')=='PSP' then
moveObject ( brama2, 2000, -2102.100,-28.5, 36.299)
end
end
addCommandHandler("z",bramaz)
function bramao (thePlayer)
if getElementData(thePlayer,'player:duty') and getElementData(thePlayer,'player:duty')=='PSP' then
moveObject ( brama3, 2000, -2102.100,-18.799, 32.3)
end
end
addCommandHandler("o",bramao)
Witam, chcia?bym aby?cie mi pomogli bo mam zrobion? map? i zapisa?em j? i patrze na nast?pny dzie? ze jej niema a mam ja w resources. Wie kto? o co chodzi?
[lua] local w,h = guiGetScreenSize()
local rowery = {[509]=true,[481]=false,[510]=true}
function gui()
local v = getPedOccupiedVehicle(localPlayer)
local x,y,z = getElementPosition(v)
r = getGroundPosition(x,y,z)
if getVehicleOverrideLights(v) ~= 2 then
w1 = "Zapal swiatla"
else
w1 = "Zgas swiatla"
end
local silnik = getVehicleEngineState(v)
if silnik == false then
w2 = "Zapal silnik"
else
w2 = "Zgas silnik"
end
w3 = "Wysad? pasa?er?w"
if isElementFrozen(v) then
w4 = "Spusc reczny"
else
w4 = "Zaciagnij reczny"
end
if getVehicleDoorOpenRatio(v,0) == 0 then
w5 = "Otworz maske"
else
w5 = "Zamknij maske"
end
if getVehicleDoorOpenRatio(v,1) == 0 then
w6 = "Otworz bagaznik"
else
w6 = "Zamknij bagaznik"
end
r1,r2,r3,r4,r5,r6 = 0.9,0.9,0.9,0.9,0.9,0.9
local wybor = getElementData(localPlayer,"wybor")
if wybor == 1 then
r1 = 1.5
elseif wybor == 2 then
r2 = 1.2
elseif wybor == 3 then
r3 = 1.2
elseif wybor == 4 then
r4 = 1.2
elseif wybor == 5 then
r5 = 1.2
elseif wybor == 6 then
r6 = 1.5
end
local sx,sy,sz = getElementVelocity(v)
local kmhs = math.ceil(((sx^2+sy^2+sz^2)^(0.5))*155)
if kmhs < 20 then
setElementData(localPlayer,"maxwybor",6...
Witam Mam Problem gdy? wgralem calego gamemode wraz z baza danych modules oraz po??czylem si? do Mysql nie moge sie zarejestrowac napoczatku myslalem ze to jakis blad hosta czy cos ale chyba jest inny blad wiec gdy zrobilem to na localnej bazie danych oraz serverze wszystko chodzilo tak jak powino nie wiem gdzie jest problem prosze was o pomoc , (nie wiem czy to prawidlowy dzial jesli nie to niech administracja go przeniesie to prawidlowego ps.przepraszam za b?edy )
errory jakie znalazlem w consoli
[2017-02-07 15] ERROR: mysql/connection.lua:342: attempt to call global 'mysql_escape_string' (a nil value)
[2017-02-07 15] ERROR: mysql/connection.lua:342: attempt to call global 'mysql_escape_string' (a nil value)
doda?em si? do frakcji mam lidera 99 ale napotka?em kolejny problem gdy? nie mog? zak?ada? skin?w frakcji a pojazdami frakcji normalnie mog? je?dzi? tu podaje link do kodu prosz? o szybk? odpowied? wklej.org/id/3010578
witam za?ozy?em server,wgra?em wszystko jest okey
ale jest problem jak klikam loguj to wyskakuje ?e "podany login nie istnieje w bazi?"
ale jak chc? sie zarejestrowa? to nic mi nie wyskakuj?
w konsoli na serverproject wyskakuj? mi komunikaty (daj? zdj)
Daj? zdj jeszcze skrypty ktory laczy baz? MNSBS (zdj)
Witam gdy wchodz? na serwer pisze mi takie cos: Server AC info: [Allowed client files: None] [Disabled AC: None] [Enabled SD: None]
B??d pobierania: Error downloading requested files. Couldn't connect to server. [Failed connect to 188.68.249.130:20029; No error] [admin/client/admin_clientjoiner.lua]