Y_Ini - Reading string (i tried..)
#1

So.. it's saving:

pawn Код:
format(OnlineTime, sizeof(OnlineTime), "%02d:%02d:%02d", PlayerInfo[playerid][pOnlineHours], PlayerInfo[playerid][pOnlineMinutes], PlayerInfo[playerid][pOnlineSeconds]);

INI_WriteString(Account,        "Online_Time",      OnlineTime);
And now to load.. i tried with format, strval(value), strlen(value) and other options..

pawn Код:
if(!strcmp(name, "Online_Time"))
{
        PlayerInfo[playerid][pOnlineHours]      = strval(value);
        PlayerInfo[playerid][pOnlineMinutes]    = strval(value);
        PlayerInfo[playerid][pOnlineSeconds]    = strval(value);
}
But i dunno what to do to read it.. oh.. and i tried with INI_String.. no results.
Reply


Messages In This Thread
Y_Ini - Reading string (i tried..) - by Riddick94 - 30.08.2011, 14:46
Re: Y_Ini - Reading string (i tried..) - by [MWR]Blood - 30.08.2011, 14:56
Re: Y_Ini - Reading string (i tried..) - by Jeffry - 30.08.2011, 14:59
Re: Y_Ini - Reading string (i tried..) - by Riddick94 - 30.08.2011, 15:07
Re: Y_Ini - Reading string (i tried..) - by AndreT - 30.08.2011, 15:08

Forum Jump:


Users browsing this thread: 5 Guest(s)