Adham Posted June 26, 2016 Share Posted June 26, 2016 السلام عليكم ورحمه الله , انا ابي استفسر عن شي بسيط انا مسوي لين يكتب في الايدت الاول , والتاني , التالت , يجي اسمه في اول كلوم في الرو .. تمام كلو بيعبت ويجيلي في القريد لست بس في خطأ لما انا ابعت يجي اسمي تمام في القريد ولما صحبي يبعت يجي الطلب في القريد لاكن بيجي ب اسمي يعني اسمي بيجي مش اسم الاعب البعت وسريالي برده .. الكود : guiGridListSetItemText (gridlist,row,1,getPlayerName(localPlayer),false,false) guiGridListSetItemText (gridlist,row,3,getPlayerSerial(localPlayer),false,false) Link to comment
Adham Posted June 26, 2016 Author Share Posted June 26, 2016 (edited) #Delete Edited June 27, 2016 by Guest Link to comment
Mr.CoR Posted June 27, 2016 Share Posted June 27, 2016 سطر ١١ يقولك عمو عبدالكريم غير ال LocalPlayer إلى root Link to comment
Adham Posted June 27, 2016 Author Share Posted June 27, 2016 يعني كدا بيجي سريال الاعب البعت؟ Link to comment
N3xT Posted June 27, 2016 Share Posted June 27, 2016 طيب كيف تبيني أساعدك وانت حذفت الكود ؟ Link to comment
Adham Posted June 27, 2016 Author Share Posted June 27, 2016 addEventHandler("onClientGUIClick",root, function ( ) if source == GUIEditor.button[1] then local item = guiComboBoxGetSelected ( com ) local text = guiComboBoxGetItemText ( com , item ) local name = guiGetText( editname ) local maill = guiGetText ( editmail ) local card = guiGetText ( editcard ) if ( name and maill and card and text ~="" ) then triggerServerEvent ( "RentSystem:onCreateNewOrder", root, name, maill, card, text ) guiSetEnabled ( GUIEditor.button[1], false ) outMsg("تم إرسال الرسالة",true) end end end ) addEvent ( "RentSystem:onAccept", true ) addEventHandler ( "RentSystem:onAccept", root, function (name,maill,card,text) local row = guiGridListAddRow ( gridlist) guiGridListSetItemText (gridlist,row,1,getPlayerName(source),false,false) guiGridListSetItemText (gridlist,row,2,text,false,false) guiGridListSetItemText (gridlist,row,3,getPlayerSerial(source),false,false) end ) addEvent( "RentSystem:onCreateNewOrder", true ) addEventHandler( "RentSystem:onCreateNewOrder", root, function (name,maill,card,text) triggerClientEvent("RentSystem:onAccept",root,name,maill,card,text) end ) Link to comment
#Soking Posted June 27, 2016 Share Posted June 27, 2016 addEvent ( "RentSystem:onAccept", true ) addEventHandler ( "RentSystem:onAccept", root, function (name,maill,card,text) local row = guiGridListAddRow ( gridlist) guiGridListSetItemText (gridlist,row,1,getPlayerName(source),false,false) guiGridListSetItemText (gridlist,row,2,text,false,false) guiGridListSetItemText (gridlist,row,3,getPlayerSerial(source),false,false) end ) لعبه دا الكود حقك تمام ؟ وش سالفة source ?? Link to comment
Adham Posted June 27, 2016 Author Share Posted June 27, 2016 طيب .. وش اسوي انا لما ببعت في الايدت ويرسل للقريد يجي اسمي وصحبي لما يبعت يجي اسمي برده وسريالي مب اسمو البعت وسريال البعت ! Link to comment
Mr.CoR Posted June 27, 2016 Share Posted June 27, 2016 لان كودك حوسه ماحنا عارفين اي لاعب الي تبي ينجاب اسمه راسل بالترايقر ٤ متغيرات والامور داخله ببعضها Link to comment
Adham Posted June 27, 2016 Author Share Posted June 27, 2016 انت عطيتني الكود ذا من قبل , انا عاوز اعمل لما يكتب في ال3 ايديت ويحدد من الكوم بوكس يجي في القريد لست يجي اول كوم رو يجي اسم الاعب مب اسم الاعب الكتبو في الايدت اسم الاعب الاصلي والتاني الحدده في الكوم والتالت سريالو Link to comment
Mr.CoR Posted June 27, 2016 Share Posted June 27, 2016 انا صححت لك ترايقراتك فقط لاغير Link to comment
Adham Posted June 27, 2016 Author Share Posted June 27, 2016 طيب شغال تمام كلو بس لما حد بيبعت غيري بيجي اسمي وسريالي مب اسم البعت Link to comment
فاّرس Posted June 27, 2016 Share Posted June 27, 2016 ؟ root التريقر اللي ف الكلينت ليه حاطه بالنسبه لـ انك حاط سورس كيف تحط سورس وانت مرسل التريقر للكل؟ المفروض تجيب اسم اللاعب والسريال بالسيرفر وترسله للكلينت. Link to comment
Adham Posted June 27, 2016 Author Share Posted June 27, 2016 كدا؟ addEventHandler("onClientGUIClick",root, function ( ) if source == GUIEditor.button[1] then local item = guiComboBoxGetSelected ( com ) local text = guiComboBoxGetItemText ( com , item ) local name = guiGetText( editname ) local maill = guiGetText ( editmail ) local card = guiGetText ( editcard ) if ( name and maill and card and text ~="" ) then triggerServerEvent ( "RentSystem:onCreateNewOrder", localPlayer, name, maill, card, text ) guiSetEnabled ( GUIEditor.button[1], false ) outMsg("تم إرسال الرسالة",true) end end end ) addEvent ( "RentSystem:onAccept", true ) addEventHandler ( "RentSystem:onAccept", root, function (name,maill,card,text) local row = guiGridListAddRow ( gridlist) guiGridListSetItemText (gridlist,row,1,Plr,false,false) guiGridListSetItemText (gridlist,row,2,text,false,false) guiGridListSetItemText (gridlist,row,3,Serial,false,false) end ) addEvent( "RentSystem:onCreateNewOrder", true ) addEventHandler( "RentSystem:onCreateNewOrder", root, function (name,maill,card,text) local Plr = getPlayerName( source ) local Serial = getPlayerSerial( source ) triggerClientEvent("RentSystem:onAccept",root,name,maill,card,text) end ) Link to comment
فاّرس Posted June 27, 2016 Share Posted June 27, 2016 حط المتغير حق السريال واسم اللاعب ف التريقر سطر 6 وارسلها للكلينت وحطها بالفنكشن سطر 23. Link to comment
Adham Posted June 27, 2016 Author Share Posted June 27, 2016 تمام كدا addEvent( "RentSystem:onCreateNewOrder", true ) addEventHandler( "RentSystem:onCreateNewOrder", root, function (name,maill,card,text) local Plr = getPlayerName( source ) local Serial = getSerialPlayer( source ) triggerClientEvent("RentSystem:onAccept",root,name,maill,card,text,Plr,Serial) end ) addEventHandler("onClientGUIClick",root, function ( ) if source == GUIEditor.button[1] then local item = guiComboBoxGetSelected ( com ) local text = guiComboBoxGetItemText ( com , item ) local name = guiGetText( editname ) local maill = guiGetText ( editmail ) local card = guiGetText ( editcard ) if ( name and maill and card and text ~="" ) then triggerServerEvent ( "RentSystem:onCreateNewOrder", root, name, maill, card, text ) guiSetEnabled ( GUIEditor.button[1], false ) outMsg("تم إرسال الرسالة",true) end end end ) addEvent ( "RentSystem:onAccept", true ) addEventHandler ( "RentSystem:onAccept", root, function (name,maill,card,text,Plr,Serial) local row = guiGridListAddRow ( gridlist) guiGridListSetItemText (gridlist,row,1,getPlayerName(source),false,false) guiGridListSetItemText (gridlist,row,2,text,false,false) guiGridListSetItemText (gridlist,row,3,getPlayerSerial(source),false,false) end ) Link to comment
Ahmed Ly Posted June 27, 2016 Share Posted June 27, 2016 --Client addEventHandler("onClientGUIClick",root, function ( ) if source == GUIEditor.button[1] then local item = guiComboBoxGetSelected ( com ) local text = guiComboBoxGetItemText ( com , item ) local name = guiGetText( editname ) local maill = guiGetText ( editmail ) local card = guiGetText ( editcard ) if ( name and maill and card and text ~="" ) then triggerServerEvent ( "RentSystem:onCreateNewOrder", localPlayer, name, maill, card, text ) guiSetEnabled ( GUIEditor.button[1], false ) outMsg("تم إرسال الرسالة",true) end end end ) addEvent ( "RentSystem:onAccept", true ) addEventHandler ( "RentSystem:onAccept", root, function (name,maill,card,text,Plr,Serial) local row = guiGridListAddRow ( gridlist) guiGridListSetItemText (gridlist,row,1,Plr,false,false) guiGridListSetItemText (gridlist,row,2,text,false,false) guiGridListSetItemText (gridlist,row,3,Serial,false,false) end ) ------- --Server addEvent( "RentSystem:onCreateNewOrder", true ) addEventHandler( "RentSystem:onCreateNewOrder", root, function (name,maill,card,text) local Plr = getPlayerName( source ) local Serial = getPlayerSerial( source ) triggerClientEvent("RentSystem:onAccept",root,name,maill,card,text,Plr,Serial) end ) Link to comment
N3xT Posted June 27, 2016 Share Posted June 27, 2016 (edited) addEventHandler("onClientGUIClick",root, function ( ) if source == GUIEditor.button[1] then local item = guiComboBoxGetSelected ( com ) local text = guiComboBoxGetItemText ( com , item ) local name = guiGetText( editname ) local maill = guiGetText ( editmail ) local card = guiGetText ( editcard ) if ( name and maill and card and text ~="" ) then triggerServerEvent ( "RentSystem:onCreateNewOrder", localPlayer, name, maill, card, text ) guiSetEnabled ( GUIEditor.button[1], false ) outMsg("تم إرسال الرسالة",true) end end end ) addEvent ( "RentSystem:onAccept", true ) addEventHandler ( "RentSystem:onAccept", root, function (name,maill,card,text,Plr,Serial) local row = guiGridListAddRow ( gridlist) guiGridListSetItemText (gridlist,row,1,Plr,false,false) guiGridListSetItemText (gridlist,row,2,text,false,false) guiGridListSetItemText (gridlist,row,3,Serial,false,false) end ) Edited June 27, 2016 by Guest Link to comment
فاّرس Posted June 27, 2016 Share Posted June 27, 2016 بالتريقر حق الكلينت؟ يعني انت قاعد ترسل تريقر للكل المفروض ترسل للاعب اللي ضغط ثم ترسل تريقر من السيرفر للكلينت للكل root ممكن تعلمني ليه حاط 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