INI functions do work well but you cant use them then.
I wouldn't recommend using INI functions for saving accounts database because the are heavy. Much better will be xplit funcion only.
Example accounts text file including 3 players data:
//login pass_in_md5 money exp mexp mana mmana 12 skills
asdf 93w7f493498saUf 1068044 48800 22000 34560 400500 1 0 0 0 1 0 0 1 0 1 0 1
fdsa 6dsrw7sdaUsdffd f625420 61045 68000 24000 500500 0 0 1 0 0 0 1 0 0 1 0 0
12de 8g97gd97f97gd8f 3028046 20000 24000 56455 200500 0 0 1 0 1 0 0 1 0 1 0 1
You split the file into single lines using xplit function,
lines:=xsplit(ReadFile(spawn_file), chr(13)+chr(10)); //lines are separated by ending line char
find a needed line by login which is on beginnig, and then split one line into single words getting the whole players data.
line:=xsplit(lines[num],' ');//words are separated by space
player[ID].pass := line[1];
player[ID].money := strtoint(line[2]);
...
...