05.04.2014, 14:48
You need first to format it and then use the name of it.
By the way, modelid and bone are integers not floats. Be careful on those!
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