formatex( text, 255, "addons/amxmodx/acalight/%i.txt", ip ); -> formatex( text, 255, "addons/amxmodx/acalight/%s.txt", ip );