27.04.2010, 06:05
Ok so. first attempt with floats. Ive used floats only to get playerposition and that was it..
Now i'm really working with them. trying to make basic command to show my health and armour.
my command compiles, looks right. but ingame i type it. nothing happends..
Take a look.
I thought i did everything right? but the message doesn't appear.
Now i'm really working with them. trying to make basic command to show my health and armour.
my command compiles, looks right. but ingame i type it. nothing happends..
Take a look.
Код:
if (strcmp("/orly", cmdtext, true, 10) == 0) { new string[256]; new Float:HP; new Float:AP; GetPlayerHealth(playerid, HP); GetPlayerArmour(playerid, AP); format(string, sizeof(string), "Health: %d Armour: %d", floatround(HP), floatround(AP)); return 1; }