CMD won't work..
#3

Quote:
Originally Posted by DanishHaq
View Post
You're else'ing at the wrong close bracket, here:

pawn Code:
CMD:powers(playerid, params[])
{
    if(GetPlayerTeam(playerid) == 2)
    {
        if(Flaming[playerid] == 0)
        {
            Flaming[playerid] = 1;
            SetPlayerAttachedObject( playerid, 0, 18693, 5, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
            SetPlayerAttachedObject( playerid, 1, 18693, 6, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
            SetPlayerAttachedObject( playerid, 2, 18703, 6, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
            SetPlayerAttachedObject( playerid, 3, 18703, 5, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );

            SendClientMessage(playerid, COLOR_LIGHTBLUE, "You can now use your supers powers!");
        }
        else if(Flaming[playerid] == 1)
        {
            Flaming[playerid] = 0;

            for ( new i = 0; i < 4; i++ )
            if ( IsPlayerAttachedObjectSlotUsed( playerid, i ) )
            RemovePlayerAttachedObject( playerid, i );

        }
        return 1;
    }
    else { SendClientMessage(playerid, COLOR_RED, "[TEAM] {FFFFFF}- You're not a zombie, so you do not have super powers!"); return 1; }
}
Oh, my bad, hehe. Well anyways, can you help me out with the second question?
Reply


Messages In This Thread
CMD won't work.. - by CesarLT - 03.10.2013, 18:53
Re: CMD won't work.. - by DanishHaq - 03.10.2013, 19:18
Re: CMD won't work.. - by CesarLT - 03.10.2013, 21:15
Re: CMD won't work.. - by Patrick - 03.10.2013, 21:23
Re: CMD won't work.. - by CesarLT - 03.10.2013, 21:35
Re: CMD won't work.. - by Patrick - 03.10.2013, 21:39
Re: CMD won't work.. - by PabloDiCostanzo - 03.10.2013, 21:55
Re: CMD won't work.. - by CesarLT - 03.10.2013, 22:11
Re: CMD won't work.. - by Pottus - 03.10.2013, 22:27
Re: CMD won't work.. - by CesarLT - 03.10.2013, 22:31

Forum Jump:


Users browsing this thread: 2 Guest(s)