Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2017-02-10, 18:32


mis14







Wiek: 25
Na forum: 3924 dni
Posty: 185

Piwa: 73

Respekt: -149

witam mam kilku krotny zapis mysql log?w nie wiem czym to jest spowodowane
function getAdmin(playerlevel)
  local r exports["goyd-db"]:dbGet("SELECT * FROM ogrpg_admins WHERE serial=? AND level=?"getPlayerSerial(player),serial)
  if and #r > 0 then
    return true
  else
    return false
  end
end

function isAdmin(plr)
  if getAdmin(plr,1) or getAdmin(plr2) or getAdmin(plr3) or getAdmin(plr4then
    return true
  else
    return false
  end
end

    addCommandHandler("v", function(plrcmd, ...)
  if not getElementData(plr"player:premium")~= false and not isAdmin(plr)  ~= false  then outputChatBox("Musisz posiada? status premium by pisa? na czacie globalnym!",plr,78,255,0) return end
    

    local message table.concat ( { ... }, " " )
    local name getPlayerName(plr):gsub("#%x%x%x%x%x%x","")
    for _,p in pairs(getElementsByType("player")) do
 if getElementData(p,"player:premium") or getAdmin(p1) or getAdmin(p2) or getAdmin(p3) or getAdmin(p4)  then
    outputChatBox("#FFC000[PREMIUM] ["..getElementData(plr,"id").."]"..name.."#ffffff: "..message:gsub("#%x%x%x%x%x%x","")..""p255255255true)
end
local q string.format("Czat v>"..getElementData(plr,"id").."]"..name..": "..message:gsub("#%x%x%x%x%x%x",""))
        triggerEvent("admin:logs"rootq)
        --triggerClientEvent(root"admin:addText"rootq)
    triggerClientEvent("onDebugMessage"resourceRootq,1"/v")
    --outputServerLog(desc:gsub("#%x%x%x%x%x%x",""))
end
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-02-10, 18:41


_Haze

Peace Yo!






Wiek: 24
Na forum: 4184 dni
Posty: 1648
Nick w MP: Haze

Piwa: 2628

Respekt: 1020
Respekt: 1020

mis14, masz to w p?tli dla graczy czyli tworzy tyle razy ile jest graczy.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-02-10, 18:49


mis14







Wiek: 25
Na forum: 3924 dni
Posty: 185

Piwa: 73

Respekt: -149

a jak usun?? t? p?tle

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-02-10, 19:39


_Haze

Peace Yo!






Wiek: 24
Na forum: 4184 dni
Posty: 1648
Nick w MP: Haze

Piwa: 2628

Respekt: 1020
Respekt: 1020

mis14,

function getAdmin(playerlevel)
  local r exports["goyd-db"]:dbGet("SELECT * FROM ogrpg_admins WHERE serial=? AND level=?"getPlayerSerial(player),serial)
  if and #r > 0 then
    return true
  else
    return false
  end
end
 
function isAdmin(plr)
  if getAdmin(plr,1) or getAdmin(plr2) or getAdmin(plr3) or getAdmin(plr4then
    return true
  else
    return false
  end
end
 
    addCommandHandler("v", function(plrcmd, ...)
  if not getElementData(plr"player:premium")~= false and not isAdmin(plr)  ~= false  then outputChatBox("Musisz posiada? status premium by pisa? na czacie globalnym!",plr,78,255,0) return end
   
 
    local message table.concat ( { ... }, " " )
    local name getPlayerName(plr):gsub("#%x%x%x%x%x%x","")
    for _,p in pairs(getElementsByType("player")) do
 if getElementData(p,"player:premium") or getAdmin(p1) or getAdmin(p2) or getAdmin(p3) or getAdmin(p4)  then
    outputChatBox("#FFC000[PREMIUM] ["..getElementData(plr,"id").."]"..name.."#ffffff: "..message:gsub("#%x%x%x%x%x%x","")..""p255255255true)
end
local q string.format("Czat v>"..getElementData(plr,"id").."]"..name..": "..message:gsub("#%x%x%x%x%x%x",""))
    --outputServerLog(desc:gsub("#%x%x%x%x%x%x",""))
end
        triggerEvent("admin:logs"rootq)
        --triggerClientEvent(root"admin:addText"rootq)
    triggerClientEvent("onDebugMessage"resourceRootq,1"/v")
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-02-10, 19:59


mis14







Wiek: 25
Na forum: 3924 dni
Posty: 185

Piwa: 73

Respekt: -149

po zrobieniu tego wywali?o mi
[2017-02-10 19:55ERROR: [SKRYPTY]\[ogrpg]\dutyadmin\client.lua:211bad argument #1 to 'format' (string expected, got nil)


-- Screen resolution
screenWidthscreenHeight guiGetScreenSize()

-- [Settingsvariables]
-- Colors
bgcolor         tocolor(000200)            -- Debugchat background color
bgcolor         tocolor(303030200)        -- Debugchat background color
title_color     tocolor(255255255)        -- Window title color
title_bgcolor    tocolor(150150150200)    -- Window title background color
tab_bgcolor     tocolor(000100)            -- Inactive tab background color
-- Content
linecount 15
lineheight dxGetFontHeight(1.00"default-bold") + 2
-- Size
widthheight screenWidth 0.90lineheight linecount 20

-- Position and Moving
x= (screenWidth width) / 2screenHeight height 20

-- [Scriptvariables]
tabnames = { }
tabdata = { }
visible true
white tocolor(255255255)
red tocolor(25500)
black tocolor(000)
active false
hover false
close_hover false
moving false
mxmy 00
protected = {["CZAT"] = true, ["Nie dziala"] = true, ["PMY"] = true, ["PRZELEWY"] = true}
draganddrop_scrolling false
scrollbar_offset 0

function onClientRender()
    -- If we have nothing to showthen abort here
    if (not visiblethen
        return
    end

    -- Cache the positionto alter it when we move the window
    local xxy

    -- Adjust the position, if we are moving the window
    if (movingthen
        if (not (isCursorShowing() or isChatBoxInputActive() or isConsoleActive()) or isMainMenuActive()) then
            moving false
            mxmy 00
        else
            mx
            y my
        end
    end

    -- Draw the title background
    dxDrawRectangle(xy20heighttitle_bgcolortrue)

    -- Draw the content background
    dxDrawRectangle(2020width 30height 20bgcolortrue)

    -- Draw title
    dxDrawText("Konsola Pomocy"31height 3height 1black1.0"default-bold""center""top"truefalsetruefalsetrue270)
    dxDrawText("Konsola Pomocy"2yheight 2heighttitle_color1.0"default-bold""center""top"truefalsetruefalsetrue270)

    -- Draw move icon
    dxDrawImage(221616"images/move_icon.png"000blacktrue)

    -- Left tab indent
    local w 20

    -- Draw tabs
    for itab in pairs(tabnames) do
        -- Get the tab name
        local name tab.friendlyname

        -- Get the tab information
        local data tabdata[tab.name]

        -- Only render visible tabs
        if (data.visiblethen
            -- Add the unseen counter, if the tab is not active
            if (active ~= tab.namethen
                name name .. " (" .. tostring(data.unseen) .. ")"
            end

            -- Get the actual tab name width
            local font_width dxGetTextWidth(name1.0"default-bold")
            local padding = (active == tab.name) and 20 or 0
            local margin = (active == tab.name and not protected[active]) and 20 or 0
            local width font_width padding margin
            
            -- Draw tab background
            dxDrawRectangle(wywidth20, (active == tab.name) and bgcolor or tab_bgcolortrue)
            
            -- Draw tab text
            if (active == tab.namethen
                -- Draw the tab name
                dxDrawText(name11+ (font_width padding) + 121black1.0"default-bold""center""center"truefalsetruefalsetrue)
                dxDrawText(namewy+ (font_width padding), 20tab.color1.0"default-bold""center""center"truefalsetruefalsetrue)
                
                -- Draw the close 'X' text
                if (not protected[name]) then
                    dxDrawText("[X]"width marginywidth20, (close_hover) and red or white0.75"clear""center""center"truefalsetruefalsetrue)
                end

                -- Draw tab pause/running icon
                if (data.indexthen
                    dxDrawImage(2201616"images/continue_icon.png"000blacktrue)
                else
                    dxDrawImage(2201616"images/pause_icon.png"000blacktrue)
                end
            else
                -- Draw the tab name
                dxDrawText(namew1width21black0.80"default-bold""center""center"truefalsetruefalsetrue)
                dxDrawText(namewywidth20tab.color0.80"default-bold""center""center"truefalsetruefalsetrue)
            end
            
            -- Add the tab width to the x position
            w width
        end
    end

    -- Get the active tab information
    local data tabdata[active]

    -- Check the data before continueing
    if (type(data) ~= "table"then
        return
    end

    -- Only show the scrollbar if neccessary
    if (type(data.index) == "number" and (data.count linecount) > 0then
        -- Calculate how much we show from the actual count
        local visiblefactor math.min(linecount data.count1.0)

        -- Make sure we have a minimum factor
        visiblefactor math.max(visiblefactor0.05)

        -- Calculate the bar height
        local barheight = (height 20) * visiblefactor

        -- Calculate the position
        local position math.min(data.index data.count1.0 visiblefactor) * (height 20)

        -- Draw the scrollbar background
        dxDrawRectangle(width 102010height 20title_bgcolortrue)

        -- Draw the scrollbar
        dxDrawRectangle(width 1020 position10barheightwhitetrue)
    end

    -- Keep the log empty when we move the window
    if (movingthen
        return
    end

    -- Position from top
    local h 20

    -- Draw lines
    if (active and tabdata[active]) then
        -- Start from a specific index or at the end
        local from math.max(0, (data.index or (data.count linecount)))

        -- Draw each line
        for 1, (linecount) do
            -- Calculate the index
            local index from i

            -- Abort if the line does not exist
            if (not data.messages[index]) then
                break
            end

            -- Get the message information
            local message data.messages[index]

            -- Color
            local color = (hover and hover == i) and data.color or white

            -- Draw the message source
            dxDrawText(index25h25 45lineheightdata.color1.0"default-bold""left""center"truefalsetruefalsetrue)
            
            -- Draw the message timestamp
            dxDrawText(message.stamp25 45h25 110lineheightcolor1.0"default-bold""left""center"truefalsetruefalsetrue)
            
            -- Draw the actual text
            dxDrawText(message.text25 110hwidth 15 20lineheightcolor1.0"default-bold""left""center"truefalsetruefalsetrue)

            -- Increase the top position
            h lineheight
        end
    end
end




function onClientDebugMessage(messagelevelfrom)
    -- Default value for 'from'
    if (not fromthen
        from "Unknow"
    end

    -- Get the correct tab from the level
    local tab = {"CZAT""RAPORTY""PMY""PRZELEWY""INNE"}

    -- Show the source, if it's not the info tab
    outputDebugTab(tab[level], ("%s"):format(message):gsub("#%x%x%x%x%x%x",""), tostring(from))
end

function onDebugMessage(message, level, from)
    -- Route the message through our other callback
    onClientDebugMessage(message, level, from)
end

function onClientCursorMove(_, _, cursorX ,cursorY)
    -- Apply the position if we are moving the window
    if (moving) then
        x = cursorX
        y = cursorY

        return
    end

    -- Reset hover
    hover = false
    close_hover = false

    -- Abort if we do not show the mouse (e.g. main menu)
    if (not (isCursorShowing() or isChatBoxInputActive() or isConsoleActive()) or isMainMenuActive()) then
        return
    end

    --[moving Scrollbar]
    if (draganddrop_scrolling) then
        -- Get the active tab information
        local data = tabdata[active]

        -- Check the data before continueing
        if (type(data) ~= "table") then
            return
        end

        -- Calculate how much we show from the actual count
        local visiblefactor = math.min(linecount / data.count, 1.0)

        -- Make sure we have a minimum factor
        visiblefactor = math.max(visiblefactor, 0.05)

        -- Calculate the bar height
        local barheight = (height - 20) * visiblefactor

        -- Calculate the index
        data.index = math.floor(math.min(1, math.max(0, cursorY - (y + 20 + (barheight * scrollbar_offset))) / (height - 20)) * data.count)

        -- Fix to never show empty lines at the bottom
        data.index = math.min(data.index, math.max(0, data.count - linecount))

        return
    end

    --[on Tabs]
    if (cursorY >= y and cursorY <= (y + 20)) then
        if ((cursorX - x) > 20 and cursorX <= (x + width)) then
            -- Abort if it's not neccessary
            if (not active or protected[active]) then
                return
            end

            -- Left position (for tab search)
            local w 20

            -- Loop through each tab
            for itab in pairs(tabnames) do
                -- Get the tab name
                local name tab.friendlyname

                -- Get the tab information
                local data tabdata[tab.name]

                -- Only mind visible tabs
                if (data.visiblethen
                    -- Add the unseen counter if it's not the active tab
                    if (active ~= tab.name) then
                        name = name .. " (" .. tostring(data.unseen) .. ")"
                    end

                    -- Calculate the tab name width
                    local font_width = dxGetTextWidth(name, 1.0, "default-bold")
                    local padding = (active == tab.name) and 20 or 0
                    local margin = (active == tab.name and not protected[active]) and 20 or 0
                    local width = font_width + padding + margin

                    -- Only check for the active tab
                    if (active == tab.name) then
                        -- Check if the cursor..
                        -- ..is on the tab
                        if (cursorX > w and cursorX <= w + width) then
                            -- ..and on the "[x]" text button
                            if (cursorX >= (w + width - 20) and cursorX <= (w + width)) then
                                close_hover = true
                            end

                            break
                        end
                    end

                    -- Increase the left position
                    w = w + width
                end
            end
        end
    end

    --[on Content]
    if (cursorY > (x + 20) and cursorY <= (y + height)) then
        if ((cursorX - x) > 20 and cursorX < (x + width - 10)) then
            -- Apply the line rownumber
            hover = math.floor((cursorY - y - 20) / lineheight) + 1
        end
    end
end

function onClientKey(button, holding)
    -- Get the current cursor position
    local cursorX, cursorY = getCursorPosition()

    -- Abort if the mouse is not active
    if (not cursorX) then
        return
    end

    -- Cache the position
    local windowX, windowY = x - mx, y - my

    -- Calculate the absolute cursor position
    cursorX, cursorY = cursorX * screenWidth, cursorY * screenHeight

    -- We dropped the scrollbar
    if (button == "mouse1" and draganddrop_scrolling and not holding) then
        -- Disable drag and drop
        draganddrop_scrolling = false

        -- Reset the scrollbar offset
        scrollbar_offset = 0

        -- Get the active tab information
        local data = tabdata[active]

        -- Check the data before continueing
        if (type(data) ~= "table") then
            return
        end

        -- Hide the scrollbar if we reached the end of the log
        if (data.index) then
            if (data.index >= (data.count - linecount)) then
                data.index = false
            end
        end

        return
    end

    -- Abort if the position is outside our debug console
    if (cursorX < windowX or cursorX > (windowX + width)) then
        return
    end
    if (cursorY < windowY or cursorY > (windowY + height)) then
        return
    end

    -- Left mouse click
    if (button ~= "mouse1") then
        -- Nothing to check for that state
        if (not holding) then
            return
        end

        -- Don'continue if we are moving the scrollbar
        if (draganddrop_scrollingthen
            return
        end

        -- Only fetch scrolling on content or scrollbar
        if (cursorX <= windowX 20 or cursorX > (windowX width)) then
            return
        end
        if (cursorY <= windowY 20 or cursorY windowY heightthen
            return
        end

        -- Get the active tab information
        local data tabdata[active]

        -- Check the data before continueing
        if (type(data) ~= "table"then
            return
        end

        -- Scrolling Down
        if (button == "mouse_wheel_down"then
            -- Continue if we didn't reach the bottom yet
            if (data.index) then
                -- Increase the index by 2 (scroll step)
                data.index = data.index + 2

                -- Hide the scrollbar if we reached the end
                if (data.index >= (data.count - linecount)) then
                    data.index = false
                end
            end

        -- Scrolling Up
        elseif (button == "mouse_wheel_up") then
            -- Do nothing when there less lines the linecount
            if ((data.count - linecount) <= 0) then
                return
            end

            -- If we are not showing any specific index then show the first visible one (on the top)
            if (not data.index) then
                data.index = data.count - linecount
            end

            -- Decrease the index by 2 (scroll step)
            data.index = math.max(0, data.index - 2)
        end

        return
    end

    -- [Title bar]
    if (cursorX - windowX <= 20) then
        -- Get the icon number
        local number = math.max(1, math.ceil((cursorY - windowY) / 20))

        -- Move icon
        if (number == 1) then
            -- Check if...
            -- ...we are already moving the window and released it
            if (moving) then
                -- Stop moving
                moving = false

                -- Fix the window position with the offset
                x = cursorX - mx
                y = cursorY - my

                -- Reset the offset
                mx, my = 0, 0
            -- ...we are trying to move the window
            else
                -- Calculate the offset from window (top/left) to cursor
                mx, my = cursorX - x, cursorY - y

                -- Clip the window to the cursor position
                x = cursorX
                y = cursorY

                -- Start moving
                moving = true
            end
        -- Stop/Start icon
        elseif (number == 2 and holding) then
            -- Abort if we have no active tab or if it has no information
            if (not active or not tabdata[active]) then 
                return
            end

            -- Get the active tab information
            local data = tabdata[active]

            if (data.index) then
                -- Show always the latest lines
                data.index = false
            else
                -- Fix the lines at the current position
                data.index = data.count - linecount
            end
        end

        return
    end

    -- [Tab bar]
    if ((cursorY - windowY) <= 20) then
        -- Ignore if we are holding the click
        if (holding) then
            return
        end

        -- Left position (for tab search)
        local w = windowX + 20

        -- Loop through each tab
        for i, tab in pairs(tabnames) do
            -- Get the tab name
            local name = tab.friendlyname

            -- Get the tab information
            local data = tabdata[tab.name]

            -- Only mind visible tabs
            if (data.visible) then
                -- Add the unseen counter if it's not the active tab
                if (data and active ~= tab.namethen
                    name name .. " (" .. tostring(data.unseen) .. ")"
                end

                -- Calculate the tab name width
                local font_width dxGetTextWidth(name1.0"default-bold")
                local padding = (active == tab.name) and 20 or 0
                local margin = (active == tab.name and not protected[active]) and 20 or 0
                local width font_width padding margin

                -- Check if the cursor..
                -- ..is on the tab
                if (cursorX and cursorX <= widththen
                    -- Check if we hit the text-closebutton
                    if (close_hoverthen
                        -- Hide the tab
                        toggleDebugTab(tab.namefalse)

                        -- Fix the hover state (clicking one more time would close the next tab)
                        close_hover false
                    else
                        -- Switch to the clicked tab
                        active tab.name

                        -- Reset the unseen counter
                        data.unseen 0
                    end
                    break
                -- ..is not on the tab
                else
                    width
                end
            end
        end

        return
    end

    -- [Scroll bar]
    if ((cursorX windowX) >= (width 10)) then
        -- Released the mouse click over the scrollbar (no scrolling active)
        if (not draganddrop_scrolling and not holdingthen
            return
        end

        -- Get the active tab information
        local data tabdata[active]

        -- Check the data before continueing
        if (type(data) ~= "table"then
            return
        end

        -- Check if the scrollbar is visible
        if (type(data.index) == "number" and (data.count linecount) > 0then
            -- Calculate how much we show from the actual count
            local visiblefactor math.min(linecount data.count1.0)

            -- Make sure we have a minimum factor
            visiblefactor math.max(visiblefactor0.05)

            -- Calculate the bar height
            local barheight = (height 20) * visiblefactor

            -- Calculate the position
            local position math.min(data.index data.count1.0 visiblefactor) * (height 20)

            -- Check if the cursor click happened on the scrollbar
            if (cursorY >= (windowY 20 position) and cursorY <= (windowY 20 position barheight)) then
                -- Signalize that we are moving the scrollbar with the mouse
                draganddrop_scrolling true

                -- Calculate the offset from the mouse to the scrollbar (relative positioning)
                scrollbar_offset math.min(1math.max(0, (cursorY - (windowY 20 position)) / barheight))
            end
        end

        return
    end

    -- [Content]
    if (not hover or not active or not tabdata[active]) then
        return
    end

    -- Get the tab information
    local data tabdata[active]

    -- Start from a specific index or at the end
    local from math.max(1data.index or (data.count linecount 1))

    -- Get the hovered message
    local index from hover 1

    -- Get the message information
    local message tabdata[active].messages[index]
    if (not messagethen
        return
    end

    -- Set the clipboard
    setClipboard(("%s %s %s"):format(message.frommessage.stampmessage.text))
end

addEventHandler("onClientResourceStart"resourceRoot,
    function ()
        -- Standard types
        createDebugTab("CZAT"tocolor(02550), "CZAT")
        createDebugTab("PMY"tocolor(00180), "PMY")
        createDebugTab("RAPORTY"tocolor(25500), "RAPORTY")
        createDebugTab("PRZELEWY"tocolor(015080), "PRZELEWY")
        createDebugTab("INNE"tocolor(130,30,180), "INNE")
        addEvent("onDebugMessage"true)
        addEventHandler("onDebugMessage"rootonDebugMessage)
        bindKey("f3""up",
            function ()
                showCursor(not isCursorShowing())
            end
        )
    end
)
addCommandHandler("ucho", function(cmd)
    if not getElementData(localPlayer"player:admin") == true then return end
    if getElementData(localPlayer"player:console") == false then
        addEventHandler("onClientRender"rootonClientRender)
        addEventHandler("onClientCursorMove"rootonClientCursorMove)
        addEventHandler("onClientKey"rootonClientKey)
        setElementData(localPlayer"player:console"true)
    else
        removeEventHandler("onClientRender"rootonClientRender)
        removeEventHandler("onClientCursorMove"rootonClientCursorMove)
        removeEventHandler("onClientKey"rootonClientKey)
        setElementData(localPlayer"player:console"false)
    end
end)

function outputDebugTab(namemessagefrom)
    assert(type(name) == "string" and #name > 0)

    if (not tabdata[name]) then
        tabdata[name] = {unseen 0count 0index falsemessages = {}, color colorvisible false}
    end
    if (active ~= namethen
        tabdata[name].unseen tabdata[name].unseen 1
    end
    tabdata[name].count tabdata[name].count 1

    local t getRealTime()
    local stamp = ("[%02d:%02d:%02d]"):format(t.hourt.minutet.second)

    table.insert(tabdata[name].messages, {text messagefrom fromstamp stampcount tabdata[name].count})
end

function clearDebugTab(name)
    assert(type(name) == "string" and #name > 0)

    if (not tabdata[name]) then
        return false"tab does not exist"
    end

    local backup tabdata[name].color
    tabdata[name] = {unseen 0count 0index falsemessages = {}, color backup}

    return true
end

function toggleDebugTab(nametoggle)
    assert(type(name) == "string" and #name > 0)

    if (not tabdata[name]) then
        return false"tab does not exist"
    end
    if (protected[name]) then
        return false"tab is protected"
    end

    tabdata[name].visible = (toggle and true or false)

    if (active == name and not tabdata[name].visiblethen
        fixActiveTab()
    end
end

function deleteDebugTab(name)
    assert(type(name) == "string" and #name > 0)

    if (not tabdata[name]) then
        return false"tab does not exist"
    end
    if (protected[name]) then
        return false"tab is protected"
    end

    tabdata[name] = nil

    for indextab in pairs(tabnames) do
        if (tab.name == namethen
            table.remove(tabnamesindex)
            fixActiveTab(index)
        end
    end

    return true
end

function createDebugTab(namecolorfriendlyname)
    assert(type(name) == "string" and #name > 0)

    if (tabdata[name] and protected[name]) then
        return false
    end

    if (type(color) ~= "number"then
        color tocolor(255255255)
    end
    if (not friendlynamethen
        friendlyname name
    end

    if (not tabdata[name]) then
        tabdata[name] = {unseen 0count 0index falsemessages = {}, color colorvisible true}
    else
        tabdata[name].visible true
        tabdata[name].color color
    end

    for indextab in pairs(tabnames) do
        if (tab.name == namethen
            tab.color color
            tab.friendlyname friendlyname
            return true
        end
    end

    table.insert(tabnames, {name namecolor colorfriendlyname friendlyname})

    if (not activethen
        active "info"
    end

    return true
end

function fixActiveTab(index)
    if (not index and not activethen
        return false
    end

    if (not indexthen
        for ktab in pairs(tabnames) do
            if (tab.name == activethen
                index k
                break
            end
        end
        if (not indexthen
            return
        end
    end

    while (index >= 1) do
        local name tabnames[index 1].name
        if (tabdata[name] and tabdata[name].visiblethen
            active name
            break
        else
            index index 1
        end
    end
end




Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-02-10, 21:34


psychol.







Wiek: 23
Na forum: 3502 dni
Posty: 225
Nick w MP: psychol.

Piwa: 2998

Respekt: 244,5
Respekt: 244,5Respekt: 244,5

mis14, nie wiem po co tu piszesz przecie? jeste? bardzo dobrym skrypterem i nie potrzebujesz pomocy...

Podpis


Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-02-10, 22:16


mis14







Wiek: 25
Na forum: 3924 dni
Posty: 185

Piwa: 73

Respekt: -149

lock

Postaw piwo autorowi tego posta
 

 
Tagi: zapisz :: bazy :: danych
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » zapisz do bazy danych Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku