Y_INI
#9

Quote:
Originally Posted by ***Niko***
Посмотреть сообщение
Okay one more thing what is difference betwen

pawn Код:
format(var, 128, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
pawn Код:
INI_WriteInt(string3, "AdminLevel",PlayerInfo[playerid][pAdmin]);
and

pawn Код:
dini_IntSet(string3, "AdminLevel",PlayerInfo[playerid][pAdmin]);
1st code uses SA-MP's local natives, fwrite to write down the array AdminLevel in which the result is an integer all in a file.

2nd code writes down an integer, which is the result of AdminLevel into a file. y_ini, I presume.

3rd code also relays the same info like the 2nd code, only difference that it's dini.
Reply


Messages In This Thread
Y_INI - by ***Niko*** - 23.11.2013, 18:36
Re: Y_INI - by DarkLored - 23.11.2013, 18:38
Re: Y_INI - by Spydah - 23.11.2013, 18:39
Re: Y_INI - by Konstantinos - 23.11.2013, 18:40
Re: Y_INI - by ***Niko*** - 23.11.2013, 18:48
Re: Y_INI - by ***Niko*** - 23.11.2013, 23:16
Re: Y_INI - by ***Niko*** - 24.11.2013, 11:06
Re: Y_INI - by Konstantinos - 24.11.2013, 11:09
Re: Y_INI - by Sublime - 24.11.2013, 11:11
Re: Y_INI - by ***Niko*** - 24.11.2013, 11:24

Forum Jump:


Users browsing this thread: 1 Guest(s)