How to make this System WITHOUT 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: How to make this System WITHOUT Dini? (
/showthread.php?tid=187120)
How to make this System WITHOUT Dini? -
<Weponz> - 01.11.2010
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?
Re: How to make this System WITHOUT Dini? -
ViruZZzZ_ChiLLL - 01.11.2010
Refer to
https://sampwiki.blast.hk/wiki/File_Functions
Re: How to make this System WITHOUT Dini? -
iggy1 - 01.11.2010
You could also use y_ini or djson. (both found in filterscript section)