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: działać?
1. Czy to ma prawo działać?
Witam, chcia?em zrobi? bardziej zaawansowany system button?w, lecz napotka?em pewien problem. Polega on na tym, ?e nie mam ju? zielonego poj?cia jak do ka?dej metatablicy doda? funkcj? odpowiedzialn? za render :/


local BUTTON 
= {}
setmetatable(BUTTON, {__index BUTTON__call = function(tbl) return tbl end})
local button BUTTON()

local screen Vector2(guiGetScreenSize())
local max math.max
local scale 
max(screen.10800.65)


function 
Create(tbl)
    
setmetatable(tbl, {
        
__call = function(cls, ...)
            
local self = {}

            
setmetatable(self, {
                
__index cls
            
})

            return 
self
        end
    
})

    return 
tbl
end


function create(xywidthheight)
    return 
Create({xywidth widthheight height})
end


W og?le nasuwa si? pytanie czy takie co? ma sens i czy da si? tak zrobi?. Wracaj?c do tematu, chcia?bym ?eby kto? mnie poprowadzi? do zrobienia funkcji, kt?ra b?dzie pobiera? x, y, width, height z ka?dego stworzonego buttona .
2. Czy będzie coś takiego działać?
Prosz? wszystko z dok?adno?ci? sprawdzi?. Dzi?kuje.

[lua]
function guiGridListAddPlayers( GridList, Column, Section, Number )
if( getElementType( GridList ) == "gui-gridlist" ) then
assert( tonumber( Column ), "Bad argument @ 'guiGridListAddPlayers' [Expected number at argument 2, got " .. tostring(Column) .. "]" )
if( Section == false or Section == true ) then
if( Number == false or Number == true ) then
for _, player in ipairs( getElementsByType('player') ) do
guiGridListClear( GridList )
local Row = guiGridListAddRow( GridList )
guiGridListSetItemText( GridList, Row, Column, getPlayerName(player), Section, Number )
end
else
error("Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 4, got " .. tostring(Number) .. "]")
end
else
error("Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 3, got " .. tostring(Section) .. "]")
end
end
end

function guiGridListGetSelectedItemText ( gridList, column...
3. GTA V-Czy będzie działać?
Ram4gb
Procesor:AMD E-450 APU with Radeon(tm) HD Graphics 1,65 GHz
Karta graficzna: amd radeon hd 6320 graphics
B?dzie dzia?a? gta 5?
4. [INNE] Co zrobić żeby pobrana mapa zaczęła działać?
Cze?? !
W tym temacie chcia?bym powiedzie? o moim problemie mi?dzy innymi chodzi mi o to ?e gdy odpalam serwer w pobranej mapie np.Polski serwer zabawy,to wszystko si? w??cza a gra ?aduje lecz gdy wchodz? na serwer wyskakuje b??d "server closed the connection".Czy m?g? by mi kto? udzieli? rady co zrobi? poniewa? jestem pocz?tkuj?cym w gta samp i og?lnie w pawnie a chcia?em tylko zrobi? serwer ?eby ze znajomymi pogra?.Bardzo prosi? bym o nie zignorowanie mojego postu.A tym kt?rzy si? podejmi? pomocy serdecznie dzi?kuj?. :)