Jump to content

iMr ~ MnHmAr

Members
  • Posts

    555
  • Joined

  • Last visited

Everything posted by iMr ~ MnHmAr

  1. اذا تقصد الشات شكله كذا فـ هذي ماتقدر تغيرها لانه من الاعدادات حقت الاعبه يغيرها هذا اذا قصدك الشات يتغير لـ اشكال :
  2. انت اجمل والله ان شاء الله بتشوفنها قريبا وياك ان شاء الله
  3. شكرا عبد الكريم تمت الافآده
  4. if #editdays <= tonumber(4) then الان انا ابي لو حط فوق 5 و فوق ما يكمل الوظيفه لكن انا مسوي التحقق فوق لكن مو زابط صار فيني من رقم 1 الى الاخير انا بس ابي 1234 غيره راح يجي خطا لكن طريقتي مااشوف فيه اخطاء لكن مازبطت
  5. local editdays = guiGetText (GUIEditor.edit[1]) if editdays ~= "" then if editdays <= 4 then outputChatBox('-------') return end -- الدي بق -- attempt to compare string with number -- هذا بعض الكود وش الخطا
  6. لما تفتح الوحه سوي تقريت يجيب الي بـ القاعده ويحطه بـ القريد مثل تقريت EventS
  7. ض1 ماكنت فاضيي و نسيت + تمت الافاده ه
  8. وش تبي تسوي بـ الظبط
  9. كلكم غلط + تم حل المشكله من يوم ما رد #Soking الاخ
  10. جرب addEventHandler("onClientGUIClick",root, if source == GUIEditor.button[1] then local sel = guiGridListGetSelectedItem(grid) --جلب من القريت لست local aSoking = guiGridListGetItemText(grid,sel,1) -- احظار مكان الكلمة اذا كان في قصمين if ( sel ~= -1 ) then -- يتحقق اذا كان محدد triggerServerEvent("Remove",localPlayer,aSoking) end end ) -- سيرفر executeSQLQuery ( 'CREATE TABLE IF NOT EXISTS aSokingX2 ( aRows )' ) addEvent('Event', true ) addEventHandler('Event' , getRootElement ( ) , function ( aText ) executeSQLQuery( 'INSERT INTO aSokingX2 (aRows) VALUES ( ? )' , aText ) triggerClientEvent( getRootElement ( ) , 'addText', getRootElement ( ) , aText ) end ) addEvent('EventS', true ) addEventHandler('EventS' , getRootElement ( ) , function ( ) Value = executeSQLQuery( 'SELECT * FROM aSokingX2' ) if ( #Value ~= 0 ) then triggerClientEvent ( source , 'EventT2' , source , Value ) end end ) addEvent("Remove",true) addEventHandler("Remove",root, function ( aSoking ) executeSQLQuery("DELETE FROM aSokingX2 WHERE aRows=?",aSoking) outputChatBox("تم الازألة بنجآح",source,0,188,205,true) end )
  11. بنورك والله مشتاق لك مانشوفك من فتره قسم لك وحشه فجاتنا بـ ها الابداع شوف الخاص برسلك شي
  12. وش ه الابداعع فجرت المنتدى كامل يا مودير بـ ابداعاتك @MoDeR2014
  13. برستيج يآليت تشوف مشكلتي في قسم البرمجه :) 

  14. ضفته لكن مايرقي ابدا + الدي بوق مايظهر فيه شي
  15. -- #Client addEventHandler ( "onClientGUIClick",root, function ( ) if guiGridListGetSelectedItem(GUIEditor.gridlist[1]) ~= -1 then local player1 = guiGridListGetItemText(GUIEditor.gridlist[1], guiGridListGetSelectedItem(GUIEditor.gridlist[1]), 1) if source == GUIEditor.button[1] then editdays = guiGetText (GUIEditor.edit[1]) if editdays ~= "" then editsbab = guiGetText (GUIEditor.edit[2]) if editsbab ~= "" then triggerServerEvent( 'aAdminEx1', localPlayer,player1,editdays,editsbab) end end end end end ) -- #Server addEvent('aAdminEx1',true ) addEventHandler( 'aAdminEx1',root, function ( player1,editdays,editsbab ) local player2 = getPlayerFromName(player1) if (player2) then local acc = getPlayerAccount(player2) local account = getAccountName(acc) if account then if isObjectInACLGroup ( "user."..account, aclGetGroup ( "Admin" ) ) then return end aclGroupAddObject (aclGetGroup( "Admin" ), "user."..account) setTimer ( function (account) if not isObjectInACLGroup ( "user."..account, aclGetGroup ( "Admin" ) ) then return end aclGroupRemoveObject ( aclGetGroup( "Admin" ),"user."..account ) end,editdays*1000*60*24,1,account) end end end ) وش المشكله هنا مايرقيني
  16. خلاص تم حليت المشكله مثل ماقلت يانكست طلع من متغير
  17. function addAcoounts ( ) local table = {} for i,aAcc in ipairs ( getAccounts ( ) ) do local Acc = getAccountName( aAcc ) if isObjectInACLGroup ( 'user.'..Acc, aclGetGroup ( "House" ) ) then table.insert ( table, Acc ) end triggerClientEvent( source,'Acconts',source,table) end
  18. يا الغالي معرفه لكن الكود هذا الي فيه مشكله addEvent("Acconts",true ) addEventHandler("Acconts",root, function ( T ) guiGridListClear(GUIEditor.gridlist[1]) for i, aAccount in ipairs ( T ) do Row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1], Row, 1, aAccount, false, false ) end Accounts = T end )
  19. addEventHandler("onClientGUIChanged", root, function () guiGridListClear(GUIEditor.gridlist[1]) if ( source == GUIEditor.edit[3] ) then Accs = guiGetText (GUIEditor.edit[3]) if ( Accs == "" ) then for k,v in ipairs(Accounts) do Row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1], Row, 1, aAccount, false, false ) end else guiGridListClear(GUIEditor.gridlist[1]) for i,v in ipairs(Accounts) do if string.find(v,guiGetText(GUIEditor.edit[3])) then local Row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],Row,1,v,false,false) end end end end end debugscript 3 : ERROR : Account \c.lua:102:bad argument #1 to 'ipairs' (table exepected , got nil ) وش المشكله ؟
×
×
  • Create New...