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
#2

Dini functions: https://sampwiki.blast.hk/wiki/Useful_Fu....28Dini.inc.29
Reply
#3

thank you I didn't see that site
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)