Command issue
#1

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:
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;
}
And line 385 is the /mdelevator cmd:
pawn Код:
C:\Users\Bastian\Documents\Samp_server\gamemodes\FD_Station.pwn(385) : warning 217: loose indentation
Reply


Messages In This Thread
Command issue - by Shinzei_Banzai - 24.09.2009, 17:53
Re: Command issue - by MB@ - 24.09.2009, 17:55
Re: Command issue - by Shinzei_Banzai - 24.09.2009, 18:07
Re: Command issue - by DracoBlue - 24.09.2009, 18:09
Re: Command issue - by Peter_Corneile - 24.09.2009, 18:14
Re: Command issue - by Shinzei_Banzai - 24.09.2009, 18:27
Re: Command issue - by DracoBlue - 24.09.2009, 18:33
Re: Command issue - by Sznupek - 24.09.2009, 18:37
Re: Command issue - by Peter_Corneile - 24.09.2009, 18:40
Re: Command issue - by Sznupek - 24.09.2009, 18:47

Forum Jump:


Users browsing this thread: 2 Guest(s)