I can see 2 problems with the code after a quick look:
Line 244 - You have the access flags and nickname parameter switched up:
PHP Code:
AddAdmin(id, auth, nickname, flags, password, type, Comment)
Line 257:
PHP Code:
AddAdmin(id, auth[], accessflags[], nickname[], password[], flags[], comment[]="")
Line 338 - Here you specify 5 columns to add, but only 4 values for them. This would result in an error and nothing gets added:
PHP Code:
SQL_QueryAndIgnore(sql, "REPLACE INTO `%s` (`auth`, `nickname`, `password`, `access`, `flags`) VALUES ('%s', '%s', '%s', '%s')", table, auth, nickname, password, accessflags, flags)