Sparawa wygl?da tak ?e wgra?em z navaxy dla testu pystories-admins
pystories-core oraz pystories-domy
Wszystko pod??czone pod baze danych oczywi?cie r?wnie? z baz? navaxy i pystories-db i DB DB2. Wpisuje /dom 1 test
Pisze ?e dom si? stworzy?, owszem w bazie dom r?wnie? si? stworzy?. Restartruje pystories-domy i pisze ?e za?adowano 0 dom?w, pomo?e kto??
Witam, nie tworzy mi markeru do budynku prawa jazdy, czy wszystko tu jest dobrze napisane? Jezeli tak to jaki mo?e by? pow?d?
////////////////////////////////////////////////
[Lua]
createBlip(1112.52, -1835.87, 16.60, 36,2,0,0,0,0,0,275)
local text=createElement("text")
setElementPosition(text,1112.52, -1835.87, 16.60+0.8)
setElementData(m, "text","Wej?cie Prawo jazdynLos Santos")
local text=createElement("text")
setElementPosition(text,-2026.88, -103.60, 1035.18+0.8)
setElementData(text,"name","Wyj?cie z prawa jazdy nLos Santos")
setElementInterior(text, 3)
setElementDimension(text, 1)
addEventHandler("onMarkerHit", wejscie, function(el, md)
if getElementType(el) ~= "player" then return end
if isPedInVehicle(el) then return end
setElementInterior(el, 3)
setElementDimension(el, 1)
setElementPosition(el, -2029.72, -106.90, 1035.17)
end)
addEventHandler("onMarkerHit", wyjscie2, function(el, md)
if isPedInVehicle(el) then return end
setElementInterior(el, 0)
setElementDimension(el, 0)
...
function stworz(v)
if not v.login then v.zajety="n" end
v.xyz=split(v.xyz,",")
biz=createPickup ( v.xyz[1], v.xyz[2], v.xyz[3], 3, 1274, 0 )
local biz2 = biz
local tw=createElement("text")
local x2342=v.cost/240
local x234 = math.floor(x2342)
local ***** = math.floor(v.cost/4)
if v.zajety == "n" then v.login = "Brak";v.data="Brak w?asciciela" end
local profir1 = math.floor(x234*24*7)
outputDebugString(v.id)
local format1=("Biznes: %s (ID: %s )nW?a?ciciel: %s nKoszt na 7 dni: %s PLNnPieni?dze co godzine: %s PLNnPieni?dze za sprzeda?: %s PLNnOplacony do: %s nZarobek tygodniowy: %s PLN"):format(v.nazwa,v.id,v.login,v.cost,x234,*****,v.data,profir1)
setElementData(tw, "name", format1)
setElementPosition(tw, v.xyz[1], v.xyz[2], v.xyz[3]+0.8)
setElementData(biz2, "cost", v.cost)
setElementData(biz2, "z", v.zajety)
setElementData(biz2, "name", v.nazwa)
setElementData(biz2, "id", v.id)
setElementData(biz2, "payday",x234)
setElementData(biz2, "saldo",v.saldo)
setElementData(biz2,"data",v.data)
setElementData(biz2, "owner", v.owner)
end
--[[
function bramabiznes(plr)
if isElementWithinColShape(plr, getElementColShape(pickup[plr])) then
local biz2 = pickup[plr]
if getElementData(biz2, "z") == &q...
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)
function MarkerHit10 (hitPlayer, matchingDimension)
local playera = hitPlayer
if getElementType( playera ) == "player" then
if isObjectInACLGroup( 'user.'..getAccountName( getPlayerAccount( playera ) ), aclGetGroup( 'TAXI' ) ) then
moveObject ( bra10, 2500, -1781.5999755859,969.5,31.89999961853)
outputChatBox("Witaj Taks?karzu, trwa otwieranie Bramy Wjazdowej.", playera,0,255,0,true)
end
end
end
function MarkerLeave10 (thePlayer)
moveObject ( bra10, 2500, -1781.5999755859, 969.5, 26.139999389648 )
end
Witam. Mam taki problem. Gdy rejestruje sie na serwerze na hoscie to nie tworzy pliku gracza w folderze Gracze a na domowce tworzy. Wie kto? mo?e w czym tkwi problem? Prosze o szybk? pomoc.