24.09.2009, 17:53
Well.. I have abseloutely no idea what went wrong.. I just entered a simple /enter cmd, yet it doesn't work.. Also I can't find the problem with line 385(/mdelevator). There is a loose indentation, can't find it.. But here it is:
And line 385 is the /mdelevator cmd:
pawn Код:
}
if (strcmp("/mdelevator", cmdtext, true, 10) == 0)
{
if (PlayerToPoint(26, playerid,1148.358032,-1315.570678,24.000000))
if(MDElevatorstatus)
{
MoveObject(MDElevator, 1148.358032,-1315.570678,31.79 , 2);
MDElevatorstatus = 0;
}
else
{
MoveObject(MDElevator, 1148.358032,-1315.570678,14 , 2);
MDElevatorstatus = 1;
}
return 1;
}
if (strcmp("/enter", cmdtext, true, 10) == 0)
{
if (PlayerToPoint(3.0,playerid,1173.0345,-1323.7742,15.3973))
{
SetPlayerPos(playerid,1174.5543,-1310.0366,-4.9240);
}
return 1;
}
}
return 0;
}
pawn Код:
C:\Users\Bastian\Documents\Samp_server\gamemodes\FD_Station.pwn(385) : warning 217: loose indentation