Jump to content

Ahmed_Negm

Members
  • Posts

    302
  • Joined

  • Last visited

Everything posted by Ahmed_Negm

  1. ال t موجود بس خلاص هوا اشتغل صراحة وشكرآ
  2. ERROR:M11/Values.lua25:attept to index global 't' (a nil value) مفيش سطر في الدي بق غير دا الي بيتكلم عن المشكلة ياريت لو انت فاهم المشكلة تفهمالي معاك
  3. صراحة كان نفسي تشرحلي لاني كدا مفهمت الي انت مسويه بس شكرآ
  4. ياريت تقولوي ايه هوا الفنكشن المستخدم لجعل اللوحة تفتح بالتدريج من الفا 0 الي الفا 100 مثل الشات خالاص ملك عناد وشكرآ
  5. تمام نجحت الشكر لك بس في مشكلة كمان لو سمحت اني لما اعمل توزيع اذا رسترت المود التوزيع بيروح التوزيع
  6. لو سمحتم ابي حل انا كنت انوي حماية مود توزيع السعات من تكرار السعات وكررت ان كلمة playTime الي موجود بالتاب ما تظهر للاعب الا لما يسجل وذا سوا لوج اوت تختفي من التاب ولاكن ظهرت مشكلة وانه لو سوي لوج اوت ما تنحفظ السعات فنسخت كود حفظ البينات عند خروج الاعب وعدلته عليه بحيث يمسح playTime لما يسوي لوج اوت وغيرت الحدث من onPlayerQuit الي onPlayerLogout وبرضوا صار ما يحفظ الكووووود addEventHandler("onPlayerLogin", root, ---- هنا حتي تظهر كلمة التواجد في السكور بورد function() exports.scoreboard:addScoreboardColumn('التواجد') end ) function SaveDataOnLogout () ----- وهنا حتي تختفي التواجد من الأسكور بورد local acc = getPlayerAccount (source) exports.scoreboard:removeScoreboardColumn('التواجد') if not isGuestAccount (source) then local sValue = getElementData( source,'التواجد' ) local hour = tonumber( t[ source ][ 'hour' ] or 0 ) local min = tonumber( t[ source ][ 'min' ] or 0 ) local sec = tonumber( t[ source ][ 'sec' ] or 0 ) local accountName = getAccountName (acc) local Results = executeSQLQuery("SELECT * FROM Prestege2_Save_Time WHERE PlayerAccount=?", accountName) if ( type ( Results ) == "table" and #Results == 0 or not Results ) then executeSQLQuery ( "INSERT INTO Prestege2_Save_Time ( PlayerAccount,Hours,Minuts,Seconds,PlayAllTime ) VALUES(?,?,?,?,?)", accountName,hour,min,sec,sValue ) else executeSQLQuery('UPDATE Prestege2_Save_Time SET Hours =?, Minuts =?, Seconds =?, PlayAllTime =? WHERE PlayerAccount =?', hour, min, sec, sValue, accountName) end t[ source ] = nil end end addEventHandler ("onPlayerLogout", root, SaveDataOnLogout)
  7. يعمي الأخم كور قلي صحح الأسم وصححته دلوقتي المثال بتاعك والله فاهم فكرته وشفته بس مش فاهم ازااي اتعامل معاه غير اني عايز اعرف اي الحل ليه يقلي error in loadmedia هوا في قانون للصوت ولا ايه مينفعش مثلآ تشغل كتر من صوت ولا ايه مش فاهم انا
  8. لو سمحتم انا كنت عايز احط صوت راجل يقول مثلآ خطأ لما تكتب باسورد خطأ وصممت الصوت وعملت الأضافة وعملت الترايقر من السلينت للسيرفر واشتغلت جيت علشان اضيف لما مثلآ يعمل حساب وهوا مسجل يقولوا انت بالفعل قمت بالتسجيل ولاكن ها المرة ما اشتغلت وقالي في اف 8 bass error in load media Client addEvent ("W1", true ) ----- ودا صوت خطأ في الباصورد او الأسم الي شغال بنجاح addEventHandler ( "W1", root, function () setTimer( function() sound2 = playSound("W1.mp3") end, 50, 1) end ) انما الباقي خاطأ addEvent ("W2", true ) addEventHandler ( "W2", root, function () setTimer( function() sound3 = playSound("W2.mp3") end, 50, 1) end ) addEvent ("W3", true ) addEventHandler ( "W3", root, function () setTimer( function() sound4 = playSound("W3.mp3") end, 50, 1) end ) addEvent ("W4", true ) addEventHandler ( "W4", root, function () setTimer( function() sound5 = playSound("W4.mp3") end, 50, 1) end ) Server addEvent("onLoginWith",true) addEventHandler("onLoginWith",root, function (user,pass) local acc = getAccount(user,pass) local serial = getPlayerSerial(source) if acc then logIn(source,acc,pass) outputChatBox("* لقد تم تسجيل الدخول بنجاح",source,0,255,0) AddPlayer(serial,user,pass) triggerClientEvent(source,"onCl",source) else outputChatBox("* خطأ في اسم المستخدم او كلمة المرور",source,255,0,0) triggerClientEvent ("soundW", source) triggerClientEvent ("W1", source) end end ) addEvent("onLogin",true) addEventHandler("onLogin",root, function (user,pass) local acc = getAccount(user,pass) if acc then logIn(source,acc,pass) outputChatBox("* لقد تم تسجيل الدخول بنجاح",source,0,255,0) triggerClientEvent(source,"onCl",source) else triggerClientEvent ("soundW", source) triggerClientEvent ("W1", source) outputChatBox("* خطأ في اسم المستخدم او كلمة المرور",source,255,0,0) end end ) addEvent("onReg", true) addEventHandler("onReg", root, function (user,pass) if not ( isGuestAccount ( getPlayerAccount ( source ) ) ) then triggerClientEvent ("W2", source) triggerClientEvent ("soundW", source) return triggerClientEvent ( source, "onCl", source ) end local account = getAccount ( user ) if account then triggerClientEvent ("soundW", source) triggerClientEvent ("W4", source) else addAccount(user,pass) logIn ( source, getAccount ( user, pass ), pass ) triggerClientEvent(source,"onCl",source) outputChatBox("* تم انشاء الحساب بنجاح",source,0,255,0) outputChatBox("* اسم المستخدم = " .. user,source,0,255,0) outputChatBox("* رقم المرور = " .. pass,source,0,255,0) end end )
  9. خلاص انا طرحت المشكلة بالطريقة الي انت تقول عليها ياري حل
  10. اه منا عارف انه بيحول الكلام الاا صوت بس مش عارف ازاي استخدمه
  11. انا مش فاهم من الفنكشن دا ايتها حاجا
  12. لو سمحتم انا كنت عايز احط صوت راجل يقول مثلآ خطأ لما تكتب باسورد خطأ وصممت الصوت وعملت الأضافة وعملت الترايقر من السلينت للسيرفر واشتغلت جيت علشان اضيف لما مثلآ يعمل حساب وهوا مسجل يقولوا انت بالفعل قمت بالتسجيل ولاكن ها المرة ما اشتغلت وقالي في اف 8 bass error in load media Client local sound = playSound("ss.mp3") ---- هنا الأغنية addEvent ("soundW", true ) addEventHandler ( "soundW", root, ------ وذا كود انا عمله علشان يوطي صوت الأغنية function () setTimer( function() setSoundVolume(sound, 0.9) end, 50, 1) setTimer( function() setSoundVolume(sound, 0.-- s8) --> end, 100, 1) setTimer( function() setSoundVolume(sound, 0.7) end, 150, 1) setTimer( function() setSoundVolume(sound, 0.6) end, 200, 1) setTimer( function() setSoundVolume(sound, 0.5) end, 250, 1) setTimer( function() setSoundVolume(sound, 0.4) end, 300, 1) setTimer( function() setSoundVolume(sound, 0.3) end, 350, 1) setTimer( function() setSoundVolume(sound, 0.2) end, 400, 1) setTimer( function() setSoundVolume(sound, 0.3) end, 2450, 1) setTimer( function() setSoundVolume(sound, 0.4) end, 2500, 1) setTimer( function() setSoundVolume(sound, 0.5) end, 2550, 1) setTimer( function() setSoundVolume(sound, 0.6) end, 2600, 1) setTimer( function() setSoundVolume(sound, 0.7) end, 2650, 1) setTimer( function() setSoundVolume(sound, 0.-- s8) --> end, 2700, 1) setTimer( function() setSoundVolume(sound, 0.9) end, 2750, 1) setTimer( function() setSoundVolume(sound, 1) end, 2800, 1) end ) addEvent ("W1", true ) ----- ودا صوت خطأ في الباصورد او الأسم الي شغال بنجاح addEventHandler ( "W1", root, function () setTimer( function() sound2 = playSound("W1.mp3") end, 50, 1) end ) انما الباقي خاطأ addEvent ("W2", true ) addEventHandler ( "W2", root, function () setTimer( function() sound3 = playSound("W2.mp3") end, 50, 1) end ) addEvent ("W3", true ) addEventHandler ( "W3", root, function () setTimer( function() sound4 = playSound("W3.mp3") end, 50, 1) end ) addEvent ("W4", true ) addEventHandler ( "W4", root, function () setTimer( function() sound5 = playSound("W4.mp3") end, 50, 1) end ) Server addEvent("onLoginWith",true) addEventHandler("onLoginWith",root, function (user,pass) local acc = getAccount(user,pass) local serial = getPlayerSerial(source) if acc then logIn(source,acc,pass) outputChatBox("* لقد تم تسجيل الدخول بنجاح",source,0,255,0) AddPlayer(serial,user,pass) triggerClientEvent(source,"onCl",source) else outputChatBox("* خطأ في اسم المستخدم او كلمة المرور",source,255,0,0) triggerClientEvent ("soundW", source) triggerClientEvent ("W1", source) end end ) addEvent("onLogin",true) addEventHandler("onLogin",root, function (user,pass) local acc = getAccount(user,pass) if acc then logIn(source,acc,pass) outputChatBox("* لقد تم تسجيل الدخول بنجاح",source,0,255,0) triggerClientEvent(source,"onCl",source) else triggerClientEvent ("soundW", source) triggerClientEvent ("W1", source) outputChatBox("* خطأ في اسم المستخدم او كلمة المرور",source,255,0,0) end end ) addEvent("onReg", true) addEventHandler("onReg", root, function (user,pass) if not ( isGuestAccount ( getPlayerAccount ( source ) ) ) then triggerClientEvent ("W2", source) triggerClientEvent ("soundW", source) return triggerClientEvent ( source, "onCl", source ) end local account = getAccount ( user ) if account then triggerClientEvent ("soundW", source) triggerClientEvent ("W4", source) else addAccount(user,pass) logIn ( source, getAccount ( user, pass ), pass ) triggerClientEvent(source,"onCl",source) outputChatBox("* تم انشاء الحساب بنجاح",source,0,255,0) outputChatBox("* اسم المستخدم = " .. user,source,0,255,0) outputChatBox("* رقم المرور = " .. pass,source,0,255,0) end end )
  13. حد يرد علي الراجل المسكين دا ربنا يجزيكوا
  14. احتاج مساعدة في لوحة الجيو حاليآ انا اخذت جيم مود من علي الأنترنت وعدلت عليه وصممت اللوحة بعدها ظبطها تكون في النص وتكون علي مقاس جميع شااشة الاعبين عن طريق الكود ذا local x,y = guiGetScreenSize() x = x - 400 y = y - 200 wnd = guiCreateStaticImage(200, 100, x, y, "images/logo.png", false) لاكن المشكلة الازرار والأشياء داخل اللوحة ما تظبط وتخرب وحاول وفكرت كثير ولاكن ما انجح صورة للمشكلة اي حد يساعدني وياريت يوضح لو عطاني كود كيف استخدمه وشكرآ
  15. مينفعش دا مش بيزبط المقاسات علي كل الشاشات دا بس بيخلي اللوحة في النص
  16. احتاج مساعدة في لوحة الجيو حاليآ انا اخذت جيم مود من علي الأنترنت وعدلت عليه وصممت اللوحة بعدها ظبطها تكون في النص وتكون علي مقاس جميع شااشة الاعبين عن طريق الكود ذا local x,y = guiGetScreenSize() x = x - 400 y = y - 200 wnd = guiCreateStaticImage(200, 100, x, y, "images/logo.png", false) لاكن المشكلة الازرار والأشياء داخل اللوحة ما تظبط وتخرب وحاول وفكرت كثير ولاكن ما انجح صورة للمشكلة اي حد يساعدني وياريت يوضح لو عطاني كود كيف استخدمه وشكرآ
  17. guiSetProperty(اسم البوتون,"HoverTextColour","ffff0000") guiSetFont(اسم البوتون, "default-bold-small")
  18. انا سويت لوحة للجيم مود علي مقاس شاشتي انا 1600x900 وخلتها تطلع بالنص بالفنكشن ذا function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end وبعدها centerWindow(wnd) لاكن المشكلة ما بتظهر كاملة في المقاس 800x600 يأخواني ايه الحل
  19. رمضان كريم أولآ كل سنة وانت طيبين صحيح انا منشوراتي كترت عن المشاكل بس انا لسا جديد عايز احط فنكشن بالشكل دا login = guiCreateStaticImage(728, 500, 100, 100, "images/login.png", false, wnd) guiSetAlpha(login, 0.5) function alpha() guiSetAlpha(login, 1) addEventHandler ("onClientMouseEnter", resourceroot, alpha)
  20. انا اريد ان اعمل login = guiCreateStaticImage(728, 500, 100, 100, "images/login.png", false, wnd) guiSetAlpha(login, 0.5) function alpha() guiSetAlpha(login, 1) addEventHandler ("هنا اسم الأيفنت الي انا عايز اعرفه ممكن مساعدة" ) وكمان لو سمحتم عايز اعرف احط روت ولا سورس وليه وشكرآ اذا حد رد او ما رد او حتي شاف المنشور
  21. كيف احل مشكلة فنكشن setPlayerSkin اريد شرح واضح من فضلكم انا عايز ادخلالفنكشن ذاا هنا addEventHandler("onPlayerChat",root, function ( msg ) if ( msg == "مصر" ) then setPlayerSkin ( thePlayer, int 285 )-- هنا لو سمحتم بس الويكي يقول ان الفنكشن ذا مش مضمون ولما اجي اشغل المود يخرب setElementPosition ( source,2969.24487,-4098.70508,2.96875 ) end end ) لو ماينفع حد عنده حل اخر
×
×
  • Create New...