Dini -> Y_INI
#1

How would be this in y_ini?
pawn Код:
TempTotalTime = dini_Int(rFile, string);
dini_IntSet(rFile, string, TotalRaceTime);
dini_Set(rFile, string, pName);
TotalRaces = dini_Int(rNameFile, "TotalRaces");
RaceVehicle = dini_Int(rFile, "vModel");
CPCoords[x][0] = dini_Float(rFile, string);
dini_Get(rFile, string)
Reply
#2

dini_IntSet -> INI_WriteInt
dini_Set -> Don't know, maybe INI_SetTag
dini_Float -> INI_Float
dini_Get -> None.
But before all that do
pawn Код:
new INI:File = INI_Open(// here's the definition of File Path(playerid));
To define The path do as an example
pawn Код:
#define Path "Users/%s.ini"
and Then make a stock to get the file from there:
pawn Код:
stock UserPath(playerid)
{
    new string[128]; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), Path, name);
    return string;
}
Good luck
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)