Reading a string from a file using Dini
#5

Quote:
Originally Posted by llama
Посмотреть сообщение
pawn Код:
if(!strcmp(dini_Get(string, "Banned"), "Yes", true))
Should work IIRC.
Yes it does, thanks!
Now I have another problem with Dini... When I attempt to open an exact folder by typing a command (/readfile lol - which opens file lol.ini), it never opens, because the string I have:

format(string, sizeof(string), "Bans/%s.ini", strval(tmp));

attempts to open this: Bans/\lol.ini (it should be without the '\', otherwise it's fine).
Any more ideas? :S
Reply


Messages In This Thread
Reading a string from a file using Dini - by Homerman - 12.10.2011, 21:13
Re: Reading a string from a file using Dini - by Wesley221 - 12.10.2011, 21:27
Re: Reading a string from a file using Dini - by Homerman - 13.10.2011, 12:06
Re: Reading a string from a file using Dini - by llama - 13.10.2011, 12:34
Re: Reading a string from a file using Dini - by Homerman - 13.10.2011, 13:47
Re: Reading a string from a file using Dini - by llama - 13.10.2011, 15:09
Re: Reading a string from a file using Dini - by Homerman - 13.10.2011, 16:04
Re: Reading a string from a file using Dini - by Homerman - 14.10.2011, 12:22
Re: Reading a string from a file using Dini - by llama - 14.10.2011, 14:46
Re: Reading a string from a file using Dini - by Homerman - 14.10.2011, 21:27

Forum Jump:


Users browsing this thread: 2 Guest(s)