Getplayerhealth + armour - tag mismatch?
#3

Armour is a float not a number. The correct usage of it would be

pawn Код:
format(var, 32, "Health=%f\n",PlayerInfo[playerid][pHealth]);fwrite(hFile, var)
format(var, 32, "Armour=%f\n",PlayerInfo[playerid][pArmour]);fwrite(hFile, var);
And you're best off using Dini, it's faster and easier.

Dini Version:

pawn Код:
dini_Float(string, "Health", PlayerInfo[playerid][pHealth]);
dini_Float(string, "Armour", PlayerInfo[playerid][pArmour]);
Reply


Messages In This Thread
Getplayerhealth + armour - tag mismatch? - by [GTA] - 01.12.2010, 09:52
Re: Getplayerhealth + armour - tag mismatch? - by iggy1 - 01.12.2010, 09:56
Re: Getplayerhealth + armour - tag mismatch? - by Shadow™ - 01.12.2010, 09:57
Re: Getplayerhealth + armour - tag mismatch? - by [GTA] - 01.12.2010, 10:07
Re: Getplayerhealth + armour - tag mismatch? - by Shadow™ - 01.12.2010, 10:09
Re: Getplayerhealth + armour - tag mismatch? - by [GTA] - 01.12.2010, 10:13
Re: Getplayerhealth + armour - tag mismatch? - by iggy1 - 01.12.2010, 10:14
Re: Getplayerhealth + armour - tag mismatch? - by Shadow™ - 01.12.2010, 10:25
Re: Getplayerhealth + armour - tag mismatch? - by [GTA] - 01.12.2010, 10:31
Re: Getplayerhealth + armour - tag mismatch? - by iggy1 - 01.12.2010, 10:34

Forum Jump:


Users browsing this thread: 1 Guest(s)