iMr ~ MnHmAr Posted January 29, 2016 Share Posted January 29, 2016 addEventHandler ( "onClientGUIClick", root, function() if ( GUIEditor.button[1] == player ) then ---- الدي بوق يقول الخطآ هنا giveWeapon(player, 31, 50, true ) takeMony(player,120) outputChatBox ( "تم اخذت سلاحء" ) end end وش المشكله Link to comment
#StrOnG_,) Posted January 29, 2016 Share Posted January 29, 2016 (edited) جرب addEventHandler ("onClientGUIClick", root, function () if source == GUIEditor.button[1] then giveWeapon (player, 31, 50, true ) takePlayerMoney (player,120) outputChatBox ( "تم اخذت سلاحء" ) end end ) الاخطاء : كان لازم تحط قوس أغلاق + عندك خطا بكتابة فنكشن اخذ الفلوس صححته لك Edited January 29, 2016 by Guest Link to comment
Ahmed Ly Posted January 29, 2016 Share Posted January 29, 2016 (edited) addEventHandler ( "onClientGUIClick", root, function() if ( GUIEditor.button[1] == player ) then ---- الدي بوق يقول الخطآ هنا giveWeapon(player, 31, 50, true ) takeMony(player,120) outputChatBox ( "تم اخذت سلاحء" ) end end addEventHandler ("onClientGUIClick", root, function () if source == GUIEditor.button[1] then giveWeapon(player, 31, 50, true ) takeMony(player, 500) outputChatBox ( "تم اخذت سلاحء" ) end end ) وش المشكله كلنت addEventHandler ("onClientGUIClick", root, function () if source == GUIEditor.button[1] then triggerServerEvent("AK", source) outputChatBox ( "تم اخذت سلاحء" ) end end ) سيرفر addEvent ( "AK", true ) addEventHandler ( "AK", root, function ( ) giveWeapon(source, 5, 1) takePlayerMoney(source, 500) end end Edited January 29, 2016 by Guest Link to comment
#StrOnG_,) Posted January 29, 2016 Share Posted January 29, 2016 addEventHandler ( "onClientGUIClick", root, function() if ( GUIEditor.button[1] == player ) then ---- الدي بوق يقول الخطآ هنا giveWeapon(player, 31, 50, true ) takeMony(player,120) outputChatBox ( "تم اخذت سلاحء" ) end end addEventHandler ("onClientGUIClick", root, function () if source == GUIEditor.button[1] then giveWeapon(player, 31, 50, true ) takePlayerMoney(player, 500) outputChatBox ( "تم اخذت سلاحء" ) end end ) وش المشكله اعتقد افدته وبنفس الكود مالها داعي تكرر الرد # Link to comment
Ahmed Ly Posted January 29, 2016 Share Posted January 29, 2016 addEventHandler ( "onClientGUIClick", root, function() if ( GUIEditor.button[1] == player ) then ---- الدي بوق يقول الخطآ هنا giveWeapon(player, 31, 50, true ) takeMony(player,120) outputChatBox ( "تم اخذت سلاحء" ) end end addEventHandler ("onClientGUIClick", root, function () if source == GUIEditor.button[1] then giveWeapon(player, 31, 50, true ) takePlayerMoney(player, 500) outputChatBox ( "تم اخذت سلاحء" ) end end ) وش المشكله اعتقد افدته وبنفس الكود مالها داعي تكرر الرد # اكود هدا giveWeapon يخدم علي كلنت ؟؟؟ Link to comment
#StrOnG_,) Posted January 29, 2016 Share Posted January 29, 2016 صححت له كوده لا اكثر ! + لو سمحت لا تغير مسار الموضوعوانت كنت حاط كود ثاني فلا تسوي فيها فهيم :] Link to comment
MR.GRAND Posted January 29, 2016 Share Posted January 29, 2016 صححت له كوده لا اكثر ! + لو سمحت لا تغير مسار الموضوعوانت كنت حاط كود ثاني فلا تسوي فيها فهيم :] ستروق ... كوده هو الصح بنسبة اكبر من كودك لآن اعطاء الفلوس بالكلنت وههمي ... والسلاح سيرفر سايد ^ Link to comment
MR.GRAND Posted January 29, 2016 Share Posted January 29, 2016 addEventHandler ( "onClientGUIClick", root, function() if ( GUIEditor.button[1] == player ) then ---- الدي بوق يقول الخطآ هنا giveWeapon(player, 31, 50, true ) takeMony(player,120) outputChatBox ( "تم اخذت سلاحء" ) end end addEventHandler ("onClientGUIClick", root, function () if source == GUIEditor.button[1] then giveWeapon(player, 31, 50, true ) takeMony(player, 500) outputChatBox ( "تم اخذت سلاحء" ) end end ) وش المشكله كلنت addEventHandler ("onClientGUIClick", root, function () if source == GUIEditor.button[1] then triggerServerEvent("AK", source) outputChatBox ( "تم اخذت سلاحء" ) end end ) سيرفر addEvent ( "AK", true ) addEventHandler ( "AK", root, function ( ) giveWeapon(source, 5, 1) takePlayerMoney(source, 500) end end للمعلومة عندك زيادة اند بالسيرفر سايد ونقص قوس بالسيرفر والكلنت Link to comment
Ahmed Ly Posted January 29, 2016 Share Posted January 29, 2016 addEventHandler ( "onClientGUIClick", root, function() if ( GUIEditor.button[1] == player ) then ---- الدي بوق يقول الخطآ هنا giveWeapon(player, 31, 50, true ) takeMony(player,120) outputChatBox ( "تم اخذت سلاحء" ) end end addEventHandler ("onClientGUIClick", root, function () if source == GUIEditor.button[1] then giveWeapon(player, 31, 50, true ) takeMony(player, 500) outputChatBox ( "تم اخذت سلاحء" ) end end ) وش المشكله كلنت addEventHandler ("onClientGUIClick", root, function () if source == GUIEditor.button[1] then triggerServerEvent("AK", source) outputChatBox ( "تم اخذت سلاحء" ) end end ) سيرفر addEvent ( "AK", true ) addEventHandler ( "AK", root, function ( ) giveWeapon(source, 5, 1) takePlayerMoney(source, 500) end end للمعلومة عندك زيادة اند بالسيرفر سايد ونقص قوس بالسيرفر والكلنت تم تصحيح و انشاء الله صح كلنت addEventHandler ("onClientGUIClick", root, function () if source == GUIEditor.button[1] then triggerServerEvent("AK", localPlayer) outputChatBox ( "تم اخذت سلاحء" ) end end ) سيرفر function weapon ( ) giveWeapon(source, 5, 1) takePlayerMoney(source, 500) end addEvent ( "AK", true ) addEventHandler ( "AK", root,weapon) Link to comment
Rockyz Posted January 29, 2016 Share Posted January 29, 2016 كودك ناقصه تحققات ^ كلنت addEventHandler ("onClientGUIClick", root, function () if ( source == GUIEditor.button[1] ) then triggerServerEvent("AK", localPlayer) end end ) سيرفر function weapon ( ) if ( getPlayerMoney ( source ) >= 500 ) then takePlayerMoney(source, 500) giveWeapon(source, 5, 1) outputChatBox ( "تم اخذت سلاحء", source ) else outputChatBox ( "انت لاتملك المال الكافي", source ) end end addEvent ( "AK", true ) addEventHandler ( "AK", root,weapon) 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