06.12.2010, 14:58
I am trying to use sscanf to load houses/bizzes/etc which requres them be loaded into a 3D array. I know you can load into a 3d array this way:
That is fine in this instance but when you have this:
It is a little bit more complicated. Is there a way to use "a<>" and incorporate 3D arrays?
pawn Код:
foreach(Player, i)
{
sscanf("1,2,3,4,5", "p<,>iiiii", Array[i][a], Array[i][b]...); //Continue out to Array[i][e]
}
pawn Код:
for(new h; h<MAX_HOUSES; h++)
{
fread(file, filestr);
sscanf(filestr, "p<,>is[24]s[24]iiiiiffffffiiii", Houses[h][a], Houses[h][b], ...); // Out to R
}