Witam posiadam problem z pystories-vehicles , w skr?cie opisuj?c problem..
Polega na braku zapisu od strony wy?ej wymienionego zasobu.
B??d linijki 265
local nlOffsets={
[411]={-1,0,-0.6}, -- infernus
[470]={-1,0,-0.4}, -- patriot
[541]={-0.9,0,-0.4}, -- bulelt
[549]={-0.9,0,-0.4}, -- tampa
[587]={-1,0,-0.5}, -- euros
}
local nlIDX={
3962,2113,1784,2054,2428,2352
}
function getVehicleHandlingProperty ( element, property )
if isElement ( element ) and getElementType ( element ) == "vehicle" and type ( property ) == "string" then
local handlingTable = getVehicleHandling ( element )
local value = handlingTable[property]
if value then
return value
end
end
return false
end
function getAdmin2(plr,level)
if level then
local result=exports["pystories-db"]:dbGet("SELECT * from pystories_admins WHERE serial=? AND level=?", getPlayerSerial(plr), level)
if result and #result > 0 then
return true
else
return false
end
else
local result=exports["pystories-db"]:dbGet("SELECT * from pystories_admins WHERE serial=?", getPlayerSerial(plr))
if result and #result > 0 then
return true
else
retur...
Siema mam tutaj taki kod z ITS'a i nie wiem dla czego /tt /vth itd. nie dzia?a.
Szuka?em b??d?w w kodzie ale nic nie znalaz?em.
Je?li kto? ma dzia?aj?cy to prosze.
[lua]addCommandHandler("kick", function(plr,cmd,cel,...)
if getAdmin(plr,4) or getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) then
local reason = table.concat({...}, " ")
if not cel or not reason then
outputChatBox("* U?ycie: /kick <nick/ID> <pow?d>", plr)
return
end
local target = exports["ogrpg-core"]:findPlayer(plr,cel)
if not target then
triggerClientEvent(plr, "iyw_notifications:send", plr, "error", "Nie znaleziono podanego gracza.")
return
end
exports["ogrpg-db"]:dbSet("insert into kartoteka (typ,karajacy,data,powod,ofiara) VALUES(?,?,NOW(),?,?)", "KICK", plr.name:gsub("#%x%x%x%x%x%x",""), reason, getElementData(target, "player:uid"))
triggerClientEvent(root, "adminRender", root, "Gracz "..getPlayerName(target).." zosta? wyrzucony przez "..plr.name..", pow?d: "..reason.."")
exports["ogrpg-db"]:dbSet("INSERT INTO admin_logs_cmd (uid,moderator,cmd) VALUES (?,?,?)", getElementData(plr,"player:uid"), plr.name:gsub("#%x%x%x%x%x%x",""), "kick "..getPlayerName(target).."")
kickPlayer(target, plr, r...
Witam, mam pytanie, jak zrobi? system poziom?w + exp taki, ?e co ile? tam expa jest poziom wy?ej? Oczywi?cie chcia?bym, ?eby to wszystko si? zapisywa?o w Dini (tak pewnie stare i jakie? MySQL lepsze) ale ucz? si? w PAWNO i chcia?bym wiedzie? jak to dzia?a i co musz? zrobi? po kolei itd.
1. Jak zrobi? komend? i czy wgl si? da co? takiego , ?e wpisuje komende /niewidzialny i ten gracz staje sie wlasnie niewidzialny dla innych graczy ale nie na minimapce a og?lnie po prostu abym widzial innych graczy stojac obok nich a oni mnie nie
2.Chce aby po wcisnieciu przycisku wroc /buttona wraca?o zn?w do dialogu tego co wcze?niej lecz nie wraca dlaczego??
Oto kod Id dialog?w chyba jest dobre ;c
[code] if(dialogid == REJESTRACJA2)
{
if(response == 1)
{
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid, SKINYREJE1, DIALOG_STYLE_LIST, "{D70000}Wybierz profesj?", "{05FF00}Stalowy wojownikn{05FF00}Wojownik rozpaczyn{05FF00}Stalowa wojowniczkan{05FF00}Wojowniczka rozpaczyn", "Wybierz", "Wr??");