public OnClientAuthenticate(const name{}, const pwd{})
{
JoinLog(name);
return true;
}
// logging test
stock JoinLog(const string{}) // no need to declare this public. also, the parameter need to be const qualified (see callback)
{
new entry{200}; // not an error, but it is highly recommended to use packed strings
strformat(entry, sizeof(entry), true, "%s\n", string); // format is actually strformat (it's "format" in SA-MP, but default PAWN declares it strformat)
new File:hFile;
hFile = fopen("Logs/join.log", io_append);
fwrite(hFile, entry);
fclose(hFile);
}