SA-MP Forums Archive
Weapon damages - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Weapon damages (/showthread.php?tid=573826)



Weapon damages - JaydenJason - 10.05.2015

EDIT: fuck me, used wrong specifier


Re: Weapon damages - DTV - 10.05.2015

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.