15.07.2011, 19:02
Hello all,
I've just started to use y_ini and it's a lil' complicated after dini..
So that's what I got:
PlayerPath:
PATH is "/Users/%.ini"
It worked fine with dini reading and etc. but now it just creates a file named "91ni"
Can you help me?
I've just started to use y_ini and it's a lil' complicated after dini..
So that's what I got:
pawn Код:
new INI:iFile = INI_Open(PlayerPath(playerid));
INI_SetTag(iFile,"data");
INI_WriteInt(iFile,"Pass",-1);
INI_WriteInt(iFile,"Admin",0);
INI_WriteInt(iFile,"Score",0);
INI_WriteInt(iFile,"Banned",0);
INI_Close(iFile);
pawn Код:
stock PlayerPath(playerid) {
new iStr[256],name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(iStr,sizeof(iStr),PATH,name);
return iStr;
}
It worked fine with dini reading and etc. but now it just creates a file named "91ni"
Can you help me?