20.09.2014, 12:39
hi all, i want a help in how to create an account id like when player registers it show them you are registered with account id 0 or 1 bla bla.
note i dont use MySQL !
note i dont use MySQL !
new string[4]; // Create the string to store the read text in
new File:example = fopen("count.txt", io_write); // Open the file
if(example) // If it opened successfully
{
fread(example, string); // Read a line from the file and store it in 'string'
new count = strval( string ) + 1;
PlayerAccountID = count; /*You change this accordingly*/
format(string, sizeof string, "%d", count );
fwrite(example, string );
fclose(example); // Close the file
print(string); // Print what was read
}