Problem with a command related to health
#4

I think the problem lies within this line
pawn Код:
SetPlayerHealth(params[0], params[1]);
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
pawn Код:
SetPlayerHealth(params[0], Float: params[1]);
Instead you could also change 'f' to 'i' because health / armour values can only be integers
pawn Код:
if(sscanf(params, "ri", params[0], params[1]))
Reply


Messages In This Thread
Problem with a command related to health - by Magic_Time - 22.02.2015, 16:46
Re: Problem with a command related to health - by xXSPRITEXx - 22.02.2015, 16:53
Re: Problem with a command related to health - by zork - 22.02.2015, 16:56
AW: Problem with a command related to health - by Nero_3D - 22.02.2015, 17:11
Re: Problem with a command related to health - by Magic_Time - 22.02.2015, 18:14

Forum Jump:


Users browsing this thread: 2 Guest(s)