Norbert1234
Nie umiem w LUA
Wiek: 22 Na forum: 3988 dni Posty: 319
Nick w MP: Gusterowskyy
Piwa : 242
Witam, czemu to nie dzia?a?
c:
elseif isMouseIn ( screenW * 0.5062 , screenH * 0.6704 , screenW * 0.1036 , screenH * 0.0537 ) and dgsGetVisible ( combo ) == true then
-- to 149 local selected = dgsComboBoxGetSelected ( combo )
local selected2 = dgsGridListGetSelectedItem ( grid )
if selected ~= - 1 and selected2 ~= - 1 then
local nick = dgsGridListGetItemText ( grid , selected2 , 1 )
triggerServerEvent ( "faction:editgracz" , resourceRoot , localPlayer , rank , player , rank2 , selected + 1 , dgsComboBoxGetItemText ( combo , selected ))
end
s:
addEvent ( "faction:editgracz" , true )
addEventHandler ( "faction:editgracz" , resourceRoot , function( client , rank , player , rank2 )
local q2 = exports . rpg_mysql : mysql_query ( "select * from rpg_accounts where username=?" , getPlayerName ( client ))
if q2 [ 1 ][ "frank" ] == 11 or q2 [ 1 ][ "frank" ] == 10 then
local q = exports . rpg_mysql : mysql_query ( "select * from rpg_accounts where username=?" , player )
if q [ 1 ][ "frank" ] == 11 then
exports . rpg_noti : createNotification ( client , "error" , "Nie mo?esz edytowa? Lidera." )
return
end
if q2 [ 1 ][ "frank" ] == 10 and rank == 10 then
exports . rpg_noti : createNotification ( client , "error" , "Nie mo?esz nikomu da? V-Lidera." )
return
end
exports . rpg_mysql : mysql_query ( "update rpg_accounts set frank=? where username=?" , rank , player )
exports . rpg_noti : createNotification ( client , "info" , "Edytowano gracza " .. player .. " na rang? " .. rank2 )
local target = findPlayer ( client , player )
if target then
outputChatBox ( "Twoje informacje w frakcji zosta?y zaaktualizowane." , target )
end
end
end )
db3 : 149 : attempt to call global 'dgsComboBoxGetSelected' ( a nill value )