Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: nie
1281. Nie wypłaca za wykonanie pracy
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)

wejscie = createMarker (-2037.91,356.60,67.25+1, "arrow", 2, 255, 255, 0)
wyjscie = createMarker (-2073.74,273.49,36.35+1, "arrow", 2, 255, 255, 0)
setElementDimension(wyjscie, 0)

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)

local miejscaelektryk = {
{-2058.51,362.64,67.25},
{-2058.86,347.86,67.25},
{-2050.61,356.78,67.25},
{-2039.41,362.77,67.25},
{-2043.01,356.07,67.25},
{-2049.40,363.56,67.25},
}

addEventHandler("onClientMarkerHit", praca, function(el, md)
if not md or getElementType(el) ~= "player" then return end
if el ~= localPlayer then return end
outputChatBox("*...
1282. Nie wyświetlają się obiekty
Cze??, mam map? STRP. Uruchomi?em lokalnie, dzia?a jak nale?y, lecz nie ma obiekt?w. Jakie? wskaz?wki?
1283. Nie mogę uruchomić serweera na hostingu
[b]Witam ot?? mam problem z odpaleniem serwera na hostingu, przy odpaleniu w logach mam takie co?:

(W przypadku kiedy jest mysql_static.so).
[/b]
[quote]----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team

[11] filterscripts = "" (string)
[11]
[11] Server Plugins
[11] --------------
[11] Loading plugin: crashdetect.so
[11] CrashDetect v4.15.1 is OK.
[11] Loaded.
[11] Loading plugin: streamer.so
[11]

*** Streamer Plugin v2.8 by Incognito loaded ***

[11] Loaded.
[11] Loading plugin: sscanf.so
[11]

[11] ===============================

[11] sscanf plugin loaded.

[11] Version: 2.8.2

[11] (c) 2012 Alex "Y_Less" Cole

[11] ===============================

[11] Loaded.
[11] Loading plugin: mysql_static.so
[11] >> plugin.mysql: R39-5 successfully loaded.
[11] Loaded.
[11] Loaded 4 plugins.

[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_...
1284. Panel logowania - nie idzie
Witam na moim serwerze na panel logowania nie idzie sie zarejestrowac. Wiem w czym jest problem: addAcount. Jak dodac uprawnienia addAcount da serwera?
1285. [MTA] [DM] Nie działająca strona m
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]
1286. Nie grają a grały ? ILUMINATI
Witam mam g?o?nik gdy mia?em nie wykupiony serwer g?o?nik dzia?a? a teraz gdy wykupi?em nie dzia?a oco chodzi ?
Za pomoc stawiam :piwo:
 
addEventHandler
"onClientResourceStart"getResourceRootElementgetThisResource()),
    function()
local desusound =playSound3D("http://s5.deb1.scdn.smcloud.net/t042-1.mp3.m3u",-1964.3994140625297.528320312535.473926544189true)
setSoundVolume(desusound,1.8)
setSoundMaxDistance(desusound70)
    
end
               
)

--
By Krzemo--


[ Dodano: 2016-05-08, 01:02 ]
Nawet ich nie wyczytuje w konsoli pod resource
1287. setCameraMatrix, nie idzie ustawić ;/
function setCameraOnPlayerJoin()
     
fadeCamera(sourcetrue5)
     
setCameraMatrix(source2651.15203.16101.57)
end
addEventHandler
("onPlayerJoin"getRootElement(), setCameraOnPlayerJoin)


Problem jest w tym, ?e mam panel logowania i wida? w nim nicki graczy, tak?e chcem zrobi? setCameraMatrix, ale nic nie dzia?a, nwm czemu...
1288. Sprawdzanie czy edit nie zawiera spacji.
jak w temacie.
U?ywam:
~= "" and ~= nil

jednak nie wiem jak z?apa? czy ma spacje dany edit w sobie
1289. [DM] GPPv2 Nie wiem co jest
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.

[16]
[16] Filterscripts
[16] ---------------
[16] Loading filterscript 'npc.amx'...
[16] Loaded 1 filterscripts.

