SA-MP Forums Archive
Simplest Error Need Fixing... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Simplest Error Need Fixing... (/showthread.php?tid=262020)



Simplest Error Need Fixing... - TyThaBomb - 16.06.2011

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.


Re: Simplest Error Need Fixing... - linuxthefish - 16.06.2011

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