Help with achievements
#1

Fixed!
Reply
#2

Fixed!
Reply
#3

pawn Код:
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".");
}
source
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)