26.08.2014, 14:59
faz um teste ai acho que vc esqueceu do "dini_Exists(filename[]);"
pawn Код:
new strconta[30];
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(strconta, sizeof(strconta), "/contas/%s.ini", aname);
if(!dini_Exists(strconta)) dini_Create(strconta);
Onplayerupdate:
new aname[MAX_PLAYER_NAME];
new file[30];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), "/contas/%s.ini");
SetPlayerScore(playerid,dini_Int(file, "Level"));