XI_Alooy1212_IX Posted July 17, 2014 Share Posted July 17, 2014 addEventHandler("onClientGUIClick", root, function() if ( source == GUIEditor.button[1] ) then triggerServerEvent("car1",getLocalPlayer()) elseif ( source == GUIEditor.button[2] ) then triggerServerEvent("car2",getLocalPlayer()) elseif ( source == GUIEditor.button[3] ) then triggerServerEvent("car3",getLocalPlayer()) elseif ( source == GUIEditor.button[4] ) then triggerServerEvent("car4",getLocalPlayer()) end end Link to comment
acount deleted Posted July 17, 2014 Share Posted July 17, 2014 addEventHandler("onClientGUIClick", root, function() if ( source == GUIEditor.button[1] ) then triggerServerEvent("car1",getLocalPlayer()) elseif ( source == GUIEditor.button[2] ) then triggerServerEvent("car2",getLocalPlayer()) elseif ( source == GUIEditor.button[3] ) then triggerServerEvent("car3",getLocalPlayer()) elseif ( source == GUIEditor.button[4] ) then triggerServerEvent("car4",getLocalPlayer()) end end) Link to comment
XI_Alooy1212_IX Posted July 17, 2014 Author Share Posted July 17, 2014 (edited) . Edited July 17, 2014 by Guest Link to comment
XI_Alooy1212_IX Posted July 17, 2014 Author Share Posted July 17, 2014 addEventHandler("onClientGUIClick", root, function() if ( source == GUIEditor.button[1] ) then triggerServerEvent("car1",getLocalPlayer()) elseif ( source == GUIEditor.button[2] ) then triggerServerEvent("car2",getLocalPlayer()) elseif ( source == GUIEditor.button[3] ) then triggerServerEvent("car3",getLocalPlayer()) elseif ( source == GUIEditor.button[4] ) then triggerServerEvent("car4",getLocalPlayer()) end end) ambiguous syntax (function call x new statment) near "(" ؟؟ يطلع لي في الدي بج Image Link to comment
acount deleted Posted July 17, 2014 Share Posted July 17, 2014 انت بالاصدار الجديد صح كما توقعت عشان نزلو لعة OOP صارت ماثرة بشكل كبير جدا عالفنكشات القديمة و الديبق ما تقدر تعرف الخطا الصحيح التحديثات غبية مثل اح OOP + الكود صحيح Link to comment
XI_Alooy1212_IX Posted July 17, 2014 Author Share Posted July 17, 2014 لا انا اصدار 1.3 بس مجربته في 1.4 Link to comment
ALw7sH Posted July 17, 2014 Share Posted July 17, 2014 function Click() if ( source == GUIEditor.button[1] ) then triggerServerEvent("car1",getLocalPlayer()) elseif ( source == GUIEditor.button[2] ) then triggerServerEvent("car2",getLocalPlayer()) elseif ( source == GUIEditor.button[3] ) then triggerServerEvent("car3",getLocalPlayer()) elseif ( source == GUIEditor.button[4] ) then triggerServerEvent("car4",getLocalPlayer()) end end addEventHandler("onClientGUIClick", root,Click) ^ ماصلحت شي بالكود عشان ماشوف شي خطأ بس غيرت شي وجرب يمكن يضبط Link to comment
acount deleted Posted July 17, 2014 Share Posted July 17, 2014 function Click() if ( source == GUIEditor.button[1] ) then triggerServerEvent("car1",getLocalPlayer()) elseif ( source == GUIEditor.button[2] ) then triggerServerEvent("car2",getLocalPlayer()) elseif ( source == GUIEditor.button[3] ) then triggerServerEvent("car3",getLocalPlayer()) elseif ( source == GUIEditor.button[4] ) then triggerServerEvent("car4",getLocalPlayer()) end end addEventHandler("onClientGUIClick", root,Click) ^ ماصلحت شي بالكود عشان ماشوف شي خطأ بس غيرت شي وجرب يمكن يضبط قلي وش الفرق بين حقي و حقك مافي فرق فقط غيرت مكان الافنت لول Link to comment
ALw7sH Posted July 17, 2014 Share Posted July 17, 2014 function Click() if ( source == GUIEditor.button[1] ) then triggerServerEvent("car1",getLocalPlayer()) elseif ( source == GUIEditor.button[2] ) then triggerServerEvent("car2",getLocalPlayer()) elseif ( source == GUIEditor.button[3] ) then triggerServerEvent("car3",getLocalPlayer()) elseif ( source == GUIEditor.button[4] ) then triggerServerEvent("car4",getLocalPlayer()) end end addEventHandler("onClientGUIClick", root,Click) ^ ماصلحت شي بالكود عشان ماشوف شي خطأ بس غيرت شي وجرب يمكن يضبط قلي وش الفرق بين حقي و حقك مافي فرق فقط غيرت مكان الافنت لول مادري من وين تقرا بالضبط Link to comment
acount deleted Posted July 17, 2014 Share Posted July 17, 2014 يعني وش الفرق ما غيرت شي و تقول يضبط اضن الخطا مو من ذا Link to comment
ALw7sH Posted July 17, 2014 Share Posted July 17, 2014 يعني وش الفرق ما غيرت شي و تقول يضبط اضن الخطا مو من ذا ابي اعرف انت صاحب الموضوع ولا وش ؟ Link to comment
ALw7sH Posted July 17, 2014 Share Posted July 17, 2014 صاحب الموضوع اطرح جانب سيرفر Edit: تأكد لو الازرار بفنكشن انك مو حاط قبل الزر local Link to comment
nxFairlywell Posted July 17, 2014 Share Posted July 17, 2014 localPlayer = getLocalPlayer() addEventHandler("onClientGUIClick", root, function() if ( source == GUIEditor.button[1] ) then triggerServerEvent ( "car1", localPlayer ) elseif ( source == GUIEditor.button[2] ) then triggerServerEvent ( "car2", localPlayer ) elseif ( source == GUIEditor.button[3] ) then triggerServerEvent ( "car3", localPlayer ) elseif ( source == GUIEditor.button[4] ) then triggerServerEvent ( "car4", localPlayer ) end end اخوي جَـرب ألحـين+وضح مشكلتك وين بالضبط Link to comment
acount deleted Posted July 17, 2014 Share Posted July 17, 2014 ناقص قوس ^ لا اله الا الله addEventHandler("onClientGUIClick", root, function() if ( source == GUIEditor.button[1] ) then triggerServerEvent("car1",getLocalPlayer()) elseif ( source == GUIEditor.button[2] ) then triggerServerEvent("car2",getLocalPlayer()) elseif ( source == GUIEditor.button[3] ) then triggerServerEvent("car3",getLocalPlayer()) elseif ( source == GUIEditor.button[4] ) then triggerServerEvent("car4",getLocalPlayer()) end end) الحمد لله على نعمة العقل مو عليك Link to comment
al-Kobra Posted July 17, 2014 Share Posted July 17, 2014 ياخي ذبحتنا شكله المشكلة من عنده مو من اكوادكم Link to comment
Max+ Posted July 17, 2014 Share Posted July 17, 2014 كود الكلينت صحيح مافيه مشكلة , لاكن المشكلة عنده من السيرفر سايد . . . Link to comment
ALw7sH Posted July 17, 2014 Share Posted July 17, 2014 ياخي ذبحتنا شكله المشكلة من عنده مو من اكوادكم ذا ميوت مدري وش به فيه مرض نفسي يفكر نفسه صاحب الموضوع يا ميوت هو قال ناقص قوس لصاحب الموضوع مو لك + يب المشكله اكيد من عنده لانه الاكواد مافيها شي Link to comment
acount deleted Posted July 17, 2014 Share Posted July 17, 2014 ياخي ذبحتنا شكله المشكلة من عنده مو من اكوادكم ذا ميوت مدري وش به فيه مرض نفسي يفكر نفسه صاحب الموضوع يا ميوت هو قال ناقص قوس لصاحب الموضوع مو لك + يب المشكله اكيد من عنده لانه الاكواد مافيها شي لالا انا ماني مريض بانفصام الشخصية مثلك Link to comment
nxFairlywell Posted July 17, 2014 Share Posted July 17, 2014 اي موضوع لازم فيه مضاربات =) صدقوني ماراح نتقدم خطوه وحده لقدام 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