#Hulk

Members
  • Content count

    62
  • Joined

  • Last visited

Community Reputation

4 Neutral

About #Hulk

  • Rank
    Snitch
  • Birthday 30/10/2000

Details

  • Gang
    No One
  • Location
    Egypt
  • Interests
    Nothing
  1. Help with loop

    What should i do in this ? added return or what ?
  2. Help with loop

    Hello , I need help with this code please , wrong in line 4 : Bad argument #1 to 'pairs' (table expected, got number) local factionTable = getElementData(getLocalPlayer(), "faction") local organizedTable = {} for i, k in pairs(factionTable) do organizedTable[k] = i end --#Hulk for k, id in ipairs(organizedTable) do if id ~= factionID then ftab[id] = guiCreateTab(getFactionName(id), ftabs) setElementData(ftab[id], "factionID", id) addEventHandler("onClientGUITabSwitched", ftab[id], loadFaction, false) end end
  3. مشكلة كود pairs

    طيب اللوب الي تحت شغال تمام , ! حل ؟
  4. مشكلة كود pairs

    ايه المشكله ف اللوب بتاع FactionTable ?
  5. مشكلة كود pairs

    اظن انها متعرفه فوق ؟..
  6. مشكلة كود pairs

    السلام عليكم مشكله بسيطه , الصاق التاب باللوحه , الخطا السطر 4 Bad argument #1 to 'pairs' (table expected, got number) شكراا مقدما .. local factionTable = getElementData(getLocalPlayer(), "faction") local organizedTable = {} for i, k in pairs(factionTable) do organizedTable[k] = i end --#Hulk for k, id in ipairs(organizedTable) do if id ~= factionID then ftab[id] = guiCreateTab(getFactionName(id), ftabs) setElementData(ftab[id], "factionID", id) addEventHandler("onClientGUITabSwitched", ftab[id], loadFaction, false) end end
  7. نفس المشكله , الكود لمه بحدد وادوس Show بيجي نفس التكست الاول , المشكله بكود التحديد
  8. الحين فلسفه صارت مسبه , طيب الكود شغال تمام عندي وجربه , + م تستحق الرد
  9. عارف جربتها واشتغلت عندي , هو يتفلسف وخلاص , Server , executeSQLQuery( "CREATE TABLE IF NOT EXISTS `TEST` ( Edit1,Edit2 ) " ) addEvent ( "onSend;Report", true ) addEventHandler ( "onSend;Report", root, function ( Edit1,Edit2 ) if Edit1 and Edit1 then executeSQLQuery( 'INSERT INTO `TEST`( Edit1,Edit2 ) VALUES(?,?) ' , Edit1,Edit2 ) triggerEvent( "Refresh", root ) end end ) addEvent ( "Refresh", true ) addEventHandler ( "Refresh", root, function ( ) local SQLListe = executeSQLQuery ( "SELECT * FROM `TEST` " ) if #SQLListe ~= 0 then triggerClientEvent ( "Send2", root, SQLListe ) end end) + ماظن في داعي للاكواد السيرفر لان انا المشكله في تحديد الكلام التيكست بيكون ثابت ما يتحدث @Default#^ @Master_MTA <3
  10. الكود ك تجربه مش اكتر , في فلسفه ولا مساعده ؟
  11. تمام , الفكره ان الشكاوي توصل للادمن الي سيرياله موضوع , كل شخص بيرسل شكوه بتنحط في قريد ليست الادمن بيجي يشوفها بحدد ويفتح الرساله , الحين اذا ارسلت كذا شي بالقريد بيجي اول شي رسلته بس ما بيجي مضمون الرساله المحدده من القريد ليست يعني تيكست ثابت , الاكواد كامله , -- #Hulk local screenW, screenH = guiGetScreenSize() wnd = guiCreateWindow((screenW - 576) / 2, (screenH - 352) / 2, 576, 352, "Report Manager #Hulk", false) guiWindowSetSizable(wnd, false) guiSetVisible(wnd,false) editName = guiCreateEdit(10, 36, 296, 40, "", false, wnd) editDetails = guiCreateMemo(10, 86, 547, 173, "", false, wnd) label1 = guiCreateLabel(14, 21, 221, 15, "Your Name :", false, wnd) label3 = guiCreateLabel(478, 71, 89, 15, "Your Details :", false, wnd) label2 = guiCreateLabel(373, 21, 185, 19, "", false, wnd) send = guiCreateButton(206, 269, 155, 33, "Send", false, wnd) closeb = guiCreateButton(206, 309, 155, 33, "Close", false, wnd) ox = guiCreateLabel(10, 327, 177, 15, "", false, wnd) -- local screenW, screenH = guiGetScreenSize() wi = guiCreateWindow(573, 162, 736, 308, "Report Manager", false) guiWindowSetSizable(wi, false) guiSetVisible(wi,false) memoe = guiCreateMemo(9, 78, 716, 216, "", false, wi) guiMemoSetReadOnly(memoe, true) x = guiCreateButton(693, 26, 32, 23, "X", false, wi) adress = guiCreateMemo(10, 34, 258, 34, "", false, wi) guiMemoSetReadOnly(adress, true) ----- GUIEditor = { gridlist = {}, button = {} } local screenW, screenH = guiGetScreenSize() wnd_Console = guiCreateWindow((screenW - 728) / 2, (screenH - 276) / 2, 728, 276, "Lead Admin Report Manager Beta Version #Hulk", false) guiWindowSetSizable(wnd_Console, false) guiSetVisible(wnd_Console,false) GUIEditor.gridlist[1] = guiCreateGridList(11, 28, 562, 238, false, wnd_Console) guiGridListAddColumn(GUIEditor.gridlist[1], "Player Name", 0.5) guiGridListAddColumn(GUIEditor.gridlist[1], "Details", 0.5) GUIEditor.button[1] = guiCreateButton(587, 28, 131, 32, "Remove", false, wnd_Console) GUIEditor.button[2] = guiCreateButton(587, 70, 131, 32, "Show ", false, wnd_Console) GUIEditor.button[3] = guiCreateButton(587, 116, 131, 32, "Close", false, wnd_Console) btnr = guiCreateButton(1326, 645, 30, 29, "R", false) guiSetAlpha(btnr, 0.80) addEventHandler('onClientGUIClick',GUIEditor.button[3], function() guiSetVisible(wnd_Console,false) end ) function ControlSttas() -- if getElementData(localPlayer,"OnOpenSendAll") then if getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- then if (guiGetVisible(wnd_Console) == false) then guiSetVisible(wnd_Console,true) guiSetVisible(btnr,true) else guiSetVisible(wnd_Console,false) guiSetVisible(btnr,false) end end end addCommandHandler("pr",ControlSttas) -- addEvent ( "Send2", true ) addEventHandler ( "Send2", root, function ( Table ) guiGridListClear( GUIEditor.gridlist[1] ) for i, _ in ipairs( Table ) do local row = guiGridListAddRow ( GUIEditor.gridlist[1] ) guiGridListSetItemText( GUIEditor.gridlist[1], row, 1,Table.Edit1, false, false) guiGridListSetItemText( GUIEditor.gridlist[1], row, 2,Table.Edit2, false, false) end end ) addEventHandler ( "onClientGUIClick", root, function ( text ) if source == send then local Edit1 = guiGetText ( editName ) local Edit2 = guiGetText ( editDetails ) if Edit1 == "" or Edit2 == "" or Edit3 == "" then return end triggerServerEvent ( "onSend;Report", localPlayer, Edit1, Edit2,row) elseif source == closeb then guiSetVisible(wnd,false) elseif source == GUIEditor.button[1] then --guiGridListClear ( GUIEditor.gridlist[1] ) selected1 = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) if selected1 ~= -1 then data = guiGridListGetItemText(GUIEditor.gridlist[1], selected1,1) triggerServerEvent('remove',localPlayer,data,row) end --guiGridListRemoveRow (gr1,selected1) --selected = guiGridListGetItemText ( gr1, guiGridListGetSelectedItem ( gr1 ) ) elseif source == GUIEditor.button[2] then guiSetVisible(wi,true) --guiGetText(editDetails,guiSetText(memoe))selected = guiGridListGetSelectedItem(GridBan) selected = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) if selected ~= -1 then if selected >= 0 then -- data = guiGridListGetItemText(GUIEditor.gridlist[1], selected,1) -- triggerServerEvent("removeserial",localPlayer,data) -- guiGridListRemoveRow (GUIEditor.gridlist[1],selected) guiSetText(memoe,guiGetText(editDetails)) end end elseif source == x then guiSetVisible(wi,false) elseif source == adress then guiSetText(editName,guiGetText(adress)) elseif source == GUIEditor.button[3] then guiSetVisible(wnd_Console,false) elseif source == btnr then guiSetVisible(wnd_Console,true) --elseif source == GUIEditor.button[1] end end ) ---- addEventHandler( "onClientResourceStart", resourceRoot, -- حدث اذا المود اتفتح function( ) -- وظيفه triggerServerEvent( "Refresh", localPlayer ) -- تريقر لسرفر -- ذا عشان تسوي تحديث للقاعده او " القريد لست " end ) addEvent("AddRowNew",true) addEventHandler("AddRowNew",root, function( table ) guiGridListClear(gr) for i,v in ipairs ( table ) do local Row = guiGridListAddRow(gr) guiGridListSetItemText( gr, Row, 1, v.Text, false, false) guiGridListSetItemText( gr, Row, 2, v.combo, false, false) guiGridListSetItemText( gr, Row, 3, v.edit1, false, false) guiGridListSetItemText( gr, Row, 3, v.edit2, false, false) end end ) function ControlSttas() -- if getElementData(localPlayer,"OnOpenSendAll") then if getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- then if (guiGetVisible(wnd) == false) then guiSetVisible(wnd,true) else guiSetVisible(wnd,false) end end end addCommandHandler("rl",ControlSttas)
  12. انا ضايف الاكواد الرئيسيه مو اللوح , عايز المطلوب بس المشكله ف كود التحديد ! , وبعدين الاكواد عاديه اظن
  13. السلام عليكم ورحمة الله وبركاته , المشكله هي , سويت لوحة طبعا لمه تكتب ف الميمو ترسل قريد ليست , في لوحة تاني اذا حددت وضغط Read , تفتح لوحه بالي كتبه اللاعب المشكله اذا فتحت اللوحه بلاقي كلام اللاعب الاول مو الي اخترته , الخطأ كود التحديد اظن , *ابي لمه يرسل اللاعب ويحدد الادمن يجيب الي كتبه اللاعب والجريد الي حدده مو الاخير الاكواد ---Wind GUIEditor = { gridlist = {}, button = {} } local screenW, screenH = guiGetScreenSize() wnd_Console = guiCreateWindow((screenW - 728) / 2, (screenH - 276) / 2, 728, 276, "", false) guiWindowSetSizable(wnd_Console, false) guiSetVisible(wnd_Console,false) GUIEditor.gridlist[1] = guiCreateGridList(11, 28, 562, 238, false, wnd_Console) guiGridListAddColumn(GUIEditor.gridlist[1], "Player Name", 0.5) guiGridListAddColumn(GUIEditor.gridlist[1], "Details", 0.5) GUIEditor.button[1] = guiCreateButton(587, 28, 131, 32, "Remove", false, wnd_Console) GUIEditor.button[2] = guiCreateButton(587, 70, 131, 32, "Show ", false, wnd_Console) GUIEditor.button[3] = guiCreateButton(587, 116, 131, 32, "Close", false, wnd_Console) btnr = guiCreateButton(1311, 589, 45, 31, "R", false) --Buttons addEventHandler ( "onClientGUIClick", root, function ( text ) -- if source == send then local Edit1 = guiGetText ( editName ) local Edit2 = guiGetText ( editDetails ) if Edit1 == "" or Edit2 == "" or Edit3 == "" then return end triggerServerEvent ( "onSend;Report", localPlayer, Edit1, Edit2,row) elseif source == closeb then guiSetVisible(wnd,false) elseif source == GUIEditor.button[1] then guiGridListClear ( GUIEditor.gridlist[1] ) selected1 = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) if selected1 ~= -1 then data = guiGridListGetItemText(GUIEditor.gridlist[1], selected1,1) triggerServerEvent('remove',localPlayer,data,row) end elseif source == GUIEditor.button[2] then guiSetVisible(wi,true) selected = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) if selected ~= -1 then if selected >= 0 then guiSetText(memoe,guiGetText(editDetails)) end end elseif source == x then guiSetVisible(wi,false) elseif source == adress then guiSetText(editName,guiGetText(adress)) elseif source == GUIEditor.button[3] then guiSetVisible(wnd_Console,false) elseif source == btnr then guiSetVisible(wnd_Console,true) end end )