22.08.2009, 06:52
I need to make a bank log when using a bank command.Like /deposit or /bank
forward BankLog(string[]);
public BankLog(string[])
{
new entry[128];
format(entry, sizeof(entry), "%s\n",string);
new File:hFile;
hFile = fopen("/logs/bank.log", io_append);
fwrite(hFile, entry);
fclose(hFile);
}
format(string, sizeof(string), "[DEPOSIT] %s used /deposit %d", PlayerName(playerid), amount);
BankLog(string);