16.06.2011, 07:02
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:
EDIT: Fixed.
Код:
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.

