Quote:
Originally Posted by xRyder
pawn Code:
COMMAND:heal(playerid, params[]) { new pID, health; if(!sscanf(params, "ui", pID, health)) { SetPlayerHealth(pID, health); SendClientMessage(playerid, YourCOLOR, "You have successfully set players health!"); } else return SendClientMessage(playerid, YourCOLOR, "Usage: /heal [PlayerID][Amount]"); return 1; }
|
thanks but not working
Quote:
Originally Posted by Mean
Since when is health an integer? It should be:
pawn Code:
if(!sscanf(params, "uf", pID, health))
because it's a float.
Also
instead
|
thanks but not working too
maybe i did something wrong