Simba Posted January 2, 2014 Posted January 2, 2014 السلام عليكم في بعض الاكواد تحظون كلمه end ومعناها انهاء مثل end -- مثلا اغلاق الوظيفه end -- اغلاق if طيب هنا الاند ما جائت تحت بعض end end طيب ليش واحيانا تجي تحت بعض هل مهم الترتييب ؟! Old Name = abodeoom
Simba Posted January 2, 2014 Author Posted January 2, 2014 if do function end كل هذا يبيله اعرفهم بس ليش الاند ما يجون تحت بعض ؟؟ مثال local Model = --- ايدي الشخصيةة addEventHandler ( "onClientPlayerDamage", localPlayer, function ( attacker _,_ ) if attacker and attacker ~= source then if ( getElementModel ( source ) == Model ) then cancelEvent( true ) end -- شوف الاند end -- شوف الاند هنا كل وحده بجهة end -- مالهم تحت بعض ) Old Name = abodeoom
Mr-M3AND Posted January 2, 2014 Posted January 2, 2014 طيب هنا الاند ما جائت تحت بعض end end طيب ليش واحيانا تجي تحت بعض هل مهم الترتييب ؟! الترتيب مو مهم , تقدر تخليها كذا end end او كذا end end على راحتك Skype: mohammed.altamimi77
Simba Posted January 2, 2014 Author Posted January 2, 2014 اها مشكور بس الاند يكون على عدد الفنكشات الي انا حاطها و ال if باختصار الي قالهم عمرر Old Name = abodeoom
EH10 Posted January 2, 2014 Posted January 2, 2014 اها مشكور بس الاند يكون على عدد الفنكشات الي انا حاطها و ال if باختصار الي قالهم عمرر بختصر لك اذا شفت فنكشن مثل كذا function if do ضيف end -- function end -- لاغلاق if end -- لاغلاق do Old Nick : MaxUr , #Skype : maxurmaxur BBM : 577287FC
Mr-M3AND Posted January 2, 2014 Posted January 2, 2014 باختصار الي قالهم عمرر end الا اذا كان كذا مايحتاج elseif Skype: mohammed.altamimi77
AboShanab Posted January 2, 2014 Posted January 2, 2014 (edited) function MyTest ( ) for i,v in ipairs ( test ) do if ( ........... ) then end -- End If end -- End of Loop end -- End of Function مثال بسيط ^ Edited January 2, 2014 by Guest Skype : aboshanab_
jafar Posted January 2, 2014 Posted January 2, 2014 اها مشكور بس الاند يكون على عدد الفنكشات الي انا حاطها و ال if باختصار الي قالهم عمرر بختصر لك اذا شفت فنكشن مثل كذا function if do ضيف end -- function end -- لاغلاق if end -- لاغلاق do للمعلومية إند الفنكشن يصصير من تحت
AboShanab Posted January 2, 2014 Posted January 2, 2014 باختصار الي قالهم عمرر end الا اذا كان كذا مايحتاج elseif بالنسبة لـ elseif مثال عليها if ( getElementData(source,"New") ) then elseif ( getElementData(source,"Mmm") ) then انا اقول لك ليه ما تحتاج end لان انت اساسا ما حطيت end حق الشرط الاول لو انك حاط للشرط الاول end كان ما تضبط هذي elseif ( getElementData(source,"Mmm") ) then Skype : aboshanab_
#DRAGON!FIRE Posted January 2, 2014 Posted January 2, 2014 if do function end كل هذا يبيله اعرفهم بس ليش الاند ما يجون تحت بعض ؟؟ مثال local Model = --- ايدي الشخصيةة addEventHandler ( "onClientPlayerDamage", localPlayer, function ( attacker _,_ ) if attacker and attacker ~= source then if ( getElementModel ( source ) == Model ) then cancelEvent( true ) end -- شوف الاند end -- شوف الاند هنا كل وحده بجهة end -- مالهم تحت بعض ) # انا احب احط الاندات كذا فـ كوداتي , ولأ تقدر تحطهم بأي شكل تبيه ما في فرق وكل من ... if do function ياخخذ اند . To Contact Me at Skype : [email protected]
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