20.06.2011, 18:09
whats wrong with this "SaveFamilie"? inside scriptfiles i have a folder called "Families" and inside that i have 3 .ini files called Familie_1, Familie_2 and Familie_3.
And when i try to save the familie with
it just prints:
What could be the problem?
Stock savefamilie:
And when i try to save the familie with
Код:
SaveFamilie( Player[playerid][Familie]);
Код:
Could not execute SaveFamilie(number).
Stock savefamilie:
pawn Код:
stock SaveFamilie( i )
{
new FileName[ 21 ];
format(FileName, sizeof(FileName), "Families/Familie_%d.ini", i);
if(fexist(FileName) )
{
dini_IntSet(FileName, "Test1", Families[i][Test1]); // This is just a test it should work.
dini_IntSet(FileName, "Test2", Families[i][Test2]); // This is just a test it should work.
dini_IntSet(FileName, "Test3", Families[i][Test3]); // This is just a test it should work.
printf( "[system] Familie %d saved.", i);
}
else
{
printf( "Could not execute SaveFamilie(%d).", i);
}
}