12.02.2014, 19:18
Maybe this will help ?
pawn Код:
for(new v = 0; v < MAX_PLAYERS; v++)
{
new string[128];
format( string, sizeof( string ), "pt%dModelID", v);
dini_Int(string, PlayerToyInfo[playerid][v][ptModelID]);
format(string, 128, "pt%dBone",v);
dini_Int(string, PlayerToyInfo[playerid][v][ptBone]);
format(string, 128, "pt%dPosX",v);
float:dini_Float(string, PlayerToyInfo[playerid][v][ptPosX]);
format(string, 128, "pt%dPosY",v);
float:dini_Float(string, PlayerToyInfo[playerid][v][ptPosY]);
format(string, 128, "pt%dPosZ",v);
float:dini_Float(string, PlayerToyInfo[playerid][v][ptPosZ]);
format(string, 128, "pt%dRotX",v);
float:dini_Float(string,PlayerToyInfo[playerid][v][ptRotX]);
format(string, 128, "pt%dRotY",v);
float:dini_Float(string,PlayerToyInfo[playerid][v][ptRotY]);
format(string, 128, "pt%dRotZ",v);
float:dini_Float(string,PlayerToyInfo[playerid][v][ptRotZ]);
format(string, 128, "pt%dSizX",v);
float:dini_Float(string,PlayerToyInfo[playerid][v][ftscaleX]);
format(string, 128, "pt%dSizY",v);
float:dini_Float(string,PlayerToyInfo[playerid][v][ftscaleY]);
format(string, 128, "pt%dSizZ",v);
float:dini_Float(string,PlayerToyInfo[playerid][v][ftscaleZ]);
}