[16] Script[gamemodes/GPPv2.amx]: Run time error 19: "File or function is not found"
[16] Number of vehicle models: 0[/scroll]


Je?eli temat zosta? napisany w z?ym temacie to prosze o przeniesienie a nie o usuniecie , Dziekuje za wszelk? ...
1290. Nie odnaleziono użytkownika o nicku...
Witam, nie podaje mi u?ytkownika kt?rego mi nie wyszuka?o np. /test abcdefgh, to nie wy?wietla mi tego nicku czyli abcdefgh.

Kto? pomo?e?

Kod:
        local target findPlayer(plrwykryj)
        
        if (
not targetthen
            outputChatBox
("#0066FF* Nie odnaleziono u?ytkownika o nicku: " .. wykryjplr255255255true)
            return
        
end

Za pomoc stawiam piwko :) :piwo: :piwo:
1291. hud nie dziala , albo ja rob
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 :piwo:
1292. sprawdzanie czy edit jest pusty + nie zawiera spacji + ...
chcia?bym si? dowiedzie? jak sprawdzi? czy edit nie jest pusty, czy zawiera liczb? nie string, czy nie zawiera spacji.

czy w og?le dobrze zrobi?em tworz?c edit do kt?rego ma wpisywa? gracz liczb? kt?r? b?dzie m?g? potem wyci?gn?? do portfela.
myedit guiCreateEdit(1018638029""falsefactionwindow)

to ten edit.

chcia?em sprawdzi? czy nie jest pusty poprzez
if guiGetText(myeditthen

ale gdy by? pusty zwraca?o si? true...

[ Dodano: 2016-04-25, 18:34 ]
co do sprawdzania czy pusty, dopisa?em == true then i dzia?a, na reszt? nie mam pomys?u, co? w stylu if guiGetText(myedit) == int then?

[ Dodano: 2016-04-25, 18:35 ]
a jednak nie dzia?a, ca?y czas zwraca false.
1293. Nie Wiem Czy Kupic Gta V Bo Komp Za Slaby
M?j Komputer

Windows 7 64Bity

Procesor - AMD A6-3420M 1.5Ghz

Ram - 4GB (Dostepne - 3.48) ddr3

Dysk - 120GB dostepne

Karta Graficzna - AMD Radeon (TM) HD 6520G 1.5Gb

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
1294. Nie daje kasy
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??

Daje R* i 2x :piwo: :piwo:
1295. Nie widzalne dla drugiego
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)

