I hook the roundstart on plugin init
PHP Code:
register_event ( "HLTV", "_inicioronda", "a","1=0","2=0" );
Complete function:
PHP Code:
public _inicioronda()
{
new iEntity;
while( ( iEntity = find_ent_by_class( iEntity, "func_button" ) ) > 0 ) call_think( iEntity );
new players[32], pnum
get_players(players, pnum, "ch")
if (pnum < 5)
{
ColorChat (0, GREY, "^01[^04eJail^01] ^03O ^04ranking eJails^03 inicia com^04 5 ou mais jogadores ^03dentro do servidor (%i/5)",pnum)
skStats = false
}
else skStats = true
set_task (1.0, "_escolha", TASK_ESCOLHER_REI);
set_task (59.0, "_microfonesupervip", TASK_MICROFONE);
set_task (179.0, "_avisoconduta", TASK_CONDUTA);
set_task (419.0, "_acabardia", TASK_DIA);
}
The error is always pointed to "new players[32], pnum" line
EDIT: I found a guy with the same error:
https://forums.alliedmods.net/showthread.php?t=258465
And he uses #pragma dynamic just like me. Can it possibily be the error?