Help - INI
#3

Quote:
Originally Posted by BenzoAMG
Посмотреть сообщение
As I've noticed, you are using tags in your INI whether this was intentional or not. Notice how under the first 'Banner' there is a '[data]' tag? These tags are used to separate your ini variables into customised sections. So in order to put the Banned, BanReason, BanTime etc. under that [data] tag, is simply add this:

pawn Код:
INI_SetTag(File, "data");
So your correct script would be:
pawn Код:
new INI:File = INI_Open(fstring);
INI_SetTag(File, "data");
INI_WriteInt(File,"Banned",0);
INI_WriteString(File,"Banreason","0");
INI_WriteString(File,"Bantime","0");
INI_WriteString(File,"Banner","0");
INI_Close(File);
THANKS, That works great
Reply


Messages In This Thread
Help - INI - by Fjclip99 - 24.02.2014, 13:18
Re: Help - INI - by Threshold - 24.02.2014, 16:09
Re: Help - INI - by Fjclip99 - 24.02.2014, 18:07

Forum Jump:


Users browsing this thread: 1 Guest(s)