Weapon damages
#2

pawn Код:
else if(arm < 1)
                    {
                        SetPlayerArmour(damagedid, arm);
                        SetPlayerHealth(playerid, hp-COLTDMG);
                    }
Shouldn't playerid be damagedid?

pawn Код:
case 4:
                {
                    SetPlayerArmour(damagedid, arm);
                    SetPlayerHealth(playerid, hp-COLTDMG/1.5);
                }
                case 5:
                {
                    SetPlayerArmour(damagedid, arm);
                    SetPlayerHealth(playerid, hp-COLTDMG/2);
                }
                case 6:
                {
                    SetPlayerArmour(damagedid, arm);
                    SetPlayerHealth(playerid, hp-COLTDMG/2);
                }
                case 7:
                {
                    SetPlayerArmour(damagedid, arm);
                    SetPlayerHealth(playerid, hp-COLTDMG/2);
                }
                case 8:
                {
                    SetPlayerArmour(damagedid, arm);
                    SetPlayerHealth(playerid, hp-COLTDMG/2);
                }
Same with here, shouldn't playerid be damagedid?

EDIT: Saw your edit, disregard.
Reply


Messages In This Thread
Weapon damages - by JaydenJason - 10.05.2015, 19:12
Re: Weapon damages - by DTV - 10.05.2015, 19:18

Forum Jump:


Users browsing this thread: 1 Guest(s)