23.04.2014, 21:14
I have a problem with y-ini system
How can I create new file !!!
i want to make new file with y-ini to save my server things , like server run time , capacity of dm zones and etc.
so i need an ini file ! i need it , because ive changed dini to y-ini
i want something like that in dini
i want to make exactly this in y-ini but i dont know how
i read a lots of posts but i cant do this !!!
should i use parse ? or load ? which one ?
Look, actually this is my new code
How can I create new file !!!
i want to make new file with y-ini to save my server things , like server run time , capacity of dm zones and etc.
so i need an ini file ! i need it , because ive changed dini to y-ini
i want something like that in dini
Код:
#define Servsts "/Serversts/Cage.txt" new Serverstatus[64]; format(Serverstatus,sizeof(Serverstatus),Servsts); dini_Create(Serverstatus); dini_IntSet(Serverstatus,"cagea",0); dini_IntSet(Serverstatus,"cageb",0); dini_IntSet(Serverstatus,"cagec",0); dini_IntSet(Serverstatus,"caged",0);
i read a lots of posts but i cant do this !!!
should i use parse ? or load ? which one ?
Look, actually this is my new code
Код:
#define ServerPath "Server/Server.txt" public OnPlayerConnect(playerid) { INI_ParseFile(SrvPath(playerid),"(What is this ?!)", .bExtra = true(Whats This ?), .extra = playerid(Whats This ?)); return 1; } stock SrvPath() { new srvpd[128] format(srvpd,sizeof(srvpd),ServerPath); return srvpd; }