local barierka = createObject(1228, x,y,z-0.6)
setElementData(barierka, "isBarierka", true)
setElementRotation(barierka, rx, ry, rz)
setElementFrozen(barierka, true)
setObjectBreakable(barierka, false)

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) ~=...
1296. Nie działa mi panel reje
Witam, ot?? nie dzia?a mi ten panel Piotra 172, nie wiem co mam zrobi?, wszystko dobrze wgra?em !! !
1297. Nie rozwalanie sie aut i wchodzenie na "G"
Witam, chc? ?eby nikt nie m?g? rozwali? auta kiedy nie ma kierowcy w nim i ?eby nie da?o si? wchodzi? na "G" bez kierowcy.
1298. Nie znaleziono gracza
      local target findPlayer(plrtarget)
        
        if (
not targetthen
            outputChatBox
("* Nie znaleziono gracza o nicku " .. targetplr)
            return
        
end


nie znajduje gracza error jest db3: attempt concatenate local 'target' (a nill value)
1299. Co nie tak z kolorami html
Witam jak zawsze dodaje do outputChatBox kod html z kolorem to mi tego nie czyta i ten kod jest na czacie

#33CCFF
co? takiego czy jaki? inny kolor nigdy mi go nie czyta co zrobi??

przyk??d takiego outputa:

outputChatBox('#33CCFF* Nie znaleziono podanego gracza.'plrtrue)
1300. Co jest nie tak w tej mecie?
Cze?c, co jest nie tak w tej mecie? W konsoli wywala mi errory z met?.

Kod:

<meta>
<info name="3dtekst" author"NBL" type="script" version"1.0.0" />
<config src="3d.lua" type="server"/>
<min_mta_version client="1.5.2" server="1.5.2" />
<meta>


[ Dodano: 2016-04-01, 16:52 ]
PS^^ jest to skrypt na napisy 3D
1301. Nie działający obrazek panelu logowania
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

kod:

[code]
dxDrawImage ( px*0, py*0, px*1024, py*800, 'zdj.png') -- t?o regulaminu-
dxDrawRectangle(px*725, py*0, px*300, py*800, tocolor(111, 111, 111, 230), false) -- g?owny
dxDrawRectangle(px*725, py*180, px*300, py*37, tocolor(0, 60, 250, 110), false) -- pasek pod adresem forum
dxDrawRectangle(px*792, py*450, px*150, py*37, tocolor(0, 60, 250, alpha1), false) -- zaloguj
dxDrawRectangle(px*792, py*505, px*150, py*37, tocolor(0, 60, 250, alpha3), false)-- zarejetruj

dxDrawText(tittle, px*1005, py*-100, px*744, py*290, tocolor(254, 254, 254, 150), size2, font, "center", "center")
dxDrawText("Login", px*780, py*290, px*895, py*270, tocolor(254, 254, 254, 200), size3, font, "right", "center")
dxDrawText("Has?o", px*305, py*260, px*895, py*480, tocolor(254, 254, 254, 200), size3, font, "right", "center")
dxDrawText("Zaloguj", px*780, py*290, px*950, py*650, tocolor(255, 255, 255, alpha1), size, font, "center", "center")
dxDrawTe...
1302. Nie tworzy Markeru
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, -33.8"arrow"125500255)
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"markersejfsejf)
1303. Jak zrobić żeby kolor nicku się nie zmieniał
Hej mam pytanie jak zrobi? ?eby kolor nicku si? nie zmienia?. Dopiero by si? zmieni? jakby?my do??czyli do np. frakcji Policja
1304. Nie odejmuje przedmiotu
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.

ileziola getElementData(localPlayer"Marihuana")
wynik ileziola 1
guiGridListSetItemText
(gridrowmarychailosc""..wynik.." g."falsefalse)
1305. Czemu to nie działa ?
mam taki kod na panel i nie chce sie on zamknac, czemu ?
[lua]

GUIEditor = {
gridlist = {},
staticimage = {},
button = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
local screenW, screenH = guiGetScreenSize()
GUIEditor.staticimage[1] = guiCreateStaticImage((screenW - 640) / 2, (screenH - 400) / 2, 640, 400, ":obrazki5/images/1.png", false)
GUIEditor.label[1] = guiCreateLabel(10, 304, 217, 65, " ---- ", false, GUIEditor.staticimage[1])

GUIEditor.button[2] = guiCreateButton(10, 154, 217, 65, "", false, GUIEditor.staticimage[1])
GUIEditor.button[3] = guiCreateButton(10, 229, 217, 65, "", false, GUIEditor.staticimage[1])
GUIEditor.button[4] = guiCreateButton(10, 304, 217, 65, "", false, GUIEditor.staticimage[1])
GUIEditor.gridlist[1] = guiCreateGridList(360, 47, 270, 343, false, GUIEditor.staticimage[1])
guiGridListAddColumn(GUIEditor.gridlist[1], "Gracz", 0.9)
guiSetAlpha(GUIEditor.gridlist[1], 0.72)
end
)

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 :
...
1306. Nie czyta txd
Tu s? plik!

