SA-MP Forums Archive
Level save - 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: Level save (/showthread.php?tid=108310)



Level save - GaGlets(R) - 13.11.2009

Ok i have made level system.. last thing i need to do is make for it commands thats saves player level..
how to do it?

command for it /sstats (it can also save money etc.. )


Re: Level save - Jakku - 13.11.2009

Use dini or dudb. So easy


Re: Level save - GaGlets(R) - 13.11.2009

one of the level looks like this
Код:
	if(strcmp("/buylevel", cmdtext, true, 10) == 0)
	{
	 	if(PlayerInfo[playerid][pLevel] == 0)
		{
			if(Money >= 100000)
	  		{
	  			SendClientMessage(playerid,COLOR_1,"You Have bought level 1!");
	  			PlayerInfo[playerid][pLevel] = 1;
	  			flip[playerid] = 1;
	  		}
	  		else
  			{
	  			SendClientMessage(playerid,COLOR_5,"Not enought money to buy this!");
  			}
	  		return 1;
	 	}
how can do it with dini.. i have never made saving system