Can someone help me with Dini - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Can someone help me with Dini (
/showthread.php?tid=129051)
Can someone help me with Dini -
caribe88 - 20.02.2010
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
Re: Can someone help me with Dini -
Born2die - 20.02.2010
Dini functions:
https://sampwiki.blast.hk/wiki/Useful_Fu....28Dini.inc.29
Re: Can someone help me with Dini -
caribe88 - 20.02.2010
thank you I didn't see that site