http://www56.zippyshare.com/v/HiLt96D1/file.html
1307. panel nie chce się zamknąc
mam taki kod i panel nie chce sie zamknac
[lua]
GUIEditor = {
gridlist = {},
staticimage = {},
button = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
local screenW, screenH = guiGetScreenSize()
GUIEditor.staticimage[1] = guiCreateStaticImage((screenW - 640) / 2, (screenH - 400) / 2, 640, 400, ":obrazki5/images/1.png", false)
GUIEditor.label[1] = guiCreateLabel(10, 304, 217, 65, " ---- ", false, GUIEditor.staticimage[1])

GUIEditor.button[2] = guiCreateButton(10, 154, 217, 65, "", false, GUIEditor.staticimage[1])
GUIEditor.button[3] = guiCreateButton(10, 229, 217, 65, "", false, GUIEditor.staticimage[1])
GUIEditor.button[4] = guiCreateButton(10, 304, 217, 65, "", false, GUIEditor.staticimage[1])
GUIEditor.gridlist[1] = guiCreateGridList(360, 47, 270, 343, false, GUIEditor.staticimage[1])
guiGridListAddColumn(GUIEditor.gridlist[1], "Gracz", 0.9)
guiSetAlpha(GUIEditor.gridlist[1], 0.72)
end
)

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...
1308. Kordy nie działają...
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)

Kawa?ek kodu po stronie serwera:



Cytat:

addEvent("onRequestRegister",true)
addEventHandler("onRequestRegister",getRootElement(),registerPlayer)


function playerLogin( thePlayer )
end
addEventHandler("onPlayerLogin", getRootElement(), playerLogin)

function playerJoin( thePlayer )
spawnPlayer(thePlayer, -1967, 489, 37)
end
addEventHandler("onPlayerJoin", getRootElement(), playerLogin)


Za pomoc stawiam piwko i respekt. Pozdrawiam ;)
1309. Nie chce usunąć markeru
Tak jak w temacie nie mog? usun?? markeru. Marker mam zrobiony po stronie clienta a usuwanie po stronie serwera. Oczywi?cie jest trigger. ?adnych DB3.

Server:

addEvent("destroy"true)
addEventHandler("destroy"getRootElement(), function()
destroyElement(markersejf)
end)


Trigger z clienta:

triggerServerEvent("destroy"getRootElement(), markersejf)
1310. SQL nie aktualizuje kasy
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

Skrypt

[lua]local polaczenie = dbConnect ( "sqlite", "db.db" )

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...
1311. Nie dodaje do ACL

function addVip(playercmdgracz)
   if (
graczthen
     
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 (addVip2592000001)


1. Nie dodaje do ACL.
2. Czy b?dzie dodawa?o do ACL a nast?pnie po 3 dniach usuwa?o ?

Zas?b jest w ACL.
1312. nie leczenie zdrowych graczy
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
(gracz100)
takePlayerMoney(gracz50)
givePlayerMoney(client50)

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.
1313. Nie wczytuje z tablicy
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. :piwo:

[lua]markersejf = createMarker(20, -3, 3.8, "arrow", 1, 255, 0, 0, 255)

kody = {
{"9YUTIPGRTXC"},
{"MG8SE5D6TRE"},
{"CGRT84CSG6P"},
{"FCV234LG69P"},
{"SDKJ78N9B68"},
{"FRT23PTR62X"},
{"BN23XGD6OPC"},
{"DGR65GB1NOG"},
{"A6DG58CPEMI"},
{"BCJOVX213GR"},
{"NXR2B3PORJ9"},
{"GDY54CHUJ69"},
{"XVZ623YRT52"},
}

local screenW, screenH = guiGetScreenSize()
okno = guiCreateWindow((screenW - 391) / 2, (screenH - 331) / 2, 391, 331, "Sejf", false)
guiWindowSetSizable(okno, false)
grid = guiCreateGridList(11, 61, 128, 260, false, okno)
guiGridListAddColumn(grid, "Lista Kod?w", 0.9)
for i = 0,13 do
guiGridListAddRow(grid)
end
guiGridListSetItemText(grid, 0, 1, "9YUTIPGRTXC", false, false)
guiGridListSetItemText(grid, 1, 1, "MG8SE5D6TRE", false, false)
guiGridListSetItemText(grid, 2, 1, "CGRT84CSG6P", false, false)
guiGridListSetItemText(grid, 3, 1, "FCV234LG69P", false, false)
guiGridListSetItemText(grid, 4, 1, "SDKJ78N9B68", false, false)
guiGridListSetItemText(grid, 5, 1, "FRT23PTR6...
1314. Nie jesteś w frakcji
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.
]]

