Witam, korzystam z skryptu na osi?gni?cia od Wielebnego (Xyzzyrp).
Napotka?em pewien problem, dok?adnie chodzi mi o to ?e gdy gracz posiada +5 pojazd?w nie nadaje mu osiagniecia. Je?li chodzi o reszt? nadawanych osiagniec to one dzia?aj?, r?wnie? te kt?re wykorzystuj? sume.
[lua]["1stcar"]={
name="Pierwszy pojazd",
descr="w ko?cu dorobi?e?/a? si? swojego pierwszego pojazdu! Je?dzij ostro?nie!. +5PG",
timely=true,
chance=25,
typ=3,
value=5,
check=function(plr)
--[[local character=getElementData(plr,"character")
if not character or not character.id then return false end]]
local uid=getElementData(plr,"player:sid")
if not uid then return false end
local r = exports.DB2:pobierzWyniki("select ownedPlayer suma from pystories_vehicles where ownedPlayer=?", uid)
if not r or not r.suma then return false end
if r and tonumber(r.suma) and tonumber(r.suma)>=1 then return true end
return false
end
},
["2stcar"]={
name="Fan motoryzacji poziom 2",
descr="Posiadasz co najmniej 5 pojazd?w! Wszyscy uwa?aj? Ci? za fana motoryzacji!. +15PG",
timely=true,
chance=25,
typ=3,
value=15,
check=function(plr)
--[[local character=getElementData(plr,"character")
if not character or not character.id then return false end]]
local uid=getElementData(plr,"player:sid&... |