AhmeD~9MoD Posted June 7, 2013 Posted June 7, 2013 سسللآم علييككم ,,, شباب هذي الكلمة مافهمتها في كودات في الويكي والي هي else أنأ شفت رد حق عناد حاط كدا else -- لم يتحقق يعني else العكس او يعني ماتحقق وكذا ؟؟ وشكراً
فاّرس Posted June 7, 2013 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
iPrestege Posted June 7, 2013 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 )
AhmeD~9MoD Posted June 8, 2013 Author Posted June 8, 2013 بدون شرط ماراح تشتغل بيطلع لك خطأ ف debugscript ادري لازم شرط . if Ahmed then ......................... else ..........................
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