01.12.2010, 10:25
pawn Код:
enum pInfo
{
Float:pHealth,
Float:pArmour
}
new PlayerInfo[MAX_PLAYERS][pInfo];
new Float:PlayersHealth, var[56], File:hFile;
PlayerInfo[playerid][pHealth] = GetPlayerHealth(playerid,PlayersHealth);
format(var, 32, "Health=%f\n",PlayerInfo[playerid][pHealth]);
fwrite(hFile, var);
new Float:PlayersArmour;
PlayerInfo[playerid][pArmour] = GetPlayerArmour(playerid,PlayersArmour);
format(var, 32, "Armour=%f\n",PlayerInfo[playerid][pArmour]);
fwrite(hFile, var);
And I was under the impression that Dini was faster?