20.02.2010, 19:02
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
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