It seems that I can't understand more then 75% of this:
PHP Code:
new sorryfile[64]
get_configsdir(sorryfile, sizeof(sorryfile) - 1)
add(sorryfile, sizeof(sorryfile) - 1, "/bot_apology.ini")
if( !file_exists(sorryfile) )
{
copy(g_sorry_phrases[0], SORRYS_LEN, "sorry")
g_sorry_count = 1
return
}
new f = fopen(sorryfile, "rt")
new data[SORRYS_LEN]
g_sorry_count = 0
while( !feof(f) && g_sorry_count < SORRYS_MAX)
{
fgets(f, data, sizeof(data) - 1)
trim(data)
if( !data[0] || data[0] == ';'
|| data[0] == '/' && data[1] == '/' ) continue;
copy(g_sorry_phrases[g_sorry_count], SORRYS_LEN, data)
g_sorry_count++
}