30.08.2011, 14:46
So.. it's saving:
And now to load.. i tried with format, strval(value), strlen(value) and other options..
But i dunno what to do to read it.. oh.. and i tried with INI_String.. no results.
pawn Код:
format(OnlineTime, sizeof(OnlineTime), "%02d:%02d:%02d", PlayerInfo[playerid][pOnlineHours], PlayerInfo[playerid][pOnlineMinutes], PlayerInfo[playerid][pOnlineSeconds]);
INI_WriteString(Account, "Online_Time", OnlineTime);
pawn Код:
if(!strcmp(name, "Online_Time"))
{
PlayerInfo[playerid][pOnlineHours] = strval(value);
PlayerInfo[playerid][pOnlineMinutes] = strval(value);
PlayerInfo[playerid][pOnlineSeconds] = strval(value);
}