18.06.2014, 00:54
Well, i tried it like this:
and i still can't get it right :/
pawn Код:
GetPlayerName(playerid, Name, sizeof(Name));
GetPlayerName(id, Name2, sizeof(Name2));
new INI:file = INI_Open(Path(id));
new cstring[128];
INI_SetTag(file, "User's Data");
GetPlayerName(id, daname, sizeof(daname));
format(astring, sizeof(astring), "/Users/%s.ini", daname);
fremove(astring);
INI_WriteString(file, "Name", newname);
format(cstring, sizeof(cstring), "/Users/%s.ini", newname);
INI_Close(file);