Error compile
#3

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
Loose indentation means that you aren't tabulating/indenting your code at a certain/appropriate level. Also, they are warnings, not errors. You can run your script with warnings, but it's always advised to fix them, and not just avoid/ignore them.

pawn Код:
CMD:ff(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        if(PlayerInfo[playerid][pAdmin] >= 1)
        {
            new Float:px, Float:py, Float:pz, Float:pa;
            GetPlayerFacingAngle(playerid, pa);

            if(pa >= 0.0 && pa <= 22.5) //
            {
                GetPlayerPos(playerid, px, py, pz);
                SetPlayerPos(playerid, px, py+20, pz);
            }
            else if(pa >= 332.5 && pa < 0.0) //n2
            {
                GetPlayerPos(playerid, px, py, pz);
                SetPlayerPos(playerid, px, py+20, pz);
            }
            else if(pa >= 22.5 && pa <= 67.5) //nw
            {
                GetPlayerPos(playerid, px, py, pz);
                SetPlayerPos(playerid, px-10, py+10, pz);
            }
            else if(pa >= 67.5 && pa <= 112.5) //w
            {
                GetPlayerPos(playerid, px, py, pz);
                SetPlayerPos(playerid, px-20, py, pz);
            }
            else if(pa >= 112.5 && pa <= 157.5) //sw
            {
                GetPlayerPos(playerid, px, py, pz);
                SetPlayerPos(playerid, px-10, py-10, pz);
            }
            else if(pa >= 157.5 && pa <= 202.5) //s
            {
                GetPlayerPos(playerid, px, py, pz);
                SetPlayerPos(playerid, px, py-20, pz);
            }
            else if(pa >= 202.5 && pa <= 247.5)//se
            {
                GetPlayerPos(playerid, px, py, pz);
                SetPlayerPos(playerid, px+10, py-10, pz);
            }
            else if(pa >= 247.5 && pa <= 292.5)//e
            {
                GetPlayerPos(playerid, px, py, pz);
                SetPlayerPos(playerid, px+20, py, pz);
            }
            else if(pa >= 292.5 && pa <= 332.5)//e
            {
                GetPlayerPos(playerid, px, py, pz);
                SetPlayerPos(playerid, px+10, py+10, pz);
            }
        }
    }
    return 1;
}
Thanks.
Reply


Messages In This Thread
Error compile - by DarkElement - 09.09.2016, 07:47
Re: Error compile - by SickAttack - 09.09.2016, 07:59
Re: Error compile - by DarkElement - 09.09.2016, 08:05
Re: Error compile - by Threshold - 09.09.2016, 09:20

Forum Jump:


Users browsing this thread: 1 Guest(s)