22.02.2015, 17:11
I think the problem lies within this line
If you put params[1] as second parameter the script read it as integer because params has no tags and tries to convert that value to a float resulting in very high numbers
That should solve it
Instead you could also change 'f' to 'i' because health / armour values can only be integers
pawn Код:
SetPlayerHealth(params[0], params[1]);
That should solve it
pawn Код:
SetPlayerHealth(params[0], Float: params[1]);
pawn Код:
if(sscanf(params, "ri", params[0], params[1]))