Dini help
#2

Quote:
Originally Posted by Wesley221
Посмотреть сообщение
Hey guys,

Could anyone give me some help with dini, and explain the functions a little bit?

Like what does:
dini_Int
dini_IntSet
dini_Set

And how can i use those, like howmutch arguments do i need for them
Hope you guys can help me out,
~Wesley
I am not 100% sure since I don't really use dini but here we go...


dini_IntSet - Sets an integer (like score, adminlevel etc.)

dini_Set - Sets everything that is not a float or integer, so that would be a string (like banreasons etc.)

dini_Int - Not sure, but I think that reads an integer?

Example:

pawn Код:
new pname[42];//Name variable
GetPlayerName(playerid, pname, sizeof(pname));//Gets the name so we can save it below V

format(file, sizeof(file), "\Users\%s.ini", pname);//An example, this will save/write it to Users\<Name>.ini

dini_Create(file);//Creates the file
dini_Set(file, "password", params);//Params from a command, it will set the password UNHASHED.
dini_IntSet(file, "level", 0);//Sets an integer, in this case, level. The last 0 is for the level you want at start
Reply


Messages In This Thread
Dini help - by Wesley221 - 05.06.2011, 08:17
Re: Dini help - by alpha500delta - 05.06.2011, 08:43
Re: Dini help - by xalith - 05.06.2011, 08:50
Re: Dini help - by Wesley221 - 05.06.2011, 08:50
Re: Dini help - by Markx - 05.06.2011, 08:57
Re: Dini help - by Sascha - 05.06.2011, 08:58

Forum Jump:


Users browsing this thread: 1 Guest(s)