AhmeD~9MoD Posted June 7, 2013 Share Posted June 7, 2013 سسللآم علييككم ,,, شباب هذي الكلمة مافهمتها في كودات في الويكي والي هي else أنأ شفت رد حق عناد حاط كدا else -- لم يتحقق يعني else العكس او يعني ماتحقق وكذا ؟؟ وشكراً Link to comment
فاّرس Posted June 7, 2013 Share Posted June 7, 2013 يعني شيء عكس الشرط, مثلا , function(player) if getElementType(player) == 'player' then local Team = getPlayerTeam(player) if Team then if Team == getTeamFromName("Red") then outputChatBox("Welcome") else -- اذا كان مو من تيم Red outputChatBox("You most be 'Red' ") end end end end Link to comment
iPrestege Posted June 7, 2013 Share Posted June 7, 2013 addCommandHandler('Prestege', function ( iPrestege ) if isPedInVehicle ( iPrestege ) then -- if Have Vehicle then outputChatBox('In Vehicle') -- return true else -- or outputChatBox('You do not have any vehicle!') -- return false end end ) Link to comment
AhmeD~9MoD Posted June 7, 2013 Author Share Posted June 7, 2013 Thx Best And Prestege .. ~ Link to comment
jafar Posted June 7, 2013 Share Posted June 7, 2013 بدون شرط ماراح تشتغل بيطلع لك خطأ ف debugscript Link to comment
AhmeD~9MoD Posted June 8, 2013 Author Share Posted June 8, 2013 بدون شرط ماراح تشتغل بيطلع لك خطأ ف debugscript ادري لازم شرط . if Ahmed then ......................... else .......................... 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