Why am i getting errors
#7

Quote:
Originally Posted by nuriel8833
Посмотреть сообщение
pawn Код:
warning 217: loose indentation
Add this on top of your script:
pawn Код:
#pragma tabsize 0
And which lines is this warning?:
pawn Код:
warning 215: expression has no effect
All the warnings are on the same line

pawn Код:
command(c4, playerid, params[]) {
        new
                Float:BombPosx,
                Float:BombPosy,
                Float:BombPosz;
        if(Player[playerid][Group] == 2)
        {
            if(Player[playerid][C4] == 0)
            {
                                GetPlayerPos(playerid, BombPosx, BombPosy, BombPosz);
                                Player[playerid][C4] = 1;
                ApplyAnimationEx(playerid, "BOMBER", "BOM_Plant", 3.1, 0, 1, 1, 1, 1);
                TogglePlayerControllable(playerid, true);
                SendClientMessage(playerid, WHITE, "You have planted a C4.");
               ERROR > Player[playerid][BombPos][0] = BombPosx;
                Player[playerid][BombPos][1] = BombPosy;
                Player[playerid][BombPos][2] = BombPosz;
                CreatePlayer3DTextLabel(playerid, "Bomb Planted", RED, Player[playerid][BombPos][0],Player[playerid][BombPos][1], Player[playerid][BombPos][2], 1000, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1);
            }
                else if(Player[playerid][C4] == 1)
                {
                        if(IsPlayerInRangeOfPoint(playerid, 5, Player[playerid][BombPos][0], Player[playerid][BombPos][1], Player[playerid][BombPos][2]))
                        {
                                ApplyAnimationEx(playerid, "BOMBER", "BOM_Plant", 3.1, 0, 1, 1, 1, 1);
                        TogglePlayerControllable(playerid, true);
                        SendClientMessage(playerid, WHITE, "You have picked your C4 up.");
                                Player[playerid][C4] = 0;
                                DeletePlayer3DTextLabel(playerid, PlayerText3D:0);
                                }
                }
        }
        else return 0;
        return 1;
}
pawn Код:
ERROR > Player[playerid][BombPos][0] = BombPosx;
Please help

Thanks
Reply


Messages In This Thread
Why am i getting errors - by Euan Hughes - 16.07.2012, 18:02
Re: Why am i getting errors - by Dan. - 16.07.2012, 18:14
Re: Why am i getting errors - by Euan Hughes - 16.07.2012, 18:19
Re: Why am i getting errors - by shayan122 - 16.07.2012, 18:27
Re: Why am i getting errors - by nuriel8833 - 16.07.2012, 18:28
Re: Why am i getting errors - by Dan. - 16.07.2012, 18:32
Re: Why am i getting errors - by Euan Hughes - 16.07.2012, 18:32
Re: Why am i getting errors - by Dan. - 16.07.2012, 18:34
Re: Why am i getting errors - by leonardo1434 - 16.07.2012, 18:36
Re: Why am i getting errors - by Euan Hughes - 16.07.2012, 18:37

Forum Jump:


Users browsing this thread: 1 Guest(s)