How to make this System WITHOUT Dini?
#1

I need a saving system,That saves numbers so i can use it in my script like +1 -1 and to only allow with certain number ammounts to use commands like <10 and >10 etc and i can see the ammount with /ammount

Please not with Dini i cant use the Dini icludude on this specific GM(Conficting with foreach i think)

Heres wat i was using before with Dini include but like i said cant use on this GM

It was:

Код:
enum pInfo
{
      Amount,
}

new PlayerInfo[MAX_PLAYERS][pInfo];
And like this to use in the script to allow/disallow commands with certain amounts etc
Код:
if(PlayerInfo[playerid][Amount] < 200)
And like this to put in a /ammount command
Код:
format(amount, sizeof(amount),"You Have This %d Amount",PlayerInfo[playerid][Amount] );
And to use to give or take ammounts
Код:
PlayerInfo[playerid][Amount] = PlayerInfo[playerid][Amount] +1;

PlayerInfo[playerid][Amount] = PlayerInfo[playerid][Amount] -1;
etc
etc
etc

Now is there a way possible to use this withiout Dini?
Reply
#2

Refer to https://sampwiki.blast.hk/wiki/File_Functions
Reply
#3

You could also use y_ini or djson. (both found in filterscript section)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)