Simba Posted January 2, 2014 Share Posted January 2, 2014 السلام عليكم في بعض الاكواد تحظون كلمه end ومعناها انهاء مثل end -- مثلا اغلاق الوظيفه end -- اغلاق if طيب هنا الاند ما جائت تحت بعض end end طيب ليش واحيانا تجي تحت بعض هل مهم الترتييب ؟! Link to comment
Tete omar Posted January 2, 2014 Share Posted January 2, 2014 if do function end كل هذا يبيله Link to comment
Simba Posted January 2, 2014 Author Share 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 -- مالهم تحت بعض ) Link to comment
Mr-M3AND Posted January 2, 2014 Share Posted January 2, 2014 طيب هنا الاند ما جائت تحت بعض end end طيب ليش واحيانا تجي تحت بعض هل مهم الترتييب ؟! الترتيب مو مهم , تقدر تخليها كذا end end او كذا end end على راحتك Link to comment
Simba Posted January 2, 2014 Author Share Posted January 2, 2014 اها مشكور بس الاند يكون على عدد الفنكشات الي انا حاطها و ال if باختصار الي قالهم عمرر Link to comment
EH10 Posted January 2, 2014 Share Posted January 2, 2014 اها مشكور بس الاند يكون على عدد الفنكشات الي انا حاطها و ال if باختصار الي قالهم عمرر بختصر لك اذا شفت فنكشن مثل كذا function if do ضيف end -- function end -- لاغلاق if end -- لاغلاق do Link to comment
Mr-M3AND Posted January 2, 2014 Share Posted January 2, 2014 باختصار الي قالهم عمرر end الا اذا كان كذا مايحتاج elseif Link to comment
AboShanab Posted January 2, 2014 Share 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 Link to comment
jafar Posted January 2, 2014 Share Posted January 2, 2014 اها مشكور بس الاند يكون على عدد الفنكشات الي انا حاطها و ال if باختصار الي قالهم عمرر بختصر لك اذا شفت فنكشن مثل كذا function if do ضيف end -- function end -- لاغلاق if end -- لاغلاق do للمعلومية إند الفنكشن يصصير من تحت Link to comment
AboShanab Posted January 2, 2014 Share 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 Link to comment
#DRAGON!FIRE Posted January 2, 2014 Share 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 ياخخذ اند . 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