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
561. Nie działające /me przez skrypt
Witam. Mam problem. Ot?? jak zrobi? komend? /me w tym skrypcie poniewa? on to usuwa

local chatRadius 
100
 
function sendMessageToNearbyPlayers messagemessageType )
    if ( 
messageType == then
        local posX
posYposZ getElementPosition source )
 
        
local chatSphere createColSphere posXposYposZchatRadius )
        
local nearbyPlayers getElementsWithinColShape chatSphere"player" )
        
destroyElement chatSphere )
 
        for 
indexnearbyPlayer in ipairsnearbyPlayers ) do
            
local redgreenblue getPlayerNametagColor source )
            
outputChatBoxgetPlayerName source )..": #ffffff".. messagenearbyPlayerredgreenbluetrue )
        
end
        cancelEvent 
( )
    
end
end
addEventHandler 
"onPlayerChat"getRootElement(), sendMessageToNearbyPlayers )


addEventHandler "onPlayerChat"getRootElement(),
function ( 
messagemessageType )
    if 
messageType == 1 then
        cancelEvent
()
    
end
end
)

ZA POMOC R* ORAZ :piwo:
562. Nie mam celownika
Witam gdy wgra?em paczk? na serwer znikn?? mi celownik :/ w ogrpg-gui posiadam cos takiego

setPlayerHudComponentVisible("crosshair"false)
563. Nie można pisać na pm
Witam ot??, mam problem jest to pys 3.0, zedytowany, mog? pisa? na chacie, lecz na /pm ju? nie kto? pomo?e ? W DB3 nie ma ?adnych b??d?w. Kod:
s_chats

[lua]
--[[
Resource: OURGame
Developers: Split <[email protected]>
Copyright <[email protected]> 2015-2016
You have no right to use this code without my permission.
]]

