new file[100];
format(file,sizeof(file),"/Database/Achievements/%s.txt", pname);
new File:handle = fopen(file, io_write);
if(handle)// Check, if file is open
{
format(string, sizeof(string), "Robbed 10 Players.\r\n");
fwrite(handle, string);
fclose(handle);
}
else
{
// Error
print("Failed to open file the file".");
}