Level save
#1

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.. )
Reply
#2

Use dini or dudb. So easy
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)