Can someone help me with Dini
#1

Hi guys
I wanna save the score from all players into different files.
Im using dini and I did the first part when a players connects it creates the file.

Here the code

#include Dini

public OnPlayerConnect(playerid)
{
//file create part
new name[MAX_PLAYER_NAME], string[256];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s.pts", name );
dini_Create(string);
return 1;
}


My question is how to write/read from the file and save it when the player disconnects.
Thanks
Reply


Messages In This Thread
Can someone help me with Dini - by caribe88 - 20.02.2010, 19:02
Re: Can someone help me with Dini - by Born2die - 20.02.2010, 19:06
Re: Can someone help me with Dini - by caribe88 - 20.02.2010, 19:09

Forum Jump:


Users browsing this thread: 4 Guest(s)