I need some help
#1

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);

Код:
            new Float:Health, Float:Armour;
            GetPlayerHealth(playerid, Health);
            dini_FloatSet(file, "Health", Health);
            GetPlayerArmour(playerid, Armour);
            dini_FloatSet(file, "Armour", Armour);
Reply


Messages In This Thread
I need some help - by Buzzbomb - 26.11.2010, 23:36
Re: I need some help - by blackwave - 27.11.2010, 00:58
Re: I need some help - by Buzzbomb - 27.11.2010, 01:43
Re: I need some help - by [L3th4l] - 27.11.2010, 01:57
Re: I need some help - by Buzzbomb - 27.11.2010, 02:56

Forum Jump:


Users browsing this thread: 2 Guest(s)