Simplest Error Need Fixing...
#1

Well, I got a gate script made, and I got ONE Error: A loose indentation! I was excited, looking at how to fix it, tried many times, and still wasnt fixed! Here's the code:
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (!strcmp("/close", cmdtext))
	{
		if(IsPlayerInRangeOfPoint(playerid, 7.0, -2243.1083984375, 645.521484375, 50.687446594238))
		{
      MoveObject(agate1, -2243.1083984375, 645.521484375, 50.687446594238, 1);
	 	}
		return 1;
	}
	if (!strcmp("/open", cmdtext))
	{
	  if(IsPlayerInRangeOfPoint(playerid, 7.0, -2243.1083984375, 645.521484375, 50.687446594238))
 	  {
      MoveObject(agate1, -2243.1083984375, 645.521484375, 46.687446594238, 1);
		}
		return 1;
	}
	return 0;
}

EDIT: Fixed.
Reply
#2

If that's your indention, it's as fucked up as hell.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)