Witam mam problem gdy wykonam prace nie wyp?aca mi kasy , pr?bowa?em szuka?em na forum rozwi?zania ale nie uda?o si?.
Kod z strony serwera
[code]
addEvent("givePlayerMoney", true)
addEventHandler("givePlayerMoney", resourceRoot, function(m)
if tonumber(m) then
givePlayerMoney(client, m)
end
end)
addEventHandler("onMarkerHit", wejscie, function(el, md)
if isPedInVehicle(el) then return end
setElementDimension(el, 0)
setElementPosition(el, -2073.52,275.39,36.35)
end)
addEventHandler("onMarkerHit", wyjscie, function(el, md)
if isPedInVehicle(el) then return end
setElementDimension(el, 0)
setElementPosition(el, -2040.26,356.36,67.25)
end)
[/code]
Kod z strony clienta
[code]
local praca = createMarker(-2049.55,343.55,67.29-0.8, "cylinder", 2.0, 255, 0, 0, 0)
addEventHandler("onClientMarkerHit", praca, function(el, md)
if not md or getElementType(el) ~= "player" then return end
if el ~= localPlayer then return end
outputChatBox("*...
[11]
[11] Ban list
[11] --------
[11] Loaded: samp.ban
[11]
[11]
[11] Filterscripts
[11] ---------------
[11] Loaded 0 filterscripts.
[11] [debug] Run time error 19: "File or function is not found"
[11] [debug] mysql_init
[11] [debug] mysql_store_result
[11] [debug] mysql_fetch_row
[11] [debug] mysql_free_result
[11] [debug] Run time error 19: "File or function is not found"
[11] [debug] mysql_init
[11] [debug] mysql_store_...
Witam na moim serwerze na panel logowania nie idzie sie zarejestrowac. Wiem w czym jest problem: addAcount. Jak dodac uprawnienia addAcount da serwera?
Problem polega na tym ?e jak chc? uzy? strony mta.dzek.eu to wyskakuje bia?a stona na kt?rej jest napisane:
''Strict Standards: Only variables should be passed by reference in /usr/home/dzek/domains/mta.dzek.eu/public_html/admin/plugins/uploadfile.class.php on line 38 Strict Standards: Only variables should be passed by reference in /usr/home/dzek/domains/mta.dzek.eu/public_html/admin/plugins/uploadfile.class.php on line 38 Warning: require_once(): open_basedir restriction in effect. File(/usr/home/dzek/lib/PEAR/PEAR.php) is not within the allowed path(s): (/usr/home/dzek/domains/mta.dzek.eu/public_html:/tmp:/usr/local/share/pear) in /usr/home/dzek/domains/mta.dzek.eu/public_html/zip.php on line 28 Warning: require_once(/usr/home/dzek/lib/PEAR/PEAR.php): failed to open stream: Operation not permitted in /usr/home/dzek/domains/mta.dzek.eu/public_html/zip.php on line 28 Fatal error: require_once(): Failed opening required '/home/dzek/lib/PEAR/PEAR.php' (include_path='.:/usr/local/share/pear') in /usr/home/dzek/domains/mta.dzek.eu/public_html/zip.php on line 28''[size=9][/size][/code]
6. Pisz?c pro?b? o pomoc w uruchomieniu danego gamemoda, musisz poda? logi serwera oraz opisa? dany problem.
Witajcie niewiedzia?em czy to dobry temat ale m?j problem jest nastepujacy
Pr?bowalem odpali? wiele gamemod?w na moim serwerze kazdy z baza danych chyba
zawsze wyskakuje mi ten sam error
Oczywiscie chce odpali? serwer na wersji gry v0.3.7-R2, (C)2005-2015 SA-MP Team
chcia?bym odpali? ten o to gamemode "[DM] GPPv2 "
Logi :
[scroll] SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team
[16]
[16] Server Plugins
[16] --------------
[16] Loading plugin: streamer
[16] Failed (plugins/streamer: cannot open shared object file: No such file or directory)
[16] Loading plugin: mysql
[16] Failed (plugins/mysql: cannot open shared object file: No such file or directory)
[16] Loading plugin: whirlpool
[16] Failed (plugins/whirlpool: cannot open shared object file: No such file or directory)
[16] Loading plugin: sscanf
[16] Failed (plugins/sscanf: cannot open shared object file: No such file or directory)
[16] Loaded 0 plugins.
Witam pobralem sobie dzis z GTAO nowy hud na serwer.
niestety, nie chce dzialac lub ja roibe cos zle.
robilem tak :
1) pobralem sobie hud'a z gtao.pl
2) wypakowalem i wzialem tylko folder
3) wylaczylem serwa
4) wlozylem folder z tego hudu na serwer w server>mods>deathmath>resources
5) wlaczylem serwer
6) wchodze w panel adma szukam 'hud' i nie wyskakuje mi .
co robic?
to ten hud: http://www.gtao.pl/%3Cfon...ghlight=#648278
za pomoc daje zimne
Prosze O Odpowiec Postawie Zimne Piwo Jak Powiedz? Czy P?jdzie albo jakie gry p?jd? w CSGO na Ustawienia Srednich 50-40fps spadaj?ce do 10fps na max 5 sekund
Cze?? mam w??sny serwer i mam problem w tym i? nie dostaje kasy gdy w skocze wjade w punkt prosze o pomoc. O dok?adne wyt?umaczenie co i gdzie w co wej??
Mam skrypt na barierki tylko jest ma?y problem jak je postawie widz? je tylko ja mam to po stronie clinet i nie pokazuje innej osobie jak nawet dam 2 clinet i server barierka si? pokazuje ale jak w ni? wjade autem to 1 si? rozwala a druga ta nie widzalna dla 2 osoby zostaje
dam kod Clinet:
[lua]
function barier()
plr = getLocalPlayer()
if getElementModel(plr) ~= 280 then return end
if getPedOccupiedVehicle(plr) then return end
local x,y,z = getElementPosition(plr)
local rx,ry,rz = getElementRotation(plr)
setElementData(barierka, "isBarierka2", getPlayerName(plr))
end
addCommandHandler("ub",barier )
function barier ()
if getElementModel(plr) ~= 280 then return end
for i,v in ipairs(getElementsByType("object", resourceRoot)) do
if not getElementData(v, "isBarierka") then return end
if getElementData(v, "isBarierka2") == getPlayerName(plr) then
destroyElement(v)
end
end
end
addCommandHandler("usb", barier)
/////////////////////////////////////////
a tu po stronie server
Kod:
////////////////////////////////////
function barier(plr)
if getElementModel(plr) ~=...
Cze?? i czo?em, kluski z roso?em (hihiih)
przechodz?c do sedna sprawy, chodzi mi tutaj o to ?e pobra?em sobie z internetu pewien skrypt na logowanie i lekko go przerobi?em. Dawniej t?o by?o bia?e, a ja zamieni?em funkcj? dxDrawRectangle na dxDrawImage, problem w tym, ?e teraz daje mnie na mojego spawna i wy?wietla si? z boku menu z logowaniem, ale nie ma w tle mojego obrazka :C
Witam, mam jeden problem nie tworzy mi si? marker (oczywi?cie element dat? mam nadan?, po stronie serwera). B??d wywala w eventHandlerze w 2 argumencie ( Expected element at argument 1, got nil )
function stworzMarker()
if getElementData(localPlayer, "sejf") == true then
markersejf = createMarker(20, -3, 3.8, "arrow", 1, 255, 0, 0, 255) end
end
function sejf(el)
if el ~= localPlayer then return end
guiSetVisible(okno,true) showCursor(true) rnd = math.random(1, #kody) setElementData(localPlayer, "kod", kody[rnd]) outputChatBox("Kod: "..rnd.."") outputChatBox("Oto panel sejfu. Musisz zgadn?? jeden z ci?g?w liczb, kt?ry jest obok na li?cie.") outputChatBox("W przypadku podania z?ego kodu, nie martw si?. Masz niesko?czono?? pr?b dop?ki ci? nie zabij?.") end
addEventHandler("onClientMarkerHit", markersejf, sejf)
Witam mam problem. Ustawi?em sobie przed funkcjami w skrypcie, ?eby mi nadawa?o elementDate na 5, no i gdy u?ywam przedmiotu to mi odejmuije i mam ilo?? przedmiotu r?wn? 4, ale gdy nast?pnym razem u?yje to ju? mi nie odejmuje -1 do ilo?ci.
function openPanel()
guiSetVisible(GUIEditor.staticimage[1], true)
showCursor(true)
end
addCommandHandler("pdp", openPanel)
function zamykamy()
if source == GUIEditor.label[1] then
guiSetVisible(GUIEditor.staticimage[1],false)
showCursor(false)
end
end
addEventHandler("onClientGUIClick", root, zamykamy)
function openPanel()
guiSetVisible(GUIEditor.staticimage[1], true)
showCursor(true)
end
addCommandHandler("pdp", openPanel)
function zamykamy()
if source == GUIEditor.label[1] then
guiSetVisible(GUIEditor.staticimage[1],false)
showCursor(false)
end
end
addEventHandler("onClientGUIClick", root, zamykamy)
[/lua]
w db3 mam cos takiego : http://i.imgur.com...
Hej.
Mam problem z logowaniem, poniewa? nie respi mnie na danych kordach, tylko respi mnie na punkcie 0,0,0 - sam ?rodek mapy (pod ziemi? i animacja jest ?e spadam)
Mam Problem poniewa? jak wchodze na serwer to mam 0 poten zarabiam np 150
wychodz? i zapisuj? si? 150 wchodze i mam 150 poten znowu zarabiam i mam 300 potem wychodze z serwer i wchodze i mam znowu 150
addEventHandler ( "onPlayerQuit", root, function ()
if polaczenie then
plr = source
konto = getPlayerAccount ( plr )
dbExec ( polaczenie, "CREATE TABLE IF NOT EXISTS OP_Players ( login INTEGER, skin INTEGER, portfel INTEGER, serial INTEGER )" )
local zapytanie = dbQuery ( polaczenie, "SELECT login FROM OP_Players WHERE login = ?", getPlayerName ( plr ) )
local wynik = dbPoll ( zapytanie, -1 )
dbFree ( zapytanie )
if #wynik == 0 then
dbQuery ( polaczenie, "INSERT INTO OP_Players ( login, portfel, skin, serial ) VALUES ( ?,?,?,? )", getPlayerName ( plr ), getPlayerMoney ( plr ), getElementModel ( plr ), getPlayerSerial ( plr ) )
elseif #wynik == 1 then
dbQuery ( polaczenie, "UPDATE INTO OP_Players SET skin = '?', portfel = '?', serial = '?', WHERE login = ?", getElementModel ( plr ), getPlayerMoney ( plr ), getPlayerSerial ( plr ), getPlayerName ( plr ) )
end
end
end)
addEventHandler ( "onPlayerLogin", root, function ( _, konto )
if polaczenie then
plr = source
local zapis = dbQuery ( polaczenie, "SELECT * FROM OP_Players WHERE login = ?", getPlaye...
function addVip(player, cmd, gracz)
if (gracz) then if (ifObjectInACLGroup("user.".. getAccountName(getPlayerAccount(player)), aclGetGroup("RCON"))) then
aclGroupAddObject("Premium", "user." .. getAccountName(getPlayerAccount(gracz))) outputChatBox("Da?e? vipa graczowi " .. gracz .. " na 3 dni.", player)
else outputChatBox("Nie masz uprawnie? do tej komendy.", player) end
outputChatBox("Z?a sk?adnia, u?yj /dajvip [gracz]" end
end
addCommandHandler("dajvip", addVip) setTimer (addVip, 259200000, 1)
1. Nie dodaje do ACL.
2. Czy b?dzie dodawa?o do ACL a nast?pnie po 3 dniach usuwa?o ?
mam taki kod po stronie serwera, potrzebuje czego? takiego by, jesli gracz jest zdrowy domniemany lekarz nie mogl go uleczyc, jak to zrobi? ? chyba nalezy uzyc else a co dalej ?
addEvent("Ulecz", true) addEventHandler("Ulecz", root, function(gracz)
if not gracz then return end
setElementHealth(gracz, 100) takePlayerMoney(gracz, 50) givePlayerMoney(client, 50)
outputChatBox("Zosta?e? uleczony przez lekarza, op?ata pobrana.", gracz) end )
Oprocz tego potrzebuje cos takiego, ze jesli gracz nie ma pieniedzy nie mozemy go uleczy? i chcialbym aby leczenie dzialalo tylko lokalnie w obr?bie kilku metrow.
Mam taki problem, pr?bowa?em go rozwi?za? na wiele sposob?w i nic. Wog?le nie wczytuje mi wyniku randomowego kt?ry pobierany jest przez tablice. Nie ma ?adnych DB3.
Mam problem poniewa? mam
[code]* Nie jeste? zatrudniony w tym warsztacie.[/code]
A mam skin mechanika [50] i jestem w acl Mechanik-Sf
Code Client
[lua]--[[
Resource: OURGame
Developers: Split <[email protected]>
Copyright <[email protected]> 2015-2016
You have no right to use this code without my permission.
]]
Witam robi?c skrypt w GUI napotka?o mnie kilka problem?w z get i setElementDatami. Wog?le ich nie wczytuje. I tak?e chcia?bym zrobi? tak aby przy niezaznaczonym gridLi?cie przycisk Zatrudnij nie dzia?a?. Pomo?ecie ?
DB3:
w linijce 30 Bad Argument @ 'getElementData' [Expected element at argument 1, got string 'left'] [DUP x3]
w linijce 31 Bad argument @ 'setElementData' [Expected element at argument 1, got string 'left'] [DUP x3]
w linijce 41 Bad argument @ 'getElementData' [Expected element at argument 1, got string 'left']
function otworzGUI(el)
if el ~= localPlayer then return end
guiSetVisible(okno, true)
showCursor(true)
end
addEventHandler("onClientMarkerHit", markerup, otworzGUI)
Witam robi?em sobie api sms zrobi?em cale i mi nie dzia?a dam wam kod mo?e komu? uda si? mi pom?c mianowicie podaj? poprawny kod wyskakuje ,?e jest bl?dny
Witam pomocy nie wiem czemu nie dzia?a . Wgra?em kawa?ek kodu od mlodyasnygo i markery mi znikly i opisu na aucie dalej niema.
c-side
[lua]
function finishJob()
if jobMarker and isElement(jobMarker) then
destroyElement(jobMarker)
jobMarker = nil
end
if jobBlip and isElement(jobBlip) then
destroyElement(jobBlip)
jobBlip = nil
end
end
function hideNextPoint(el, md)
if el ~= localPlayer or not md then return end
if not getPedOccupiedVehicle(el) then return end
local pojazd = getPedOccupiedVehicle(el)
if not getElementData(pojazd, "pojazd_smieci") then setElementData(pojazd, "pojazd_smieci", 100)
end
if getElementData(pojazd, "pojazd_smieci") > 100 then
outputChatBox("* Posiadasz 100% ropy, odwie? je.")
return
end
local smieci = getElementData(pojazd, "pojazd_smieci") + math.random(10, 23)
addEventHandler("onClientMarkerHit", jobOdbieranie, function(el, md)
if not md or getElementType(el) ~= "player" then return end if el ~= localPlayer then return end if not getPedOccupiedVehicle(el) then return end
local pojazd = getPedOccupiedVehicle(el)
if getElementData(pojazd, "pojazd_smieci") and tonumber(60) <= getElementData(pojazd, "pojazd_smieci") then
smieci = getElementData(pojazd, "pojazd_smieci") * 0.5
setElementData(pojazd, "pojazd_smieci", 0) triggerServerEvent("giveMoney", el, smieci, 1) setElementData(pojazd, "pojazd_opis", "Paliwo: 0%")
else outputChatBox("* Nie posiadasz min. 80% ropy") end
end)
for i,v in ipairs(punktyTankowania) do
zpwp_marker = createMarker(v[1], v[2], v[3]-1.0, "cylinder", 4, 255, 255, 255, 0)
setElementData(zpwp_marker, "stacja_benzynowa", true)
end
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, "zrespilGracz") then
outputChatBox("praca w trakcie poprawek", el)
return
end
if not md or getElementType(el) ~= "player" or getPedOccupiedVehicle(el) then return end
local x,y,z = getElementPosition(el)
local bus = createVehicle(437, x,y,z,0.0, 360.0, 269.9)
addEvent("STOPJobBus", true)
addEventHandler("STOPJobBus", resourceRoot, function()
local pojazd = getPedOccupiedVehicle(localPlayer)
if pojazd then
destroyElement(pojazd)
end
end)