26.11.2010, 23:36
Is this right if not whats the right way it compile fine but doesnt save the armour and health damage
I can save player health too 100 and everytime they relog they have 100 i want it to save there armour and health if they recieved damage to there armour or health it would save there health and armour so when they relog in it be where they logged out
My Varibles are pHealth, pArmour,
under enum is
new PlayerInfo[MAX_PLAYERS][pInfo];
And this is the location i retrieve player userfiles
new file[24];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), ARS_SERVERFILES, name);
I can save player health too 100 and everytime they relog they have 100 i want it to save there armour and health if they recieved damage to there armour or health it would save there health and armour so when they relog in it be where they logged out
My Varibles are pHealth, pArmour,
under enum is
new PlayerInfo[MAX_PLAYERS][pInfo];
And this is the location i retrieve player userfiles
new file[24];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), ARS_SERVERFILES, name);
Код:
new Float:Health, Float:Armour; GetPlayerHealth(playerid, Health); dini_FloatSet(file, "Health", Health); GetPlayerArmour(playerid, Armour); dini_FloatSet(file, "Armour", Armour);