Well, first off, you did not copy the original code (the amx_ban part) correctly and you aren't ever going to get something correct that you base on incorrect code. Then, you seemed to have randomly moved things around when you shouldn't have. Because of this you are trying to format a number as a string and a string as a number.