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: frakcyjna
1. Wypłata frakcyjna
Wywala mi b??d przy wej?ciu w blipa od wyp?at: s_money_from_job.lua:72: attempt to perform arithmetic on local 'money' (a nil value)

Kod

[code]
local pension = { --za 1 minute
["SAPD"] = {
[1] = 800,
[2] = 850,
[3] = 900,
[4] = 950,
[5] = 1000,
[6] = 1050,
[7] = 1100,
[8] = 1150,
[9] = 1200,
[10] = 1250,
[11] = 1500,
},
["SAFD"] = {
[1] = 800,
[2] = 850,
[3] = 900,
[4] = 950,
[5] = 1000,
[6] = 1050,
[7] = 1100,
[8] = 1150,
[9] = 1200,
[10] = 1250,
[11] = 1500,
},
["SARA"] = {
[1] = 800,
[2] = 850,
[3] = 900,
[4] = 950,
[5] = 1000,
[6] = 1050,
[7] = 1100,
[8] = 1150,
[9] = 1200,
[10] = 1250,
[11] = 1500,
},

}

local mnoznik = 1

local markersFactionPayment={
{-2636.63, -9.21, 6.13},

}

for i,v in ipairs(markersFactionPayment) do
local marker=createMarker(v[1], v[2], v[3]-1, "cylinder", 1.2, 255, 255, 255)
setElementData(marker,'marker:text','#00C645WYPŁATA')
setElementData(marker,'marker:downtext','Tutaj odbierzesz wyp?‚at?™ z frakcji')
setElementData(marker,'marker:icon','job')
setElementInterior(marker, v[4] or 0)
setElementDimension(marker, v[5] or 0)
end
...
2. Wypłata Frakcyjna
Gdy pr?buj? wyp?aci? wyskakuj? b??d

[img]https://i.imgur.com/WzpQpdQ.png[/img]

[code]local pension = { --za 1 minute
["SAPD"] = {
[1] = 1175,
[2] = 1200,
[3] = 1225,
[4] = 1250,
[5] = 1300,
[6] = 1325,
[7] = 1350,
[8] = 1400,
[9] = 1425,
[10] = 1450,
[11] = 1500,
},
["SAFD"] = {
[1] = 1175,
[2] = 1200,
[3] = 1225,
[4] = 1250,
[5] = 1300,
[6] = 1325,
[7] = 1350,
[8] = 1400,
[9] = 1425,
[10] = 1450,
[11] = 1500,
},
["SARA"] = {
[1] = 1175,
[2] = 1200,
[3] = 1225,
[4] = 1250,
[5] = 1300,
[6] = 1325,
[7] = 1350,
[8] = 1400,
[9] = 1425,
[10] = 1450,
[11] = 1500,
},
}

local markersFactionPayment={
{-1867.68, 812.64, 35.17,0,0},
}

for i,v in ipairs(markersFactionPayment) do
local marker=createMarker(v[1], v[2], v[3]-1, "cylinder", 2, 0, 144, 255,255)
setElementInterior(marker, v[4])
setElementDimension(marker, v[5])
setElementData(marker,"marker:text","frakcje")
setElementData(marker,"marker:downtext","Odbieranie pensji")
end

addEventHandler("onMarkerHit", resourceRoot, function(el,md)
if not md or getElementType(el) ~= "player" then return end
local uid=getElementData(el,"player:uid")
if not uid then return end
local result=exports["dmta_db"]:dbGet("SELECT * FROM dmta_factions WHERE uid=? LIMIT 1;", uid...
3. Między frakcyjna komunikacja
To ponownie ja tym razem z takim pytaniem w jaki spos?b zrobi? chat frakcyjny czyli takie co? jak przed chwil? moja kr?tkofal?wka. Tyle, ?e aby wszystkie frakcje ten chat widzia?y?