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.