Jump to content

#Madara

Members
  • Posts

    107
  • Joined

  • Last visited

Details

  • Gang
    UchichaClan

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

#Madara's Achievements

Punk-@ss B*tch

Punk-@ss B*tch (12/54)

0

Reputation

  1. hi guys , i make gridlist connected with executeSQLQuery everythink work but only player account colmun in the executeSQLQuery i want to put it in the gridlist but it's say to me nil like this : Client : addEventHandler("onClientResourceStart", resourceRoot, function() WindowHistory = guiCreateWindow(390, 140, 590, 572, "History Za5rafa", false) guiWindowSetSizable(WindowHistory, false) guiSetAlpha(WindowHistory, 1.00) guiSetProperty(WindowHistory, "CaptionColour", "FFFFFF00") guiSetVisible(WindowHistory,false) HistoryGridList = guiCreateGridList(13, 47, 567, 515, false, WindowHistory) guiGridListAddColumn(HistoryGridList, "# Za7rafa :'", 0.3) guiGridListAddColumn(HistoryGridList, "# Account Player : ", 0.3) ExitHistory = guiCreateButton(542, 20, 38, 22, "X", false, WindowHistory) guiSetFont(ExitHistory, "default-bold-small") guiSetProperty(ExitHistory, "NormalTextColour", "FFFFFF00") end ) -------------------------------------------- addEventHandler("onClientGUIClick",root, function() if (source == HistoryZa5rafa) then guiSetVisible(WindowAccounts,false) guiSetVisible(WindowHistory,true) triggerServerEvent("History1",localPlayer) end end ) addEvent("History2",true) addEventHandler("History2",root, function(ExecuteSQLQuery) for i , v in ipairs(ExecuteSQLQuery) do local r = guiGridListAddRow(HistoryGridList) guiGridListSetItemText(HistoryGridList, r, 1, tostring(v.NameMoza5rf), false, false) guiGridListSetItemText(HistoryGridList, r, 2, tostring(v.aa), false, false) end end ) addEventHandler("onClientGUIClick",root, function() if (source == ExitHistory) then guiSetVisible(WindowAccounts,true) guiSetVisible(WindowHistory,false) end end ) Server : addEventHandler('onResourceStart',resourceRoot, function () local CreateHistoryTable = executeSQLQuery ('CREATE TABLE IF NOT EXISTS `History1` ( aa , NameMoza5rf ) ') if ( CreateHistoryTable ) then outputDebugString('Create [ VIP System ] History Za5rf Table done .') end ) addEvent("SetNameNew",true) addEventHandler("SetNameNew",root, function (NewName) local Account = getPlayerAccount(source) executeSQLQuery ( "INSERT INTO `History1` ( aa , NameMoza5rf ) VALUES(?,?)",Account,NewName ) outputChatBox("#FF0000* Your New Name In The Chat Now #FFF000[ ".. NewName .. " ]",source,255,255,255,true) end end ) addEvent("History1",true) addEventHandler("History1",root, function() local selectSQL = executeSQLQuery("SELECT * FROM `History1`") if ( type (selectSQL) == "table" and #selectSQL == 0 or not selectSQL ) then return end triggerClientEvent("History2",source,selectSQL) end ) i think it's should work but i don't know why it's dosen't work .
  2. Final Cam - اخر واحد كيف مات زي الي في بلاك اوبس و و زي بلاك اوبس الي اذا مات يوريه كيف مات
  3. thanks , i fix it's the problem was i put wrong colmun name
  4. hi guys , i want delete what i select from grid list from sql lite , i make it but i don't know why it's don't work no debug . Client : addEventHandler("onClientGUIClick",root, function() if ( source == Remove ) then local xText = guiGridListGetItemText ( GridList, guiGridListGetSelectedItem ( GridList ), 1 ) if ( xText ~= "" or xText ~= " ") then triggerServerEvent("RemoveFromDataBase",localPlayer,xText) local clear = guiGridListClear ( GridList ) if ( clear ) then triggerServerEvent("requestData", localPlayer) end end end end ) Server : addEvent("RemoveFromDataBase",true) addEventHandler("RemoveFromDataBase",root, function(text) executeSQLQuery("DELETE FROM `VIP System` WHERE PlayerAccount=?", text) end )
  5. قصدك الألمنت داتا ؟
  6. هذا الي اقصده ض1
  7. الداتا ماتنفع مع طلبه لان لو خرج من السيرفر الداتا بتروح منه .
  8. function isEventHandlerAdded( sEventName, pElementAttachedTo, func ) if type( sEventName ) == 'string' and isElement( pElementAttachedTo ) and type( func ) == 'function' then local aAttachedFunctions = getEventHandlers( sEventName, pElementAttachedTo ) if type( aAttachedFunctions ) == 'table' and #aAttachedFunctions > 0 then for i, v in ipairs( aAttachedFunctions ) do if v == func then return true end end end end return false end addEventHandler("onClientGUIClick",root, function() if ( source == أسم الزر ) then if isEventHandlerAdded( 'onClientRender', root,أسم وظيفة الدي أكس) then removeEventHandler( 'onClientRender', root, أسم وظيفة الدي أكس) showCursor(false) else addEventHandler( 'onClientRender', root, أسم وظيفة الدي أكس) showCursor(true) end end end )
  9. localPlayer = للكلاينت فقط + x,y,z مو معرفين أنت وش تبي تسوي بالضبط ؟ كودك يصير كذا : addEvent ( "spa", true ) addEventHandler ( "spa", root, function ( ) setTimer(function ( ) spawnPlayer (source,x,y,z) end ,6000, 1) end)
×
×
  • Create New...