Maksoud Posted August 24, 2016 Share Posted August 24, 2016 السلام عليكم و رحمة الله وبركاته سويت لوحة بيها زر و اديت بوكس و لوحة اخرى فيها قريد ليست الفايدة من هذه ان اللاعب يكتب بالاديت بوكس كلمة و يدوس عالزر يتم ارسال الكلمة للقريد ليست سويت هذا و نجح بس مب نجاح كامل المفروض ان لما اى لاعب يرسل اللوحة تستقبل لاكن يوم يجي لاعب يرسل انا مقدر اشوف وش كتب هو بس هو يقدر ساعدونى ارجوا سرعة الرد شكرا مقدما Link to comment
Maksoud Posted August 24, 2016 Author Share Posted August 24, 2016 سوي تريقر للسيرفر فايدة التريقر ؟ يعنى ارسل تريقر للسيرفر يسوى ايش ؟؟ Link to comment
فاّرس Posted August 24, 2016 Share Posted August 24, 2016 فايدة التريقر عشان ترسله من السيرفر للكلنت للكل, عشان يشوفونه باقي اللاعبين . Link to comment
N3xT Posted August 24, 2016 Share Posted August 24, 2016 الكلنت : خاص باللاعب فقط السيرفر : لكل اللاعبين Link to comment
Maksoud Posted August 24, 2016 Author Share Posted August 24, 2016 الكلنت : خاص باللاعب فقطالسيرفر : لكل اللاعبين فاهم اخى العزيز نكست بس انا معرف ارسل اييش للسيرفر ! Link to comment
Maksoud Posted August 24, 2016 Author Share Posted August 24, 2016 كل العايز اعرفه وش راح ارسل بالتريقر اكوادى : #Client addEventHandler("onClientGUIClick",root, function() if source == SendButton then if guiGetText(TypeCombo) == "The Type | النوع" then outputChatBox("# Error : Choose The Type Of Card",255,0,0) elseif guiGetText(TimeCombo) == "The Time | المدة" then outputChatBox("# Error : Choose The Period You Want To Take.",255,0,0) elseif guiGetText(editCard) == "" then outputChatBox("# Error : You Must Write The Card Number.",255,0,0) else triggerEvent("addRow",localPlayer) end end end ) #Client addEvent("addRow",true) addEventHandler("addRow",root, function() rowforrow = guiGridListAddRow(RentGrid) guiGridListSetItemText(RentGrid,rowforrow,5,guiGetText(editCard),false,false) guiGridListSetItemText(RentGrid,rowforrow,4,guiGetText(TimeCombo),false,false) guiGridListSetItemText(RentGrid,rowforrow,3,guiGetText(TypeCombo),false,false) guiGridListSetItemText(RentGrid,rowforrow,2,getPlayerSerial(getLocalPlayer()),false,false) guiGridListSetItemText(RentGrid,rowforrow,1,getPlayerName(getLocalPlayer()),false,false) outputChatBox("# Successful : Application Send Successfully , Wait For Admin To Apply It.",0,255,0) end ) Link to comment
N3xT Posted August 24, 2016 Share Posted August 24, 2016 #Client addEventHandler("onClientGUIClick",root, function() if source == SendButton then if guiGetText(TypeCombo) == "The Type | النوع" then outputChatBox("# Error : Choose The Type Of Card",255,0,0) elseif guiGetText(TimeCombo) == "The Time | المدة" then outputChatBox("# Error : Choose The Period You Want To Take.",255,0,0) elseif guiGetText(editCard) == "" then outputChatBox("# Error : You Must Write The Card Number.",255,0,0) else triggerServerEvent("addRow",localPlayer,guiGetText(TypeCombo),guiGetText(TimeCombo),guiGetText(editCard)) end end end ) addEvent("addRowC",true) addEventHandler("addRowC",root, function (TypeCombo,TimeCombo,editCard,PlayerName,PlayerSerial) rowforrow = guiGridListAddRow(RentGrid) guiGridListSetItemText(RentGrid,rowforrow,5,editCard,false,false) guiGridListSetItemText(RentGrid,rowforrow,4,TimeCombo,false,false) guiGridListSetItemText(RentGrid,rowforrow,3,TypeComb,false,false) guiGridListSetItemText(RentGrid,rowforrow,2,PlayerSerial,false,false) guiGridListSetItemText(RentGrid,rowforrow,1,PlayerName,false,false) end ) #Server addEvent("addRow",true) addEventHandler("addRow",root, function (TypeCombo,TimeCombo,editCard) if ( TypeCombo,TimeCombo,editCard ) then local PlayerName, PlayerSerial = getPlayerName(source), getPlayerSerial(source) triggerClientEvent(root,"addRowC",root,TypeCombo,TimeCombo,editCard,PlayerName,PlayerSerial) outputChatBox("# Successful : Application Send Successfully , Wait For Admin To Apply It.",source,0,255,0) end end ) Link to comment
Maksoud Posted August 24, 2016 Author Share Posted August 24, 2016 #Client addEventHandler("onClientGUIClick",root, function() if source == SendButton then if guiGetText(TypeCombo) == "The Type | النوع" then outputChatBox("# Error : Choose The Type Of Card",255,0,0) elseif guiGetText(TimeCombo) == "The Time | المدة" then outputChatBox("# Error : Choose The Period You Want To Take.",255,0,0) elseif guiGetText(editCard) == "" then outputChatBox("# Error : You Must Write The Card Number.",255,0,0) else triggerServerEvent("addRow",localPlayer,guiGetText(TypeCombo),guiGetText(TimeCombo),guiGetText(editCard)) end end end ) addEvent("addRowC",true) addEventHandler("addRowC",root, function (TypeCombo,TimeCombo,editCard,PlayerName,PlayerSerial) rowforrow = guiGridListAddRow(RentGrid) guiGridListSetItemText(RentGrid,rowforrow,5,editCard,false,false) guiGridListSetItemText(RentGrid,rowforrow,4,TimeCombo,false,false) guiGridListSetItemText(RentGrid,rowforrow,3,TypeComb,false,false) guiGridListSetItemText(RentGrid,rowforrow,2,PlayerSerial,false,false) guiGridListSetItemText(RentGrid,rowforrow,1,PlayerName,false,false) end ) #Server addEvent("addRow",true) addEventHandler("addRow",root, function (TypeCombo,TimeCombo,editCard) if ( TypeCombo,TimeCombo,editCard ) then local PlayerName, PlayerSerial = getPlayerName(source), getPlayerSerial(source) triggerClientEvent(root,"addRowC",root,TypeCombo,TimeCombo,editCard,PlayerName,PlayerSerial) outputChatBox("# Successful : Application Send Successfully , Wait For Admin To Apply It.",source,0,255,0) end end ) Error : Oserver.lua :20: ')' expected near ',' مب لاقى اساسا '(' ناحية ال ',' مساعدة Link to comment
N3xT Posted August 25, 2016 Share Posted August 25, 2016 الكود اللي فوق مافيه سطر 20, عطني السطر الصحيح Link to comment
Maksoud Posted August 25, 2016 Author Share Posted August 25, 2016 if ( TypeCombo,TimeCombo,editCard ) then Link to comment
Mhmd.z Posted August 25, 2016 Share Posted August 25, 2016 جرب if TypeCombo and TimeCombo and editCard then Link to comment
Maksoud Posted August 25, 2016 Author Share Posted August 25, 2016 جرب if TypeCombo and TimeCombo and editCard then TypeCombo صارت ما تظهر بالقريد ليست و مشكلة اخرى القريد ليست يكرر الرو مرتين Link to comment
فاّرس Posted August 25, 2016 Share Posted August 25, 2016 addRowC اطرح مستقبل التريقر (الايفنت) اللي اسمه Link to comment
Maksoud Posted August 25, 2016 Author Share Posted August 25, 2016 addEvent("addRowC",true) addEventHandler("addRowC",root, function (TypeCombo,TimeCombo,editCard,PlayerName,PlayerSerial) rowforrow = guiGridListAddRow(RentGrid) guiGridListSetItemText(RentGrid,rowforrow,5,editCard,false,false) guiGridListSetItemText(RentGrid,rowforrow,4,TimeCombo,false,false) guiGridListSetItemText(RentGrid,rowforrow,3,TypeCombo,false,false) guiGridListSetItemText(RentGrid,rowforrow,2,PlayerSerial,false,false) guiGridListSetItemText(RentGrid,rowforrow,1,PlayerName,false,false) end ) انا عرفت وش سبب ان التايب كومبو ماكنت تظهر الحين المشكلة الباقية انه يكرر Link to comment
Maksoud Posted August 25, 2016 Author Share Posted August 25, 2016 TypeCombo TimeCombo Link to comment
فاّرس Posted August 26, 2016 Share Posted August 26, 2016 انت تقصد انك اذا ضغطت الزر مرتين يضيف نفس الكلام مرتين, ولا تقصد من ضغطه وحده يكرر مرتين؟ Link to comment
N3xT Posted August 27, 2016 Share Posted August 27, 2016 جرب بدل الكلنت بذا addEventHandler("onClientGUIClick",root, function() if source == SendButton then local getTypeCombo = guiComboBoxGetItemText(TypeCombo, guiComboBoxGetSelected(TypeCombo)) local getTimeCombo = guiComboBoxGetItemText(TimeCombo, guiComboBoxGetSelected(TimeCombo)) if getTypeCombo == "The Type | النوع" then outputChatBox("# Error : Choose The Type Of Card",255,0,0) elseif getTimeCombo == "The Time | المدة" then outputChatBox("# Error : Choose The Period You Want To Take.",255,0,0) elseif guiGetText(editCard) == "" then outputChatBox("# Error : You Must Write The Card Number.",255,0,0) else triggerServerEvent("addRow",localPlayer,getTypeCombo,getTimeCombo,guiGetText(editCard)) end end end ) 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