local isVehicles=nil
local isCzesci={
-- Nazwa tuningu, id czesci, cena
{"Spoiler Pro", 1000, 1500},
{"Spoiler Win", 1001, 2500},
{"Spoiler Drag", 1002, 3500},
{"Spoiler Alpha", 1003, 4500},
{"Spoiler Fury", 1023, 3500},
{"Wheels Offroad", 1025, 1000},
{"Spoiler Alien", 1049, 1500},
{"Spoiler X-Flow", 1050, 2000},
{"Wheels Shadow", 1073, 1500},
{"Wheels Mega", 1074, 1500},
{"Wheels Rimshine", 1075, 2000},
{"Wheels Wires", 1076, 2500},
{"Wheels Classic", 1077, 3500},
{"Wheels Twist", 1078, 2500},
{"Wheels Cutter", 1079, 3000},
{"Wheels Switch", 1080, 2000},
{"Wheels Grove", 1081, 4000},
{"Wheels Import", 1082, 3000},
{"Wheels Dollar", 1083, 2000},
{"Wheels Trance", 1084, 3000},
{"Wheels Atomic", 1085, 2700},
{"Stereo", 1086, 1000},
{"Hydraulics", 1087, 10500},
{"Wheels Ahab", 1096, 5500},
{"Wheels Virtual", 1097, 8500},
...
1315. Nie wczytuje SetElementDaty
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']

[lua] markerup = createMarker(0, 0, 2, "cylinder", 1, 255, 0, 0, 255)

okno = guiCreateWindow(756, 371, 387, 419, "Urz?d Pracy", false)
guiWindowSetSizable(okno, false)

grid = guiCreateGridList(132, 31, 215, 340, false, okno)
guiGridListAddColumn(grid, "Lista Dost?pnych Prac", 0.9)
guiGridListAddRow(grid)
guiGridListSetItemText(grid, 0, 1, "Praca Listonosza", false, false)
butzat = guiCreateButton(9, 44, 113, 59, "Zatrudnij", false, okno)
butzwo = guiCreateButton(9, 130, 113, 59, "Zwolnij", false, okno)
butzamk = guiCreateButton(9, 215, 113, 59, "Zamknij", false, okno)
guiSetVisible(okno, false)

function otworzGUI(el)
if el ~= localPlayer then return end
guiSetVisible(okno, true)
showCursor(true)
end
addEventHandler("onClientMarkerHit", markerup, otworzGUI)

fun...
1316. API-SMS nie działa
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

[code]public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
#define SMS_APIKEY "41edead6c88bc5533b69937a4"
#define SMS_NUMx "7136"
#define SMS_TRESCx "AA.SP"
#define SMS_NETTO "1"
if(dialogid == DIALOG_WYBIERZ)
{
if(!response)
{
SCM(playerid,COLOR_GREEN,"|info| Anulowa?e?(a?) do?adowanie portfela");
}
else // Je?eli kliknie 'Potwierd?'
{
ShowPlayerDialog(playerid, DIALOG_KUPIL, DIALOG_STYLE_INPUT, "Wy?lij SMS", "Wy?lij sms o tre?ci "SMS_TRESCx" na numer: "SMS_NUMx" (Koszt sms'a: 1,23z?), a nast?pnie wybierz: 'Dalej'", "Potwierd?", "Anuluj");
}
return 1;
}

if(dialogid == DIALOG_KUPIL && response)
{
new reqUrl[700];
format(reqUrl, 700, "http://admin.serverproject.pl/api/smsapi.php?key=%s&amount=$%s&code=$%s", SMS_APIKEY, SMS_NETTO, inputtext);
HTTP(playerid, HTTP_GET, reqUrl, "", "checkSMSAPI");
}


//////////////////////////////////////////////////////////////////
CMD:portfel(playerid, params[])
{
if(!Player[playerid][Registered])
{
SCM(playerid,C_RED,""WE" "R&...
1317. Praca nie działa
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)

finishJob()
showNextPoint()
playSoundFrontEnd(12)
setElementData(pojazd, "pojazd_smieci", smieci)
setElementData(pojazd, "pojazd_opis", "Ropa: "..smieci.."%")
end


function showNextPoint()
jobRandom = math.random(1, #positionTrash)

jobMarker = createMarker(positionTrash[jobRandom][1], positionTrash[jobRandom][2], positionTrash[jobRandom][3], "checkpoint", 4, 0, 0, 255)
jobBlip = createBlipAttachedTo(jobMarker, 41)
...
1318. Praca nie działa
Witam pom??cie bo na pojezdzie nie pokazuje napisu Paliwo 0%
I sprawdzcie czy kod dobry :)

local smieci 
getElementData(pojazd"pojazd_smieci") + math.random(1023)
    
    
finishJob()
    
showNextPoint()
    
playSoundFrontEnd(12)
    
setElementData(pojazd"pojazd_smieci"smieci)
    
setElementData(pojazd"pojazd_opis""Ropa: "..smieci.."%")
end

addEventHandler
("onClientMarkerHit"jobOdbieranie, function(elmd)
    if 
not md or getElementType(el) ~= "player" then return end
    
if el ~= localPlayer then return end
    
if not getPedOccupiedVehicle(elthen 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"elsmieci1)
        
setElementData(pojazd"pojazd_opis""Paliwo: 0%")
    else
        
outputChatBox("* Nie posiadasz min. 80% ropy")
    
end
end
)
1319. nie zabiera pieniedzy
Ot?? mam pewien problem,gdy tankuje pojazd wszystko jest pi?knie tankuje go pi?knie,ale nie pobiera kasy ;/
Mo?na jak?? porad? jak to zrobi? ?


[lua]sx,sy = guiGetScreenSize()

local punktyTankowania = {
{-2029.52, 156.77, 28.84},
{-2023.89, 156.69, 28.84},
{-2405.73, 975.74, 45.30},
{-2416.30, 974.97, 45.30},
{-2640.45, 1375.09, 7.15},
{-1675.46,413.69,7.21},
{-1328.36,2677.03,50.09},
{612.50,1694.81,7.03},
{2115.18,919.53,10.85},
{1383.09,460.70,20.12},
{1004.86,-939.32,42.22},
}

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

zpwp_okno = guiCreateWindow(199/1280*sx, 191/720*sy, 872/1280*sx, 294/720*sy, "Stacja benzynowa", false)
guiWindowSetSizable(zpwp_okno, false)
guiSetVisible(zpwp_okno, false)

zpwp_warning = guiCreateLabel(17/1280*sx, 18/720*sy, 845/1280*sx, 16/720*sy, "", false, zpwp_okno)
guiLabelSetColor(zpwp_warning, 183, 0, 0)
guiLabelSetHorizontalAlign(zpwp_warning, "center", false)

zpwp_info = guiCreateLabel(211/1280*sx, 81/720*sy, 477/1280*sx, 15/720*sy, "Witaj na stacji,poni?ej jest przedstawiony cennik paliwa, cennik mo?e ulec zmianie !", false, zpwp_okno)
guiSetFont(zpwp_info, "default-bold-small")

zpwp_stan_l = guiCreateLabel(17/1280*sx, 48/720*sy, 111/128...
1320. Markery się nie pojawiają
[code]local blip = createBlip ( -1754.18, 956.30, 24.88, 58 )

local m1 = createMarker(-1755.05, 951.73, 23.74, "cylinder", 4.0, 255, 0, 0)
vehs = {}


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)

setElementData(bus, "zrespilGracz", el)
setElementData(bus, "pojazd_paliwo", 50)
setElementData(bus, "pojazd_przebieg", 100)

warpPedIntoVehicle(el, bus)
removePreviousVehicles(el)
triggerClientEvent(el, "STARTJobBus", resourceRoot, bus)

vehs[el] = bus
end)

addEvent("STOPJobBus", true)
addEventHandler("STOPJobBus", resourceRoot, function()
local pojazd = getPedOccupiedVehicle(localPlayer)
if pojazd then
destroyElement(pojazd)
end
end)

addEvent...