+5 Armour
#1

Hello,

How can I do that I can give someone 5% armour extra?
I tried this: SetPlayerArmour(playerid, +=5);
But that doesn't work, what should I do instead of what I
did?

K. Regards,
I. C.
Reply
#2

Like this
pawn Код:
new Float:armour;
GetPlayerArmour(playerid, armour);
SetPlayerArmour(playerid, armour+5);
Reply
#3

Quote:
Originally Posted by Fj0rtizFredde
Посмотреть сообщение
Like this
pawn Код:
new Float:armour;
GetPlayerArmour(playerid, armour);
SetPlayerArmour(playerid, armour+5);
Thanks
Reply
#4

pawn Код:
new Float:armour;
GetPlayerArmour(playerid, armour);
SetPlayerArmour(playerid, armour+5);
This is +5 Armor.

pawn Код:
new Float:pArmour;
GetPlayerArmour(playerid, pArmour);
SetPlayerArmour(playerid, pArmour+(5*pArmour)/100);
This is +5% Armor.
Reply
#5

Quote:
Originally Posted by viKKmaN
Посмотреть сообщение
pawn Код:
new Float:armour;
GetPlayerArmour(playerid, armour);
SetPlayerArmour(playerid, armour+5);
This is +5 Armor.

pawn Код:
new Float:pArmour;
GetPlayerArmour(playerid, pArmour);
SetPlayerArmour(playerid, pArmour+(5*pArmour)/100);
This is +5% Armor.
It was actually just 5, i thought i must say it in %'s, thanks anyway
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)