Reading ini files
#7

I looked here: https://sampwiki.blast.hk/wiki/How_to_read_from_INI_files and found that I need to exclude \r\n. So I changed
Код:
strmid(value, buffer, pos + 1, strlen(buffer) - 1);
to
Код:
strmid(value, buffer, pos + 1, strlen(buffer) - 2);
and it works now.
Reply


Messages In This Thread
Reading ini files - by GoldenLion - 23.12.2016, 18:21
Re: Reading ini files - by SoLetsGO - 23.12.2016, 18:26
Re: Reading ini files - by GoldenLion - 23.12.2016, 18:29
Re: Reading ini files - by Bolex_ - 23.12.2016, 18:31
Re: Reading ini files - by GoldenLion - 23.12.2016, 18:31
Re: Reading ini files - by Bolex_ - 23.12.2016, 18:42
Re: Reading ini files - by GoldenLion - 23.12.2016, 18:44

Forum Jump:


Users browsing this thread: 1 Guest(s)