Wysłany: 2017-02-04, 18:38
P.Wiśnia
Programista LUA
Wiek: 24 Na forum: 4044 dni Posty: 568
Nick w MP: P.Wiśnia
Piwa : 376
Mam problem poniewaz jak tworze organizacje to zamiast nazwy organizacji mam false.
wm . edit = guiCreateEdit ( 0.35 , 0.84 , 0.28 , 0.11 , "" , true , wm . window )
addEventHandler ( "onClientGUIClick" , root , function( btn , state )
if source == wm . submit then
local nazwa = tostring ( guiGridListGetItemText ( wm . edit , selectedRow , 2 ))
triggerServerEvent ( "zalozs" , localPlayer , nazwa )
end
if source == wm . close then
if guiGetVisible ( wm . window ) == true then
showCursor ( false )
guiSetVisible ( wm . window , false )
end
end
end )
Wysłany: 2017-02-04, 18:57
amited
Wiek: 26 Na forum: 3714 dni Posty: 1233
Nick w MP: Amited
Piwa : 512
wm . edit = guiCreateEdit ( 0.35 , 0.84 , 0.28 , 0.11 , "" , true , wm . window )
addEventHandler ( "onClientGUIClick" , root , function( btn , state )
if source == wm . submit then
local selectRow =(...)
local nazwa = guiGridListGetItemText ( wm . edit , selectedRow , 2 )
if not nazwa then outputChatBox ( "Wpisz nazwe org!" , 231 , 217 , 176 , true ) return end
triggerServerEvent ( "zalozs" , localPlayer , nazwa )
end
if source == wm . close then
if guiGetVisible ( wm . window ) == true then
showCursor ( false )
guiSetVisible ( wm . window , false )
end
end
end )
Podpis
"amited" napisał/a :
Tagi: pobieranie :: danych
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: