Save problem
#1

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
Код:
SaveFamilie( Player[playerid][Familie]);
it just prints:
Код:
Could not execute SaveFamilie(number).
What could be the problem?

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);
    }
}
Reply


Messages In This Thread
Save problem - by The Woody - 20.06.2011, 18:09
Re: Save problem - by =WoR=Varth - 20.06.2011, 19:01
Re: Save problem - by The Woody - 20.06.2011, 19:10
Re: Save problem - by The Woody - 20.06.2011, 19:51
Re: Save problem - by The Woody - 20.06.2011, 20:06
Re: Save problem - by =WoR=Varth - 20.06.2011, 20:12
Re: Save problem - by The Woody - 20.06.2011, 20:32

Forum Jump:


Users browsing this thread: 2 Guest(s)