local settings = {
['swearFilter'] = {
['enabled'] = true,
['swears'] = { -- Allows you to set the blocked swear words, syntax is ['WORD'] = 'REPLACEMENT'
['k****'] = '****',
['cwel'] = '****',
['k****?'] = '****',
['c w e l'] = '****',
['k u r w a'] = '****',
['cwelem'] = '******',
['c w e l e m'] = '****',
['k u r w ?'] = '****',
['szmata'] = '****',
['dziwka'] = '****',
['*****'] = '****',
['jajebie'] = '****',
['j***e'] = '****',
['*****'] = '****',
['*****'] = '****',
['k****'] = '****',
['frajer'] = '****',
['frajerze'] = '****',
['*****'] = '****',
['ja *****'] = '****',
['*****'] = '****',
['*****'] = '****',
['c***'] = '****',
['szmato'] = '****',
['dziwko'] = '****',
['peda?'] = '****',
['pedal'] = '****',
['peda?y'] = '****',
['frjerzy'] = '****',
['frajerka'] = '****',
['p****'] = '****',
['p****'] = '****',
['p****'] = '****',
['s********j'] = '****',
['suka'] = '****',
['sukinsyn'] = '****',
['wyjebie'] = '****',
['*****'] = '****',
['wypierdalaj'] = '...
564. nie działa radar
cze?c,zwracam si? z pro?b? poniwa? mam du?y problem. Gdy wchodz? na serwer i si? respi? na spawnie,radaru nie widz?,a hud do po?owy si? usuwa i wida? tylko kase. Dopiero po wej??ie w interior np prawka radar si? pojawia ale hud czasem si? pojawia czasem nie wi?c kto? by pom?g? by ?. Za pomoc piwo!
565. SKRYPTY NIE DZIAŁAJĄ
Witam mam serwer mta i jak wgrywam paczke z jakiego? serwera i restartuje wchodze i freeroam prosz? o pomoc R*
566. Nie zabiera kasy za fixa :P
sn.lua[lua]--[[
@author Lukasz Biegaj <[email protected]>
@author Karer <[email protected]>
@author RacheT <[email protected]>
@copyright 2011-2013 Lukasz Biegaj <[email protected]>
@license Dual GPLv2/MIT
@package MTA-XyzzyRP
@link https://github.com/lpiob/MTA-XyzzyRP GitHub
]]--



-- uniwersalny kod wspoldzielony pomiedzy warsztatami

local strefyNapraw={

--idlewood
warsztatIdlewoodStanowsko11={
cuboid={1846.96, -1784.89, 14.1, 5, 9, 6 },-- cuboid w ktorym musi znalezc sie pojazd
mpos={1854.92,-1780.84,12.55}, -- pozycja markera w ktorym gracz bedzie stal aby naprawiac
faction_id=3, -- id frakcji ktora ma do tego dostep
},

warsztatIdlewoodStanowsko12={
cuboid={1846.96, -1775.17, 14.1, 5, 9, 6 },-- cuboid w ktorym musi znalezc sie pojazd
mpos={1854.44,-1772.43,12.65}, -- pozycja markera w ktorym gracz bedzie stal aby naprawiac
faction_id=3, -- id frakcji ktora ma do tego dostep
},

warsztatIdlewoodStanowsko2={
cuboid={1892.99, -1784.89, 14.1, 5, 21, 6 },-- cuboid w ktorym musi znalezc sie pojazd
mpos={1900.45,-1779.93,12.55}, -- pozycja markera w ktorym gracz bedzie stal aby naprawiac
faction_id=3, -- id frakcji ktora ma do tego dostep
},


--montgomery
warsztatMontgomeryStanowsko1={
cuboid={1184.08,253.10,19.63, 8, 6, 6 },-- cuboid w ktorym musi znalezc sie pojazd
mpos={1182.39,253.35,18.53}, -- pozycja markera w ktorym gracz be...
567. brama nie dziala
na moim serwerze nie dziala brama
ta pierwsza dziala ale ta druga juz nie(ta druga z dopiskiem 1 nie dziala)
[lua]
local gate={
-- var
object=createObject(969, 1544.70,-1630.85,12.51,0,0,90),
marker=createMarker(1544.29,-1626.99,13.38-1, "cylinder", 9, 0, 0, 0, 0),
close=true,
animation=false,
}

gate.open=function()
if gate.animation or not gate.close then return end

gate.animation=true
moveObject(gate.object, 5000, 1544.70,-1630.85,9.01,0,0,0, "OutQuad")

setTimer(function()
gate.animation=false; gate.close=false
end, 6000, 1)
end

gate.close=function()
if gate.animation or gate.close then return end

gate.animation=true
moveObject(gate.object, 2000, 1544.70,-1630.85,12.51,0,0,0, "OutQuad")

setTimer(function()
gate.animation=false; gate.close=true
end, 6000, 1)
end
--------------------------------------------------------------------------------------------

local gate1={
-- var
object=createObject(969, 1584.75,-1637.87,12.54),
marker1=createMarker(1589.04,-1637.47,13.44-1, "cylinder", 9, 0, 0, 0, 0)
close1=true,
animation1=false,
}

gate1.open=function()
if gate.animation1 or not gate.close1 then return end

gate.animation1=true
moveObject(gate.object, 5000, 1584.75,-1637.87,8.54, "OutQuad")
setTimer(function()
gate.animation1=false; gate.close1=false
end, 6000, 1)
end

gate1.close=function()
if gate.animation1 or gate.close1 then retu...
568. Auto nie chce cofać
Cze??, ostatnio wgra?em GM ( EastCity ) i wszystko jest okej, ale dzis zauwazylem ze nie mo?na cofa? autem, np. sweeperami.
569. nie da się zabrać prawa jazdy
cze?? s?uchajcie ja ju? nie wiem w czym tkwi problem wszystko jest podpi?te pod mysql do acl doda?em offices core i dutyadmin oraz vechices a nadal gdy zabior? prawo jady to mo?na nadal wsiada? do pojazdu zna kto? na to rozwi?zanie?
570. Mapa się nie ładuje
Witam

wgra?em map? plik amx i wgra?em pluginy i raczej wszystko dobrze ustawi?em w configu:

Kod:


bind 193.70.126.136
mapname
password
echo Executing Server Config...
lanmode 0
rcon_password NIEWAZNE XD
maxplayers 20
port 4032
hostname TOTALWAR ║ Polish ║ Polski serwer
gamemode0 P4F
filterscripts
announce 1
query 1
weburl
maxnpc 0
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
Plugins audio ColAndreas ColAndreas_static crashdetect mysql pawncmd regex SKY sscanf streamer Whirlpool


a wyskakuje mi takie co? w konsoli:

Kod:


[05] mapname = "San Andreas" (string)
[05] password = "" (string)
[05] filterscripts = "" (string)
[05] weburl = "www.sa-mp.com" (string)
[05]
[05] Server Plugins
[05] --------------
[05] Loaded 0 plugins.

[05]
[05] Filterscripts
[05] ---------------
[05] Loaded 0 filterscripts.

[05] Script[gamemodes/P4F.amx]: Run time error 19: "File or function is not found"


chodzi mi g??wnie o ten ostatni tekst. Jak do??czam do gry to nie da sie wybra? skina a jak klikne "spawn" to tekstury si? nie ?aduj? i spadam z mapy.


Mapa ta:

http://gtao.pl/%3Cfont-co...-2-vt125167.htm
571. Trigger nie dziala
Witam ot?? mam problem z Triggerem eventu do clienta (gracza) ten napis "przeprzekroczy?es limit" dzia?a. Stawiam Piwerko



kod do wysylania eventu:
function newObject(thePlayer)
    if 
maxobjectysciany[client] >= 5 then
        outputChatBox
("przekroczy?es limit"client)
        
triggerClientEvent (thePlayer"wylgui"thePlayer)
    
end 
end
addCommandHandler
("spr",newObject)




odbi?r eventu od servera:
addEvent("wylgui",true)
function 
wylaczgui ()
    
guiSetVisible(baseCPanel.window[1], not guiGetVisible baseCPanel.window[1] ))
    
showCursor false )
end
addEventHandler
("wylgui"rootwylaczgui)
572. Coś nie tak z funkcją
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[clientthen
        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)
573. Sprawdzanie dwóch if`ów nie dziala
Witam mam problem z sprawdzaniem dw?ch if`?w kt?re s? poni?ej a chce, aby dziala? skrypt kt?ry jest oznaczony *(Nie ma b??d?w w db3). Stawiam Piwerko
(Tiggery mam po stronie clienta, bo gdy mam sam if model == 3260 then... to dziala, a jak z tym ranga == "Founder" to nie dziala )


dwa if`y: (* to niedzia?a, chce ?eby dziala?)

local objekty 
= {}
function 
newObject(model,player)
local ranga exports.Skrypt2:getPlayerGroupRank(player)
if 
model == 3260 and ranga == "Founder" then
    objekty
[client] = objekty[client]+1
end
addEvent
("addon.basecreator:newObject"true)
addEventHandler("addon.basecreator:newObject"rootnewObject)



jeden if: (dziala)
function sprawdzenie(player
    
local ranga exports.Skrypt2:getPlayerGroupRank(player)
    if 
ranga == "Founder" then
        outputChatBox
("dziala"player)
    
end
end
addCommandHandler
("spr2"sprawdzenie)



jeden if: (dziala)

local objekty 
= {}
function 
newObject(model)
if 
model == 3260  then
    objekty
[client] = objekty[client]+1
end
addEvent
("addon.basecreator:newObject"true)
addEventHandler("addon.basecreator:newObject"rootnewObject)
574. Nie wiem co sie dzieje z MTA
Siemka Mam problem z mta . chcia?em po?oczyc sie z serwerem i wysokoczy?o mi okno ze zeby po??czyc sie z serwerem potrzebuje zainstalowac aktualizacje a nie ma updata do mta prosze o pomoc jesli to mozliwe a i pr?bowa?em zainstalowac od nowa mta ale sie nie uda?o co jest grane ?? ?
575. lss-domy nie działa
siema, doda?em na sw?j serwer skrypt lss-domy i tak nie dzia?a, db2 posiadam chod? nie by?o w gm, tabeleczki s? lss_domy i lss_interiory no nw co nie dzia?a
576. nie wiem czy skrypt jest dobry
mam skrypt na ochotnicz? stra? po?arn? i nie do ko?ca wiem czy jest dobry a nie chce go uruchamia? bo nie s? podane w skrypcie kordy marker?w. Chce tylko wiedzie? czy podany skrypt jest poprawny a je?li nie to gdzie jest b??d. Z g?ry dzi?kuje. :p


OSP = createTeam("OSP Sandomierz", 204, 51, 0)
blipOSP = createBlip(0, 0, 0, 40, 2)
markerDol = createMarker (0, 0, 0, "Cylinder", 2, 178, 34, 34, 70)
markerPanel = createMarker (0, 0, 0, "Cylinder", 2, 0, 191, 255, 70)

-- funkcje

-- funkcja odpowiadaj?ca za do??czanie do stra?y
function dolocz()
setPlayerTeam(source, OSP)
giveWeapon ( source, 42)
setElementModel (source, 279)
outputChatBox("Jestes teraz w ochotniczej stra?y po?arnej!", source)
end
-- panel osp
function panelOSP()
local playerTeam = getPlayerTeam ( source )
if ( playerTeam == OSP ) then
PanelOsp = guiCreateWindow ( 0, 0, 0.5, 0.4, "Panel OSP", true )
guiWindowSetMovable ( PanelOsp, false )
guiWindowSetSizable ( PanelOsp, false )
SpawnWoz = guiCreateButton ( 0.7, 0.1, 0.2, 0.1, "W?z Stra?acki", true, panelOSP)
dajGasnice = guiCreateButton ( 0.7, 0, 0.2, 0.1, "Ga?nica", true, panelOSP )
end
end
-- spawnowanie wozu
function spwWoz()
woz = createVehicle (407, 0, 0, 0)
end
-- dawanie graczowi gasnice
function gasnica()
giveWeapon (source, 42)
end
-- wszystkie eventy
addEventHandler ( "onMarkerHit", markerDol, dolocz )
addEventHan...
577. Panel Logowania się nie pojawia
Witam, tworz?c panel logowania przy pr?bie wej?cia na serwer nie pojawia si? sam panel, b??d:

"Server triggered clientside event startLogin, but event is not added clientside"

Ale gdy wejd? drugi raz na serwer to panel ju? si? pojawia..

[lua]
Client

function Login()
panelLogin = guiCreateWindow(1037, 0, 323, 763, "Panel Logowania / Autor", false)
end

addEvent("startLogin", true)
addEventHandler("startLogin", getLocalPlayer(), Login)

----------------

Server

addEventHandler("onPlayerJoin", getRootElement(), function()
triggerClientEvent(source, "startLogin", source)
end)
[/lua]


Oraz drugi b??d, je?li klikniemy w button rejestracja lub w button wroc, to znika panel logowania pojawia si? panel rejestracji, to dzia?a, lecz jednak jak klikniemy gdzie? w panel logowania to te? zmienia mi si? na inny panel, jak to zablokowa??

[lua]
function Login()
panelLogin = guiCreateWindow(1037, 0, 323, 763, "Panel Logowania / Autor", false)

rejestracja = guiCreateButton(174, 684, 115, 27, "Rejestracja", false, panelLogin)

showCursor(true)
addEventHandler("onClientGUIClick", rejestracja, function()
guiSetVisible(panelLogin, false)
Rejestracja()
end)
end


function Rejestracja()
panelReje = guiCreateWindow(1037, 0, 323, 763, "Panel Logowania / Autor", false)

wroc = guiCreateButton(31, 684, 115, 27, &...
578. Nie wyświetlające się notyfikacje
Witam, mam problem ot?? nie wy?wietlaj? si? w og?le notyfikacje. Poni?ej macie kody do clienta i servera.

client:
[lua]local screenX,screenY = guiGetScreenSize ()
local zoom = 1
if screenX < 1920 then
zoom = math.min(2, 1920/screenX)
end

local notyfikacje = {}

local font = dxCreateFont("files/OpenSans-Light.ttf",13)

function renderNotif ()
for index, value in ipairs (notyfikacje) do
if index < 5 and notyfikacje[index] then
local opis = notyfikacje[index].opis
local start = notyfikacje[index].czas
local stan = notyfikacje[index].stan
local obecnystan = notyfikacje[index].obecnystan
if obecnystan == true then
local now = getTickCount()
local endTime = start + 500
local elapsedTime = now - start
local duration = endTime - start
local progress = elapsedTime / duration
x1,_,_ = interpolateBetween(0,0,0,600,0,0,progress,"OutQuad")
x2,_,_ = interpolateBetween(2000,0,0,1320,0,0,progress,"OutQuad")
else
local now = getTickCount()
local endTime = start + 500
local elapsedTime = now - start
local duration = endTime - start
local progress = elapsedTime / duration
x1,_,_ = interpolateBetween(600,0,0,0,0,0,progress,"OutQuad")
x2,_,_ = interpolateBetween(1320,0,0,2300,0,0,progress,"OutQuad")
end
dxDrawImage(screenX-x1/zoom,(230+(index*100))/zoom,522/zoom,107/zoom,"files/"..stan..".png"...
579. Nie wyswietla się gui
Witam mam taki problem z podmienieniem


dxDrawRectangle
(screenW 0.2628screenH 0.2135screenW 0.4744screenH 0.0742tocolor(093147200), false)


Na



dxDrawImage
(screenW 0.2628screenH 0.2135screenW 0.4744screenH 0.0742"okno.png"tocolor(255,255,255,255), false)



nie pokazuje mi si? te podmienione gui graficzne,

db3= 0

Za pomoc :piwo:
oraz
R*
580. Tabik nie pokazuje koloru gracza
Siema,
Pobra?em sobie tabik, wszystko dzia?a lecz nie pokazuje kolor?w gracza tylko tzw system szesnastkowy #fffff oraz nick potem, jak to zapobiec dodam ?e zrobione jest to dxdrawem oraz zmienn?
581. MTA:SA Nie mogę dołączyć na serwer


Kto? co? pomo?e?
582. Whitelista nie chce dzialac.
Siemka :D
Pobra?em sobie skrypcik z jakie? paczki, postanowi?em go przerobi? lecz mam b??dy w db3 przy wchodzeniu. Dodam ?e zrobi?em tabelke z tak?
struktur?: https://imgur.com/a/4UxsFCV
B??dy : https://imgur.com/a/HwGo1vn
Kod

function connect(nick,ip,username,serial)
    
local sprawdz exports["ogrpg-db"]:dbGet("SELECT * FROM rpg-wh WHERE serial=?"serial)
    if 
#sprawdz > 0 then

    
else
        
cancelEvent(true"Trwaja prace techniczne, przepraszamy!")
    
end
end
addEventHandler
("onPlayerConnect"getRootElement(), connect)

583. Export nie chce działac
Siema,
mam taki problem:
"hudv1/c.lua:10 call: failed to call: 'ogrpg-db:dbGet' string "?"
Kto napisze prawid?owy kod daje R* :piwo:
Macie kodzik:
[lua]
czcionka = dxCreateFont (":noti/czcionka.ttf", 10)
sx, sy = guiGetScreenSize ()
hudOn = false
uid = getElementData (localPlayer, "player:uid")
RP = exports["ogrpg-db"]:dbGet("SELECT reputation FROM ogrpg_users WHERE uid = ?", uid)

addEventHandler( "onClientResourceStart", resourceRoot, function()
for _, staryhud in ipairs({"weapon", "ammo", "health", "clock", "money", "breath", "armour", "wanted"}) do
setPlayerHudComponentVisible( staryhud, false)
end

if not hudobraz and getElementData(localPlayer, "id") and getElementData(localPlayer, "player:uid") then
pokazhud()
end
end)

addEventHandler ("onClientPlayerSpawn", resourceRoot, function()
if not hudobraz and getElementData(localPlayer, "id") and getElementData(localPlayer, "player:uid") then
hud()
end
end)

addEventHandler ("onClientResourceStop", resourceRoot, function()
destroyElement ( resourceRoot )
end)

function hudobraz()
if getElementData(localPlayer, "id") and getElementData(localPlayer, "player:uid") then
hudobraz = dxDrawImage(565, 36, 225, 129, ":hud/penta.png", 0, 0, 0, tocolo...
584. Nie działająca brama
cze?c,Mam problem Poniewa? zrobi?em brame na acl do frakcji sapd ale okaza?o sie ?e frakcja sapd jest pod mysql jak zreszt? ca?a paczka mo?e kto? mi pom?c zrobi? brame pod mysql???
585. coś nie tak z klientem
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.

Gdyby kto? pom?g? stawiam zimne piwo.
586. Coś nie tak z zamianą
Witam chcia? bym sobie zamieni? pickup z skin?w frakcji na marekry
ale mi nie wychodzi oto kod przerobiony:

[lua]
--[[
Developed by Yolos
All rights reserved!
You cannot use this without permission!
--]]
local skins={
["SAMC"]={
code="SAMC",
positions={
{1564.35546875,-2610.5419921875,13.555864334106,274,"Skin ratownika",20,120,2},
{1564.35546875,-2601.0019921875,13.555864334106,70,"Skin Doktora",20,120,9},
{1564.35546875,-2603.5019921875,13.555864334106,275,"Skin Pielegniarza",20,120},
{1564.35546875,-2608.1419921875,13.555864334106,276,"Skin ratowniczki",20,120},
{1564.35546875,-2606.0019921875,13.555864334106,272,"Skin Lekarza",20,120},
},
text="Nie jeste? na s?u?bie lub nie pracujesz jako pracownik frakcji SAMC.",
},
["SAPD"]={
code="SAPD",
positions={
{2510.16, -1668.04, -50.73,267,"S?u?ba 1",1,0,2},
{2510.16, -1670.96, -50.73,"S?u?ba 2",1,0,2},
{2510.08, -1674.50, -50.73,284,"S?u?ba 3",1,0,2},
{2506.54, -1671.18, -50.73,280,"S?u?ba 4",1,0,2},
{2506.54, -1667.69, -50.73,282,"S?u?ba 5",1,0,2},
{2507.73, -1664.44, -50.73,285,"SWAT",1,0,1},
},
text="Nie jeste? zatrudniony do SAPD lub nie jeste? na s?u?bie!",
},
["TAXI"]={
code="TAXI",
positions={
{211.77, 17...
587. Nie wyświetla licznika
Dobry,
Jak naprawi? b??d, ?eby wy?wietla?o licznik? Posiadam licznik z ownworld i nie dzia?a mi a wcze?niej dzia?a?, nie wy?wietla si? teraz a nic nie zmieni?em, nie ma ?adnych b??d? w DB3

kod:
[lua]
--[[
autor: Asper & Payro
for: Own World
All rights reserved!
]]

--variables main
local screenW,screenH = guiGetScreenSize()
local sw,sh = guiGetScreenSize()
local f1 = dxCreateFont("f.ttf", 11)
local f2 = dxCreateFont("f.ttf", 32)
local skala = 1

if sw == 1920 then
skala = 1.2
elseif sw >= 1400 and sw < 1600 then
skala = 1
elseif sw >= 1600 and sw < 1920 then
skala = 1.1
elseif sw >= 1280 and sw < 1400 then
skala = 0.9
else
skala = 0.7
end
--

local nitroScale = 1

addEventHandler("onClientRender", root, function()
--in vehicle
local veh = getPedOccupiedVehicle(localPlayer)
if not veh then return end
--

local nitroLevel = getVehicleNitroLevel(veh)
if nitroLevel ~= false and getVehicleController(veh) == localPlayer then
if isVehicleNitroActivated(veh) == true and getKeyState("lalt") ~= true then
triggerServerEvent("setNitroState", resourceRoot, veh, false)
elseif isVehicleNitroActivated(veh) ~= true and getKeyState("lalt") == true and (math.floor(nitroLevel*100)) > 10 then
triggerServerEvent("setNitroState", resourceRoot, veh, true)
end
if nitroLevel < 1 and isVehicleNitroActivated(veh) ~= true ...
588. nie działające mapy
Pomocy! gdy wgram mape z neta i wgram na ftp serwera to w panelu nic nie ma a w konsoli wyskakuje error ERROR: Couldn't find map a mapa jest w ftp a jeszcze dodam ?e gdy na serwer ftp wgram skrypt To on dzia?a bez problemu
589. System domów nie działa
Witam wyskakuje error inie mg kupi? domku


DB3: ERROR: [BLife][Testowane]lss-domydomy.lua:80: attempt to get length of local 'lokator1db' (a boolean value)

[lua]
domy={}

local function usunDom(id)
if isElement(domy[id].wyjscie) then destroyElement(domy[id].wyjscie) end
if isElement(domy[id].wejscie) then destroyElement(domy[id].wejscie) end
if isElement(domy[id].cs) then destroyElement(domy[id].cs) end
if isElement(domy[id].text) then destroyElement(domy[id].text) end
domy[id]=nil
end

function dodajDom(v,fast)

if not interiory[v.interiorid] then return false end
-- if tonumber(v.id)==151 then
-- outputChatBox("151")
-- end

--outputDebugString(tostring(v.ownerid))
if domy[v.id] then
usunDom(v.id)
end
local result=exports["BLife-db"]:dbGet("SELECT * FROM BLife_users WHERE id=?", v.ownerid)
if result and #result > 0 then
local r=result[1]
if r.login2 == false then
v.owner_nick = r.login
else
v.owner_nick = r.login2
end
else
if v.ownerid ~= false then
outputDebugString("B?ad domu ID domu#"..v.id)
end
v.owner_nick = "do wynaj?cia"
end
-- outputDebugString(v.owner_nick)
v.drzwi=split(v.drzwi,",")
for ii,vv in ipairs(v.drzwi) do v.drzwi[ii]=tonumber(vv) end
v.punkt_wyjscia=split(v.punkt_wyjscia,",")
for ii,vv in ipairs(v.punkt_wyjscia) do v.punkt_wyjscia[ii]=tonumber(vv) end
local pickupid=1272
if (not v.ownerid) t...
590. Nie moge podłączyć bazy danych WestRPG
Tak jak w temacie, podczas rejestracji wyskakuje w konsolce: [SKRYPTY]logowanies_main.lua:89: attempt to call global 'escapeString' (a nil value)
591. Nie działa mi zmienna
Dlaczego zmienna markera, kt?r? zaznaczy?em nie dzia?a w eventHandlerze i jak temu zaradzi?, czy s? jakie? rozwi?zania?
[code]GUIEditor = {
button = {},
window = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(387, 190, 581, 408, "", false)
guiWindowSetSizable(GUIEditor.window[1], false)

GUIEditor.button[1] = guiCreateButton(36, 45, 510, 50, "", false, GUIEditor.window[1])
GUIEditor.button[2] = guiCreateButton(36, 105, 510, 50, "", false, GUIEditor.window[1])
GUIEditor.button[3] = guiCreateButton(36, 165, 510, 50, "", false, GUIEditor.window[1])
GUIEditor.button[4] = guiCreateButton(36, 225, 510, 50, "", false, GUIEditor.window[1])
GUIEditor.button[5] = guiCreateButton(200, 356, 182, 42, "", false, GUIEditor.window[1])

guiSetText(GUIEditor.window[1], "Sprz?t Pa?stwowej Stra?y Po?arnej")
guiSetText(GUIEditor.button[1], "AODO")
guiSetText(GUIEditor.button[2], "Nomex")
guiSetText(GUIEditor.button[3], "Pi?a ?a?cuchowa")
guiSetText(GUIEditor.button[4], "Linia ga?nicza")
guiSetText(GUIEditor.button[5], "Zamknij")
guiSetVisible(GUIEditor.window[1], false)
showCursor(false)
end
)

local czy_jest = false;

function wypo()
if not isPedInVehicle(localPlayer) then
outputChatBo...
592. Nie działa brama dla frakcji
Siema taj jak w temacie za pomoc stawiam :piwo:

[lua]local door1 = createObject(3089, -50.099609375,30.900390625,980.90002441406,0,0,0)
local door2 = createObject(3089, -60.669921875,13.5,980.90002441406,0,0,0)
setElementInterior(door1, 2)
setElementInterior(door2, 2)
local marker1 = createMarker(-49.44,30.95,980.61-1, "cylinder", 1.8, 255, 255, 255, 0)
setElementInterior(marker1, 2)
local marker2 = createMarker(-59.94,13.53,980.61-1, "cylinder", 1.8, 255, 255, 255, 0)
setElementInterior(marker2, 2)

function isPlayerInPoliceFaction(plr)
local sid=getElementData(plr,'player:uid')
if not sid then return end

local result=exports['ogrpg-db']:dbGet('SELECT 1 FROM ogrpg_factions WHERE code=? AND sud=? LIMIT 1;', "SAPD", uid)
if result[1] then
return true
else
return false
end
end

addEventHandler("onMarkerHit", marker1, function(el)
if not isPlayerInPoliceFaction(el) then return end
local px, py, pz = getElementPosition(door1)
moveObject(door1, 2000, px+2, py, pz)
end)

addEventHandler("onMarkerLeave", marker1, function(el)
if not isPlayerInPoliceFaction(el) then return end
moveObject(door1, 2000, -50.099609375, 30.900390625, 980.90002441406)
end)

addEventHandler("onMarkerHit", marker2, function(el)
if not isPlayerInPoliceFaction(el) then return end
local px, py, pz = getElementPosition(door2)
moveObject(door2, 2000, px+2, py, pz)
end)

addEventHandler("o...
593. Editor nie działa.
Witam, mam problem nie dzia?a mi editor ani editor gui na serwerze dzia?a tylko editor main ale daje do tylko czarny ekran, prosz? o szybk? odpowied?
Resource 'editor' start was requested (Failed to link to mapmanager)
594. w urzędzie nie ma wybóru pracy u tunera
Tak, jak w temacie gdy wchodz?, do urz?du i do markeru Wyb?r pracy to nic mi si? nie wy?wietla mam paczk? PseudoLife...
595. Ani nie dodaje ani nie zwalnia z ACL
Witam mam problem ze skryptem. Ot?? w panelu genera?a brygadiera w PSP nie mog? ani zatrudnia? ani zwalnia? z ACL. ZA POMOC R* I :piwo:

Client
[lua]
mojeW,mojeH = 1680, 1050
sW,sH = guiGetScreenSize()
width, height = (sW/mojeW), (sH/mojeH)

GUIEditorr = {
button = {},
window = {},
label = {},
combobox = {},
gridlist = {},
edit = {}
}
GUIEditorr.window[1] = guiCreateWindow(612*width, 306*height, 429*width, 344*height, "Panel Genera?a", false)
guiWindowSetSizable(GUIEditorr.window[1], false)

GUIEditorr.combobox[1] = guiCreateComboBox(24*width, 65*height, 150*width, 158*height, "--Wybierz--", false, GUIEditorr.window[1])
GUIEditorr.combobox[2] = guiCreateComboBox(214*width, 65*height, 193*width, 158*height, "--Wybierz--", false, GUIEditorr.window[1])
guiComboBoxAddItem(GUIEditorr.combobox[2], "Genera? Brygadier")
guiComboBoxAddItem(GUIEditorr.combobox[2], "Nadbrygadier")
guiComboBoxAddItem(GUIEditorr.combobox[2], "Starszy Brygadier")
guiComboBoxAddItem(GUIEditorr.combobox[2], "Brygadier")
guiComboBoxAddItem(GUIEditorr.combobox[2], "M?odszy Brygadier")
guiComboBoxAddItem(GUIEditorr.combobox[2], "Starszy Kapitan")
guiComboBoxAddItem(GUIEditorr.combobox[2], "Kapitan")
guiComboBoxAddItem(GUIEditorr.combobox[2], "M?odszy Kapitan")
guiComboBoxAddItem(GUIEditorr.combobox[2], "Aspirant Sztabowy")
guiComboBoxAddItem(...
596. Ani nie dodaje ani nie zwalnia z ACL
Witam mam problem ze skryptem. Ot?? w panelu genera?a brygadiera w PSP nie mog? ani zatrudnia? ani zwalnia? z ACL. ZA POMOC R* I :piwo:

Client
[lua]
mojeW,mojeH = 1680, 1050
sW,sH = guiGetScreenSize()
width, height = (sW/mojeW), (sH/mojeH)

GUIEditorr = {
button = {},
window = {},
label = {},
combobox = {},
gridlist = {},
edit = {}
}
GUIEditorr.window[1] = guiCreateWindow(612*width, 306*height, 429*width, 344*height, "Panel Genera?a", false)
guiWindowSetSizable(GUIEditorr.window[1], false)

GUIEditorr.combobox[1] = guiCreateComboBox(24*width, 65*height, 150*width, 158*height, "--Wybierz--", false, GUIEditorr.window[1])
GUIEditorr.combobox[2] = guiCreateComboBox(214*width, 65*height, 193*width, 158*height, "--Wybierz--", false, GUIEditorr.window[1])
guiComboBoxAddItem(GUIEditorr.combobox[2], "Genera? Brygadier")
guiComboBoxAddItem(GUIEditorr.combobox[2], "Nadbrygadier")
guiComboBoxAddItem(GUIEditorr.combobox[2], "Starszy Brygadier")
guiComboBoxAddItem(GUIEditorr.combobox[2], "Brygadier")
guiComboBoxAddItem(GUIEditorr.combobox[2], "M?odszy Brygadier")
guiComboBoxAddItem(GUIEditorr.combobox[2], "Starszy Kapitan")
guiComboBoxAddItem(GUIEditorr.combobox[2], "Kapitan")
guiComboBoxAddItem(GUIEditorr.combobox[2], "M?odszy Kapitan")
guiComboBoxAddItem(GUIEditorr.combobox[2], "Aspirant Sztabowy")
guiComboBoxAddItem(...
597. Coś nie tak z startall
Witam tak jak w temacie
mam problemik z skryptem startall autorstwa Jarsa132

oto kod


function startTheResource thePlayercommandresourceName )
    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 :D

(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 )
598. Nie mogę domów tworzyć
Siema tutaj macie kod:

[lua]addEventHandler("onResourceStart", resourceRoot, function()
local q = exports.DB2:pobierzTabeleWynikow("SELECT * FROM domy")
for i,v in ipairs(q) do
v.wejscie = split(v.wejscie, ",")
if v.nwlasciciel:len() < 3 then id = 1273 else id = 1272 end
local wejscie = createPickup(v.wejscie[1], v.wejscie[2], v.wejscie[3], 3, id, 0, 0)
local cwejscie = createColSphere(v.wejscie[1], v.wejscie[2], v.wejscie[3], 1)
local wlasciciel = false
local nwlascciiel = false
if id == 1273 then
wlasciciel = "brak"
nwlasciciel = "brak"
else
wlasciciel = v.wlasciciel
nwlasciciel = v.nwlasciciel
end
v.wyjscie = split(v.wyjscie, ",")
v.tpw = split(v.tpw, ",")
setElementData(cwejscie, "dom", {
["id"]=v.id,
["wlasciciel"]=wlasciciel,
["nwlasciciel"]=nwlasciciel,
["cena"]=v.cena,
["nazwa"]=v.nazwa,
["x"]=v.tpw[1],
["y"]=v.tpw[2],
["z"]=v.tpw[3],
["data"]=v.data,
["int"]=v.int,
})
local wyjscie = createMarker(v.wyjscie[1], v.wyjscie[2], v.wyjscie[3], "arrow", 1, 0, 0, 255)
setElementData(wyjscie, "wdom", {
["x"]=v.wejscie[1],
["y"]=v.wejscie[2],
["z"]=v.wejscie[3],
})
setElementInterior(wyjscie, v.int)
setElementDimension(wyjscie, v.id)
...
599. nie otwiera gui i nie pokazuje blipa
Witam mam pewien problem robi? sobie gui lecz jest problem one w og?le si? nie otwiera

[lua]
marker = {
{369.75, -2043.86, 7.67},
{848.63, -1822.13, 12.19},
{-1567.03, -2735.30, 48.54},
{-2328.49, -1618.51, 483.71},
{-1945.10, -1084.70, 30.78},
{-2524.29, -604.01, 132.56},
{-2793.32, -380.37, 7.04},
{-2354.25, -154.45, 35.32},
{-2769.76, 229.40, 7.06},
{-2208.21, 639.76, 49.44},
{-1790.54, 1428.62, 7.19},
{-2512.31, 1205.41, 37.42},
{-2261.07, 2287.73, 4.82},
{-1267.02, 2708.03, 50.07},
{-926.00, 2026.48, 60.91},
{-366.77, 1129.84, 19.76},
{2144.14, 2808.86, 10.82},
{2444.98, 2290.26, 10.82},
{1722.32, 2105.34, 10.82},
{2206.28, 1514.67, 10.82},
{2461.04, 1158.96, 10.82},
{1542.48, 1033.90, 10.82},
{1098.74, 1450.08, 12.55},
{1500.63, 773.24, 10.82},
{1288.60, 342.65, 19.55},
{1925.90, 174.90, 37.28},
}


GUIEditor = {
gridlist = {},
window = {},
button = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(424, 275, 888, 475, "Towary", false)
guiWindowSetSizable(GUIEditor.window[1], false)

GUIEditor.gridlist[1] = guiCreateGridList(10, 20, 855, 341, false, GUIEditor.window[1])
guiGridListAddColumn(GUIEditor.gridlist[1], "#", 0.2)
guiGridListAddColumn(GUIEditor.gridlist[1], "Nazwa Towaru", 0.2)
guiGridListAddColumn(GUIEditor.gridlist[1], "Wyn...
600. nie otwiera gui i nie pokazuje blipa
Witam mam pewien problem robi? sobie gui lecz jest problem one w og?le si? nie otwiera

[lua]
marker = {
{369.75, -2043.86, 7.67},
{848.63, -1822.13, 12.19},
{-1567.03, -2735.30, 48.54},
{-2328.49, -1618.51, 483.71},
{-1945.10, -1084.70, 30.78},
{-2524.29, -604.01, 132.56},
{-2793.32, -380.37, 7.04},
{-2354.25, -154.45, 35.32},
{-2769.76, 229.40, 7.06},
{-2208.21, 639.76, 49.44},
{-1790.54, 1428.62, 7.19},
{-2512.31, 1205.41, 37.42},
{-2261.07, 2287.73, 4.82},
{-1267.02, 2708.03, 50.07},
{-926.00, 2026.48, 60.91},
{-366.77, 1129.84, 19.76},
{2144.14, 2808.86, 10.82},
{2444.98, 2290.26, 10.82},
{1722.32, 2105.34, 10.82},
{2206.28, 1514.67, 10.82},
{2461.04, 1158.96, 10.82},
{1542.48, 1033.90, 10.82},
{1098.74, 1450.08, 12.55},
{1500.63, 773.24, 10.82},
{1288.60, 342.65, 19.55},
{1925.90, 174.90, 37.28},
}


GUIEditor = {
gridlist = {},
window = {},
button = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(424, 275, 888, 475, "Towary", false)
guiWindowSetSizable(GUIEditor.window[1], false)

GUIEditor.gridlist[1] = guiCreateGridList(10, 20, 855, 341, false, GUIEditor.window[1])
guiGridListAddColumn(GUIEditor.gridlist[1], "#", 0.2)
guiGridListAddColumn(GUIEditor.gridlist[1], "Nazwa Towaru", 0.2)
guiGridListAddColumn(GUIEditor.gridlist[1], "Wyn...