Jump to content
Sign in to follow this  
Exxor

Error when trying to use multiple paramters in a while loop

Recommended Posts

Hello there, for some reason I'm getting this error when trying to use multiple parameters in a while loop.

Ux22OcQ.png

 

Heres what my code looks like


_flag = A;
_isCaptured = false;
_flagPos = position _flag;


while {((alive player)  && ( _isCaptured != true))} do
{
	hint "in while";
	if(player distance _flag <= 15) then
	{
		hint "Capturing flag";
		sleep 5;
		_isCaptured = true;
	}
};

hint "flag captured";


 

Share this post


Link to post
Share on other sites

Thanks, man that fixed all of my issues.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×