04.01.2018, 09:29
By the way, health is a Float. So your code should looks like:
PHP код:
CMD:sethp(playerid, params[])
{
new Float:bet;
if(sscanf(params, "f", bet)) return SCM(playerid, -1, "USAGE:/sethp (hp).");
new string [128];
format(string, sizeof(string), "Your Hp Has Been Setten To %.2f",bet);
SCM(playerid, -1, string);
SetPlayerHealth(playerid , bet);
return 1;
}