SycroX Posted February 10, 2016 Share Posted February 10, 2016 سلام عليكم انا مسوي لوحة بها زر و اديت بوكس ابي لما اكتب سريال حد بلأيديت بوكس و ادوس الزر يضيفني لجدول انا مسويه مثلا جدول local Serials = { ["Serials"] = true, } Link to comment
xBeSoOo Posted February 10, 2016 Share Posted February 10, 2016 تفضل table Event:"onClientGUIClick" guiGetText table.insert Link to comment
SycroX Posted February 10, 2016 Author Share Posted February 10, 2016 مشكور بس ممكن مثال لاي شي ؟ Link to comment
xBeSoOo Posted February 10, 2016 Share Posted February 10, 2016 (edited) onClientGUIClick مثال علي حدث addEventHandler("onClientGUIClick",root, function () if source == button then ----- يتحقق ان الزر الي انت تبيه اضغط عليه ----Your Code end ) guiGetText مثال علي فنكشن addEventHandler("onClientGUIClick",root, function () if source == button then ----- يتحقق ان الزر الي انت تبيه اضغط عليه guiGetText(Editbox) ---- يجيب الي مكتوب في الاديت بوكس end ) table.insert + وذا شرح للجدول https://forum.multitheftauto.com/viewtopic.php?f=164&t=50471 Edited February 10, 2016 by Guest Link to comment
SycroX Posted February 10, 2016 Author Share Posted February 10, 2016 (edited) onClientGUIClick مثال علي حدث addEventHandler("onClientGUIClick",root, function () if source == button then ----- يتحقق ان الزر الي انت تبيه اضغط عليه ----Your Code end ) guiGetText مثال علي فنكشن addEventHandler("onClientGUIClick",root, function () if source == button then ----- يتحقق ان الزر الي انت تبيه اضغط عليه guiGetText(Editbox) ---- يجيب الي مكتوب في الاديت بوكس end ) table.insert + وذا شرح للجدول https://forum.multitheftauto.com/viewtopic.php?f=164&t=50471 ما في مبرمج ما يعرف اول + لا تفكرني مبتداء عموما شكرا جدا كنت محتاج شرح للجداول وشرح بو ساعدني Edited February 10, 2016 by Guest Link to comment
xBeSoOo Posted February 10, 2016 Share Posted February 10, 2016 table.insert ذا الرابط شرح للجداول + فيه مثالين علي https://forum.multitheftauto.com/viewtopic.php?f=164&t=50471 Link to comment
SycroX Posted February 10, 2016 Author Share Posted February 10, 2016 طيب بلمرة وش المشكلة هنا addEvent("BuyVIP", true) addEventHandler("BuyVIP", root, function() local Money = getElementData(source,"moneycoins") or 0 if tonumber(Money) >= tonumber(20000000) then if ( getPlayerAccount( source ) and not isGuestAccount( getPlayerAccount( source) ) ) then if not ( isObjectInACLGroup ( "user."..getAccountName ( getPlayerAccount ( source )), aclGetGroup ( "VIP" ) ) ) then aclGroupAddObject(aclGetGroup("VIP"), "user."..getAccountName ( getPlayerAccount ( source ) )) exports["guimessages"]:outputServer(source, "you had successfully Buy VIP Member" , 0, 255, 0) setElementData(source,"moneycoins",(getElementData(source,"moneycoins") or 0) - 20000000) end end end end ) Link to comment
Me[Z]oO Posted February 10, 2016 Share Posted February 10, 2016 طيب بلمرةوش المشكلة هنا addEvent("BuyVIP", true) addEventHandler("BuyVIP", root, function() local Money = getElementData(source,"moneycoins") or 0 if tonumber(Money) >= tonumber(20000000) then if ( getPlayerAccount( source ) and not isGuestAccount( getPlayerAccount( source) ) ) then if not ( isObjectInACLGroup ( "user."..getAccountName ( getPlayerAccount ( source )), aclGetGroup ( "VIP" ) ) ) then aclGroupAddObject(aclGetGroup("VIP"), "user."..getAccountName ( getPlayerAccount ( source ) )) exports["guimessages"]:outputServer(source, "you had successfully Buy VIP Member" , 0, 255, 0) setElementData(source,"moneycoins",(getElementData(source,"moneycoins") or 0) - 20000000) end end end end ) دي بق ؟ Link to comment
SycroX Posted February 10, 2016 Author Share Posted February 10, 2016 ما في خلاص تم حل المشكلة مشكورين نسيت اضيف المود لجروب ادمن 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