Adham Posted February 5, 2017 Share Posted February 5, 2017 سلام عليكم كل م اجي اشغلمود msgbox واحط كوده في كلنت الهوا ده : function show(msg) exports.msgbox:guiShowMessageBox(msg,"error","Error",false,"OK") end واحط show("doma" ) مثلا اجي اروح السرفر يجي بي الدبي بق call: failed to call 'msgbow:guiShowMessageBox' [string "?"] المشكله دي صارت معي اكتر من مره وما عارف احلها Link to comment
Scripting Moderators xLive Posted February 5, 2017 Scripting Moderators Share Posted February 5, 2017 (edited) يمكن اسم الفكشن بـ مسج بوكس غلط او غير معرف ب الميتا Edited February 5, 2017 by xNawaf Link to comment
Adham Posted February 5, 2017 Author Share Posted February 5, 2017 مود المسج : الكود MsgBoxWindow = {} MsgBoxText = {} MsgBoxWindow = guiCreateWindow(0.3984,0.3841,0.2061,0.1901,"Info",true) guiSetAlpha(MsgBoxWindow,0.8) MsgBoxText = guiCreateLabel(0.1991,0.2808,0.5498,0.4726,"",true,MsgBoxWindow) guiSetVisible(MsgBoxWindow, false) showCursor(false) function newmsgbox(co) guiSetVisible(MsgBoxWindow, true) guiSetText(MsgBoxText, tostring(co)) showCursor(false) setTimer(function() guiSetAlpha(MsgBoxWindow,0.70000000000000) end, 300, 1) setTimer(function() guiSetAlpha(MsgBoxWindow,0.60000000000000) end, 700, 1) setTimer(function() guiSetAlpha(MsgBoxWindow,0.50000000000000) end, 1000, 1) setTimer(function() guiSetAlpha(MsgBoxWindow,0.40000000000000) end, 1300, 1) setTimer(function() guiSetAlpha(MsgBoxWindow,0.30000000000000) end, 1500, 1) setTimer(function() guiSetAlpha(MsgBoxWindow,0.20000000000000) end, 1800, 1) setTimer(function() guiSetAlpha(MsgBoxWindow,0.10000000000000) end, 2000, 1) setTimer(function() guiSetAlpha(MsgBoxWindow,0.00000000000000) end, 2300, 1) setTimer(function() guiSetVisible(MsgBoxWindow, false) end, 2300, 1) end addEvent("msgBoxInfo", true) addEventHandler("msgBoxInfo", getRootElement(), newmsgbox) الكود لحطه في مود اخر عشان تطلع لوحه function show(msg) exports.msgbox:guiShowMessageBox(msg,"error","Error",false,"OK") end show("adham") تعريف الميتا : <include resource="msgbox" /> Link to comment
Scripting Moderators xLive Posted February 5, 2017 Scripting Moderators Share Posted February 5, 2017 طيب اطرح اكواد السيرفر Link to comment
Adham Posted February 5, 2017 Author Share Posted February 5, 2017 (edited) 3 minutes ago, xNawaf said: طيب اطرح اكواد السيرفر ي حبيبي م في اكواد سرفر ؟ الاكواد كلها قدامك Edited February 5, 2017 by Deativated Link to comment
Scripting Moderators xLive Posted February 5, 2017 Scripting Moderators Share Posted February 5, 2017 (edited) 27 minutes ago, Deativated said: ي حبيبي م في اكواد سرفر ؟ الاكواد كلها قدامك النت فصل تاخرت . MsgBoxWindow = guiCreateWindow(0.3984,0.3841,0.2061,0.1901,"Info",true) guiSetAlpha(MsgBoxWindow,0.8) MsgBoxText = guiCreateLabel(0.1991,0.2808,0.5498,0.4726,"",true,MsgBoxWindow) guiSetVisible(MsgBoxWindow, false) function guiShowMessageBox(co) guiSetVisible(MsgBoxWindow, true) guiSetText(MsgBoxText,co) showCursor(false) setTimer(function() guiSetAlpha(MsgBoxWindow,0.70000000000000) end, 300, 1) setTimer(function() guiSetAlpha(MsgBoxWindow,0.60000000000000) end, 700, 1) setTimer(function() guiSetAlpha(MsgBoxWindow,0.50000000000000) end, 1000, 1) setTimer(function() guiSetAlpha(MsgBoxWindow,0.40000000000000) end, 1300, 1) setTimer(function() guiSetAlpha(MsgBoxWindow,0.30000000000000) end, 1500, 1) setTimer(function() guiSetAlpha(MsgBoxWindow,0.20000000000000) end, 1800, 1) setTimer(function() guiSetAlpha(MsgBoxWindow,0.10000000000000) end, 2000, 1) setTimer(function() guiSetAlpha(MsgBoxWindow,0.00000000000000) end, 2300, 1) setTimer(function() guiSetVisible(MsgBoxWindow, false) end, 2300, 1) end -- حط ذا ب الميتا <export function="guiShowMessageBox" type="client"/> -- عشان تفتح اللوحة exports.msgbox:guiShowMessageBox ("text") Client-only Edited February 5, 2017 by xNawaf Link to comment
Scripting Moderators xLive Posted February 5, 2017 Scripting Moderators Share Posted February 5, 2017 لا م خرب كود الميتا تحطه بـ msgbox Link to comment
Scripting Moderators xLive Posted February 5, 2017 Scripting Moderators Share Posted February 5, 2017 4 minutes ago, Deativated said: ي حبيبي انا مجررب الكود يلي مرسله لك تحطه ب مود اسمه msgbox ع حسب م كتبت انت فوق وتحط حق الميتا وعشان تفتحه من مود ثاني لازم يكون كلينت exports.msgbox:guiShowMessageBox ("text") + انا مجربه بنفسي شغال %100 Link to comment
#Soking Posted February 5, 2017 Share Posted February 5, 2017 يمكن والله اعلم انه مو مسوي بالميتا ال exports 2 Link to comment
Adham Posted February 5, 2017 Author Share Posted February 5, 2017 م ظبت كل الاكواد !........ Link to comment
coNolel Posted February 5, 2017 Share Posted February 5, 2017 أول مرة اشوف addEvent("msgBoxInfo", true) addEventHandler("msgBoxInfo", getRootElement(), newmsgbox) -- بدون ترايقر سيرفر ؟ Link to comment
Adham Posted February 5, 2017 Author Share Posted February 5, 2017 ارجو الرد شباب بيجلي خطأ في الدي بق !! وم يطلع لوحه Link to comment
Master_MTA Posted February 6, 2017 Share Posted February 6, 2017 15 hours ago, Deativated said: ارجو الرد شباب بيجلي خطأ في الدي بق !! وم يطلع لوحه اعرض الميتا يالغالي لا هنت Link to comment
Adham Posted February 6, 2017 Author Share Posted February 6, 2017 يجي دي بق كل شوي call: failed to call 'msgbow:guiShowMessageBox' [string "?"] Link to comment
خلف Posted February 6, 2017 Share Posted February 6, 2017 14 minutes ago, Deativated said: يجي دي بق كل شوي call: failed to call 'msgbow:guiShowMessageBox' [string "?"] تاكد من اسم المود و تاكد انه شغال Link to comment
Adham Posted February 6, 2017 Author Share Posted February 6, 2017 يب تاكدت وشغال 100 % Link to comment
خلف Posted February 6, 2017 Share Posted February 6, 2017 15 minutes ago, Deativated said: يب تاكدت وشغال 100 % حمل المود الاصلي الي يجي مع العبة اذا موب عندك تفضل هذ رابطه http://up.top4top.net/downloadf-402cjm141-zip.html Link to comment
Adham Posted February 6, 2017 Author Share Posted February 6, 2017 كيف استعمله ي بو خلف ؟ Link to comment
' A F . Posted February 6, 2017 Share Posted February 6, 2017 أتوقع الغلط منك . انت مسوي msgbow المفروض msgbox 1 Link to comment
Adham Posted February 7, 2017 Author Share Posted February 7, 2017 انا كبتوmsgbox لاكن بالغلط كتبتها bow في الموضوع Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now