There's no difference between a .ini file and a .txt other than the assumed contents. Why do you need to copy it? There are functions created in the Code Snippets/Tutorials forum to do this.
Anyways, there were many things wrong with the code that you created, too many for me to write up right now. Here is a quick fix that I did for you. It's untested and with no guarantees.
Code:
#include <amxmodx>
#include <amxmisc>
new szFDataBuffer[1000][512]
new iLineCount = 0
new iPrintCount[33]
public plugin_init()
{
register_plugin("Print File to Console", "0.1", "Hello World")
register_clcmd("amx_evs", "evs")
}
public plugin_cfg()
{
new szFilename[128]
get_datadir(szFilename, charsmax(szFilename))
format(szFilename, sizeof (szFilename), "%s/hihi.txt", szFilename)
new file = fopen(szFilename, "rt")
while(!feof(file))
{
fgets(file, szFDataBuffer[iLineCount], charsmax(szFDataBuffer[]))
trim(szFDataBuffer[iLineCount])
iLineCount++
}
fclose(file)
}
public evs(id)
{
iPrintCount[id] = 0
client_print(id, print_console, "===========================")
set_task(0.1, "evs_print", id, _, _, "a", iLineCount)
return PLUGIN_CONTINUE
}
public evs_print(id)
{
client_print(id, print_console, "%d) %s", iPrintCount[id] + 1, szFDataBuffer[iPrintCount[id]])
iPrintCount[id]++
}
__________________