View Single Post
skatz_ws
Junior Member
Join Date: Aug 2019
Old 09-03-2019 , 06:00   Re: [AMXX] Run time error 3: stack error
Reply With Quote #5

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_classiEntity"func_button" ) ) > call_thinkiEntity );
    
    new 
players[32], pnum
    get_players
(playerspnum"ch")
    if (
pnum 5)
    {
        
ColorChat (0GREY"^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?

Last edited by skatz_ws; 09-03-2019 at 06:05.
skatz_ws is offline