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
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...
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?.