Jump to content

x[ مساعدة ]x في كود التحقق من الآعبين


Recommended Posts

السلام عليكم 

عندي هذا الكود , مدري وش الخطأ بيه , 

يقلي الخطأ ب else ! 

function StartTheMission() 
    TimerMission = setTimer(function() 
        for i, v in pairs( TableMission ) do 
            outputChatBox( "started . ", i, 255, 170, 127,true)
           else
		if #TableMission <= 1 then 
			for player,_ in pairs ( TableMission ) do
			if getPlayerTable (player, TableMission) then
			outputChatBox("Not Started Because Of Lack Players ", root, 0, 150, 255,true) 		
			if maps == 1 then maps == 2
			elseif maps == 2 then maps == 1	
		   end
		  end
          end 
         end			
        end
    end,TMS,1)
    
    -- TMS معرفها ,

 

 

Edited by #_iMr.[E]coo
Link to comment
function StartTheMission() 
	TimerMission = setTimer(function() 
		if #TableMission <= 1 then 
			for player,_ in pairs ( TableMission ) do
				if getPlayerTable (player, TableMission) then
					outputChatBox("Not Started Because Of Lack Players ", root, 0, 150, 255,true) 		
					if ( maps == 1 ) then 
						maps = 2
					elseif ( maps == 2 ) then 
						maps = 1	
					end
				end
			end
		else
			outputChatBox( "لقد بدات المهمة ", root, 255, 170, 127,true)
		end 		
	end,TMS,1)
end

 

Link to comment
7 hours ago, !#NssoR_) said:

function StartTheMission() 
	TimerMission = setTimer(function() 
		if #TableMission <= 1 then 
			for player,_ in pairs ( TableMission ) do
				if getPlayerTable (player, TableMission) then
					outputChatBox("Not Started Because Of Lack Players ", root, 0, 150, 255,true) 		
					if ( maps == 1 ) then 
						maps = 2
					elseif ( maps == 2 ) then 
						maps = 1	
					end
				end
			end
		else
			outputChatBox( "لقد بدات المهمة ", root, 255, 170, 127,true)
		end 		
	end,TMS,1)
end

 

شكراً !

يعطيكـ العافية !

  • Like 1
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...