I have some issues finding the error.
PHP Code:
#include <amxmodx>
new g_Name[1024][32], first_time = 0, k = 0;
public client_authorized(id)
{
first_time++;
if(first_time)
{
set_task(120.0, "clearvar", _, _, _, "b");
}
for(; k < 1024; k++)
{
get_user_name(id, g_Name[ k ], 31);
}
for(new i = 0; i <= k; i++)
{
if( equali(g_Name[i], g_Name[k]) )
{
// exec something
}
}
}
public clearvar()
{
for(new i = 0; i < 1024; i++)
{
for(new j = 0; j < 32; j++)
{
g_Name[i][j] = '\0';
}
}
}
PHP Code:
/tmp/textbxpJsw.sma(33) : error 075: input line too long (after substitutions)
I'm trying to check if a player has reconnected in the last 120 secs. Also, I want to reuse the g_Name variable, but when I try to assign the NULL value, the compiler won't let me.
Thanks!