04.04.2012, 05:13
when i saving players health and armour i keep getting these
code
and one question should this work?
pawn Код:
1.00000
1.00000
pawn Код:
enum PlayerInfo
{
Float:Health,
Float:Armour
};
new pInfo[MAX_PLAYERS][pInfo];
new Float:hp, Float:armour;
pInfo[playerid][Health] = GetPlayerHealth(playerid, hp);
pInfo[playerid][Armour] = GetPlayerArmour(playerid, armour);
INI_WriteFloat(iFile, "Health", pInfo[playerid][Health]);
INI_WriteFloat(iFile, "Armour", pInfo[playerid][Armour]);
pawn Код:
//OnPlayerSpawn
SetPlayerHealth(playerid, pInfo[playerid][Health]);
SetPlayerArmour(playerid, pInfo[playerid][Armour]);