Y_INI help
#7

You need first to format it and then use the name of it.

pawn Код:
// opening file for playerid
new tmp[32];
for(new v = 0; v < MAX_PLAYERTOYS; v++)
{
    format(tmp, sizeof (tmp), "pt%dModelID", v);
    INI_WriteInt(File, tmp, PlayerToyInfo[playerid][v][ptModelID]);
    format(tmp, sizeof (tmp), "pt%dBone", v);
    INI_WriteInt(File, tmp, PlayerToyInfo[playerid][v][ptBone]);
    // continue the rest like that
}
// closing file for playerid
By the way, modelid and bone are integers not floats. Be careful on those!
Reply


Messages In This Thread
Y_INI help - by Lidor124 - 30.03.2014, 11:16
Re: Y_INI help - by Lidor124 - 30.03.2014, 12:39
Re: Y_INI help - by BroZeus - 30.03.2014, 13:34
Re: Y_INI help - by Lidor124 - 01.04.2014, 12:40
Re: Y_INI help - by Lidor124 - 02.04.2014, 15:16
Re: Y_INI help - by Lidor124 - 04.04.2014, 15:32
Re: Y_INI help - by Konstantinos - 05.04.2014, 14:48
Re: Y_INI help - by Lidor124 - 05.04.2014, 15:01
Re: Y_INI help - by Lidor124 - 07.04.2014, 17:21

Forum Jump:


Users browsing this thread: 1 Guest(s)