Can you do this?
#1

Can you do calculations with two variables? I know in pawn it lets you do this as an ex:

Armour + amount
Armour / amount
Armour * amount
Armour - amount

Well could you do Armour + Health, two variables that already have a value and add them?
Reply
#2

Try it out. You can only be wrong or right.
Reply
#3

Sure you can.
pawn Код:
new
    Float: HP,
    Float: AR,
    Float: HPARCombined
;
GetPlayerHealth(playerid, HP);
GetPlayerArmour(playerid, AR);
HPARCombined = HP + AR;
Something like this will work fine.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)