Jump to content

#Madara

Members
  • Posts

    107
  • Joined

  • Last visited

Everything posted by #Madara

  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)
  10. Client : addEventHandler("onClientGUIClick",root, function() if ( source == اسم الزر ) then local bind = guiGetText(اسم ايدت الــ Bind) if ( bind ~= " " or bind ~= "") then triggerServerEvent("RemoveBind",localPlayer,bind) end end end ) Server : addEvent("RemoveBind",true) addEventHandler("RemoveBind",root, function(i) for _,v in ipairs(getFunctionsBoundToKey(source,i))do unbindKey(source,tostring(i),"down") end end )
  11. Client : addEventHandler("onClientGUIClick",root, function() if ( source == اسم الزر ) then local bind = guiGetText(اسم ايدت الـ Bind) local say = guiGetText(اسم ايدت الـكلام) local color = guiGetText(اسم ايدت اللون) local playername = getPlayerName(localPlayer) if ( bind and say and color and playername ) then triggerServerEvent("Bind",localPlayer,bind,say,color,playername) elseif ( bind == "7" and say == "" and color == "" ) then triggerServerEvent("7",localPlayer) end end end ) Server : addEvent("Bind",true) addEventHandler("Bind",root, function(bind,say,color,playername) bindKey(source,tostring(bind),"down", function() outputChatBox ( " " .. playername .." : " .. color .. " " .. say .. " ",root,255,255,255,true) end ) end ) local keyTable = { "mouse1", "mouse2", "mouse3", "mouse4", "mouse5", "mouse_wheel_up", "mouse_wheel_down", "arrow_l", "arrow_u", "arrow_r", "arrow_d", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "num_0", "num_1", "num_2", "num_3", "num_4", "num_5", "num_6", "num_7", "num_8", "num_9", "num_mul", "num_add", "num_sep", "num_sub", "num_div", "num_dec", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", "backspace", "tab", "lalt", "ralt", "enter", "space", "pgup", "pgdn", "end", "home", "insert", "delete", "lshift", "rshift", "lctrl", "rctrl", "[", "]", "pause", "capslock", "scroll", ";", ",", "-", ".", "/", "#", "\\", "=" } addEvent("7",true) addEventHandler("7",root, function() for _,i in ipairs(keyTable)do for _,v in ipairs(getFunctionsBoundToKey(source,i))do unbindKey(source,tostring(i),"down") end end end )
  12. وهذا وش اجل ؟؟؟؟؟؟؟ أنت جربه أول
  13. ... والخ #FF0000 سويت لك اللوان الي هم Client : addEventHandler("onClientGUIClick",root, function() if ( source == اسم الزر ) then local bind = guiGetText(اسم ايدت الـ Bind) local say = guiGetText(اسم ايدت الـكلام) local color = guiGetText(اسم ايدت اللون) local playername = getPlayerName(localPlayer) if ( bind and say and color and playername ) then triggerServerEvent("Bind",localPlayer,bind,say,color,playername) end end end ) Server : addEvent("Bind",true) addEventHandler("Bind",root, function(bind,say,color,playername) bindKey(source,tostring(bind),"down", function() outputChatBox ( " " .. playername .." : " .. color .. " " .. say .. " ",root,255,255,255,true) end ) end )
  14. ممكن توضح لي المود الي تبي تسويه ؟
  15. جرب الكود ^ الخطأ كان أن ناقصك اند حق تحقق الي مامنه فايدة Value + انت تبي تعطي كل الاعبين حاط يعطي السورس الي هو ضغط الزر ويطلع الكلام الي في ايدت في الشات حق الي ضغط الزر ؟ local give = giveWeapon ( source, tonumber(aa), tonumber(bb) ) outputChatBox(tostring(cc), source , 255,255,255) المفروض كذا : local give = giveWeapon ( v, tonumber(aa), tonumber(bb) ) outputChatBox(tostring(cc), v , 255,255,255)
  16. Value = ?? addEvent ( "button1" , true ) addEventHandler ( "button1" , root function (aa,bb,cc) for k, v in ipairs ( getElementsByType ( "player" ) ) do local give = giveWeapon ( v, tonumber(aa), tonumber(bb) ) outputChatBox(tostring(cc), v , 255,255,255) end end )
×
×
  • Create New...