05.06.2011, 08:43
Quote:
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 |
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