06.06.2010, 18:55
pawn Код:
if (fexist(playername(i))) return false;
new File:fhnd;
fhnd=fopen(playername(i),io_write);
if (fhnd) {
fclose(fhnd);
return true;
}
if (fexist(playername(i))) return false;
new File:fhnd;
fhnd=fopen(playername(i),io_write);
if (fhnd) {
fclose(fhnd);
return true;
}
new file[128]; new string[128]; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(file,sizeof(file),"/Accounts/%s.ini",name); // you need a folder "Accounts" in script files if(!fexist(file)) { dini_Create(file); //your stat saving variables here }