[ZP] Ayuda: make_a_zombie
#1
Hola necesito ayuda con mi zp, aveces se bugea y no inicia ningun modo.. alguien sabe por que pueda ser? en consola y logs me tira este error






L 03/29/2021 - 17:05:52: [AMXX] Run time error 10: native error (native "get_pcvar_float")
L 03/29/2021 - 17:05:52: [AMXX]    [0] zombie_plague40.sma::make_a_zombie (line 6330)
L 03/29/2021 - 17:05:52: [AMXX]    [1] zombie_plague40.sma::make_zombie_task (line 6239)




dejo el make

Código PHP:
// Make Zombie Task
public make_zombie_task()
{
    
// Call make a zombie with no specific mode
    
make_a_zombie(MODE_NONE0)

Código PHP:
// Make a Zombie Function
make_a_zombie(modeid)
{
    
// Get alive players count
    
static iPlayersnum
    iPlayersnum 
fnGetAlive()
    
    
// Not enough players, come back later!
    
if (iPlayersnum 1)
    {
        
set_task(10.0"make_zombie_task"TASK_MAKEZOMBIE)
        return;
    }
    
    
#if defined AMBIENCE_SOUNDS
    // Start ambience sounds after a mode begins
    
remove_task(TASK_AMBIENCESOUNDS)
    
set_task(2.0"ambience_sound_effects"TASK_AMBIENCESOUNDS)
    
#endif
    
    // Get prevent consecutive modes setting
    
static preventconsecutive
    preventconsecutive 
get_pcvar_num(cvar_preventconsecutive)
    
    
// Round starting
    
g_newround false
    
/* para evitar bugs
    g_survround = false
    g_nemround = false
    g_swarmround = false
    g_plagueround = false
    g_weskerround = false
    g_aniquilacionround = false
    g_sniperround = false
    */
    // Set up some common vars
    
static forward_idname[32], iZombiesiMaxZombies
    
    
if ((mode == MODE_NONE && (!preventconsecutive || g_lastmode != MODE_SURVIVOR) && random_num(1get_pcvar_num(cvar_survchance)) == get_pcvar_num(cvar_surv) && iPlayersnum >= get_pcvar_num(cvar_survminplayers)) || mode == MODE_SURVIVOR)
    {
        
// Survivor Mode
        
g_survround true
        g_lastmode 
MODE_SURVIVOR
        
        
// Choose player randomly?
        
if (mode == MODE_NONE)
            
id fnGetRandomAlive(random_num(1iPlayersnum))        
        
        
// Remember id for calling our forward later
        
forward_id id
        
        
// Turn player into a survivor
        
humanme(id1)
        
        static 
survhealth
        survhealth 
get_pcvar_num(cvar_survhp)
        
fm_set_user_health(idsurvhealth ammount_shealth(g_habilidad[id][2][1]))
    
        set_pev
(idpev_gravityget_pcvar_float(cvar_survgravity) - ammount_sgravity(g_habilidad[id][2][3]))
        
        
// Turn the remaining players into zombies
        
for (id 1id <= g_maxplayersid++)
        {
            
// Not alive
            
if (!is_user_alive(id))
                continue;
            
            
// Survivor or already a zombie
            
if (g_survivor[id] || g_zombie[id])
                continue;
            
            
// Turn into a zombie
            
zombieme(id001)
        }
        
        
// Play survivor sound
        
PlaySound(sound_survivor[random_num(0sizeof sound_survivor -1)]);
        
        
// Get player's name
        
get_user_name(forward_idnamesizeof name 1)
        
        
// Show Survivor HUD notice
        
set_hudmessage(2020255HUD_EVENT_XHUD_EVENT_Y10.05.01.01.0, -1)
        
ShowSyncHudMsg(0g_MsgSync"%L"LANG_PLAYER"NOTICE_SURVIVOR"name)
        
        
// Round start forward
        
ExecuteForward(g_fwRoundStartg_fwDummyResultMODE_SURVIVORforward_id);
    }
    else if ((
mode == MODE_NONE && (!preventconsecutive || g_lastmode != MODE_ARMAGEDON) && random_num(1get_pcvar_num(cvar_armagedonchance)) == get_pcvar_num(cvar_armagedon) && floatround((iPlayersnum-2)*get_pcvar_float(cvar_armagedonratio), floatround_ceil) >= && iPlayersnum >= get_pcvar_num(cvar_armagedonminplayers)) || mode == MODE_ARMAGEDON)
    {
        
//Armagedon Mode
        
g_plagueround true
        g_armagedonround 
true
        
        
// Turn someone into a Survivor
        
id fnGetRandomAlive(random_num(1iPlayersnum))
        
humanme(id1)
        
        
// Turn someone into a Nemesis (not the survivor!)
        
while (g_survivor[id]) id fnGetRandomAlive(random_num(1iPlayersnum));
        
zombieme(id010)
        
        
// iMaxZombies is rounded up, in case there aren't enough players
        
iMaxZombies floatround((iPlayersnum-2)*get_pcvar_float(cvar_plagueratio), floatround_ceil)
        
iZombies 0
        
        
// Randomly turn iMaxZombies players into zombies
        
while (iZombies iMaxZombies)
        {
            if (
id g_maxplayers)
            
id++
            else
            
id 1
    
            
// Dead or already a zombie or survivor
            
if (!is_user_alive(id) || g_zombie[id] || g_survivor[id])
            continue;
    
            
// Random chance
            
if (random_num(01))
            {
                
// Turn into a nemesis
                
zombieme(id010)
                
iZombies++
            }
        }
    
        
// Turn the rest of players into humans
        
for (id 1id <= g_maxplayersid++)
        {
            
// Only those of them who arent zombies or survivor
            
if (!is_user_alive(id) || g_zombie[id] || g_survivor[id])
            continue
    
            
// Remove previous tasks and make them survivors
            
remove_task(id+TASK_TEAM)
            
humanme(id1)
    
            
/* Switch to CT
            if (fm_get_user_team(id) != CS_TEAM_CT) // need to change team?
            {
            fm_set_user_team(id, CS_TEAM_CT)
            set_task(0.1+g_teams_i, "fm_set_user_team_msg", id+TASK_TEAM)
            g_teams_i += 0.1; // increase teams task counter
            }*/
        
}
    
        
// Play plague sound
        
PlaySound(sound_plague[random_num(0sizeof sound_plague -1)]);
        
        
// Show Plague HUD notice
        
set_hudmessage(050200, -1.00.1710.05.01.01.0, -1)
        
ShowSyncHudMsg(0g_MsgSync"!!!ARMAGEDON!!!")
        
        
// Round start forward
        
ExecuteForward(g_fwRoundStartg_fwDummyResultMODE_ARMAGEDON0);
    }
    else if ((
mode == MODE_NONE && (!preventconsecutive || g_lastmode != MODE_SYNAPSIS) && random_num(1get_pcvar_num(cvar_synapsischance)) == get_pcvar_num(cvar_synapsis) && floatround((iPlayersnum-2)*get_pcvar_float(cvar_synapsisratio), floatround_ceil) >= && iPlayersnum >= get_pcvar_num(cvar_synapsisminplayers)) || mode == MODE_SYNAPSIS)
    {
        
//Synapsis mode
        
g_plagueround true
        g_synapsisround 
true
    
        
// Turn 3 into a nemesis
        
id fnGetRandomAlive(random_num(1iPlayersnum))
        
zombieme(id010)
        
id fnGetRandomAlive(random_num(1iPlayersnum))
        if (!
g_nemesis[id])
        {
            
zombieme(id010)    
        
}
        else
        {
            
id fnGetRandomAlive(random_num(1iPlayersnum))
            
zombieme(id010)
        }
        if (!
g_nemesis[id])
        {
            
zombieme(id010)    
        
}
        else
        {
            
id fnGetRandomAlive(random_num(1iPlayersnum))
            
zombieme(id010)
        } 
        
// Finish 
        
for (id 1id <= g_maxplayersid++)
        {
            
// Only those of them who arent zombies or survivor
            
if (!is_user_alive(id) || g_nemesis[id] )
            continue
            
// Remove previous tasks
            
remove_task(id+TASK_TEAM)            
            fm_set_user_team
(idCS_TEAM_CT)
            
set_task(0.1+g_teams_i"fm_set_user_team_msg"id+TASK_TEAM)
            
g_teams_i += 0.1// increase teams task counter
        
}
        
// Play plague sound
        
PlaySound(sound_plague[random_num(0sizeof sound_plague -1)]);
 
        
// Show Plague HUD notice
        
set_hudmessage(050200, -1.00.1710.05.01.01.0, -1)
        
ShowSyncHudMsg(0g_MsgSync"Modo Synapsis")
 
        
// Round start forward
        
ExecuteForward(g_fwRoundStartg_fwDummyResultMODE_SYNAPSIS0);
    }
    else if ((
mode == MODE_NONE && (!preventconsecutive || g_lastmode != MODE_SNIPER) && random_num(1get_pcvar_num(cvar_sniperchance)) == get_pcvar_num(cvar_sniper) && iPlayersnum >= get_pcvar_num(cvar_sniperminplayers)) || mode == MODE_SNIPER)
    {
        
g_survround false
        g_sniperround 
true
        g_lastmode 
MODE_SNIPER
        
        id 
fnGetRandomAlive(random_num(1iPlayersnum))
        
        
forward_id id
        
        g_survivor
[id] = false
        g_sniper
[id] = true
        humanme
(id1)
        
        
fm_strip_user_weapons(id)
        
fm_give_item(id"weapon_knife")
        
fm_give_item(id"weapon_awp")
        
        
fm_set_rendering(idkRenderFxGlowShell2624874kRenderNormal8)
        
        static 
sniperhealth
        sniperhealth 
get_pcvar_num(cvar_sniperhp)
        
fm_set_user_health(idsniperhealth)
    
        set_pev
(idpev_gravityget_pcvar_float(cvar_snipergravity))
        
        for (
id 1id <= g_maxplayersid++)
        {
            if (!
is_user_alive(id))
                continue;
        
            
if (g_survivor[id] || g_zombie[id])
                continue;
        
            zombieme
(id010)  
        
}
        
        
PlaySound(sound_wesker[random_num(0sizeof sound_wesker -1)]);
        
        
get_user_name(forward_idnamesizeof name 1)
        
set_hudmessage(18513515HUD_EVENT_XHUD_EVENT_Y10.05.01.01.0, -1)
        
ShowSyncHudMsg(0g_MsgSync"!!! %s Es SNIPER !!!"name)
        
        
ExecuteForward(g_fwRoundStartg_fwDummyResultMODE_SNIPERforward_id);
    }    
    else if ((
mode == MODE_NONE && (!preventconsecutive || g_lastmode != MODE_WESKER) && random_num(1get_pcvar_num(cvar_weskerchance)) == get_pcvar_num(cvar_wesker) && iPlayersnum >= get_pcvar_num(cvar_weskerminplayers)) || mode == MODE_WESKER)
    {
        
// wesker Mode
        
g_survround false
        g_weskerround 
true
        g_lastmode 
MODE_WESKER
    
        
// Choose player randomly?
        
id fnGetRandomAlive(random_num(1iPlayersnum))        
        
        
// Remember id for calling our forward later
        
forward_id id
        
        g_survivor
[id] = false
        g_wesker
[id] = true
        humanme
(id1)
    
    
        fm_strip_user_weapons
(id)
        
fm_give_item(id"weapon_knife")
        
fm_give_item(id"weapon_ak47")
        
        fm_set_rendering
(idkRenderFxGlowShell2522023kRenderNormal8)
        
        
static weskerhealth
        weskerhealth 
get_pcvar_num(cvar_weskerhp)
        
fm_set_user_health(idweskerhealth ammount_whealth(g_habilidad[id][4][1]))
    
        set_pev
(idpev_gravityget_pcvar_float(cvar_weskergravity) - ammount_wgravity(g_habilidad[id][4][3]))
    
    
        
// Turn the rest of players into a zombie
        
for (id 1id <= g_maxplayersid++)
        {
            
// Not alive
            
if (!is_user_alive(id))
            continue;
        
            
// Survivor or already a zombie
            
if (g_survivor[id] || g_zombie[id])
            continue;
        
            
// Turn into a zombie
            
zombieme(id001)
        }
    
        
// Play swarm sound
        
PlaySound(sound_wesker[random_num(0sizeof sound_wesker -1)]);
        
// Get player's name
        
get_user_name(forward_idnamesizeof name 1)
    
        
// Show wesker HUD notice
        
set_hudmessage(18513515HUD_EVENT_XHUD_EVENT_Y10.05.01.01.0, -1)
        
ShowSyncHudMsg(0g_MsgSync"!!%s es WESKER!!"name)
    
        
// Round start forward
        
ExecuteForward(g_fwRoundStartg_fwDummyResultMODE_WESKERforward_id);    
    
}
    else if ((
mode == MODE_NONE && (!preventconsecutive || g_lastmode != MODE_SWARM) && random_num(1get_pcvar_num(cvar_swarmchance)) == get_pcvar_num(cvar_swarm) && iPlayersnum >= get_pcvar_num(cvar_swarmminplayers)) || mode == MODE_SWARM)
    {        
        
// Swarm Mode
        
g_swarmround true
        g_lastmode 
MODE_SWARM
        
        
// Turn every T into a zombie
        
for (id 1id <= g_maxplayersid++)
        {
            
// Not alive
            
if (!is_user_alive(id))
                continue;
            
            
// Not a Terrorist
            
if (fm_get_user_team(id) != CS_TEAM_T)
                continue;
            
            
// Turn into a zombie
            
zombieme(id001)
        }
        
        
// Play swarm sound
        
PlaySound(sound_swarm[random_num(0sizeof sound_swarm -1)]);
        
        
// Show Swarm HUD notice
        
set_hudmessage(2025520HUD_EVENT_XHUD_EVENT_Y10.05.01.01.0, -1)
        
ShowSyncHudMsg(0g_MsgSync"%L"LANG_PLAYER"NOTICE_SWARM")
        
        
// Round start forward
        
ExecuteForward(g_fwRoundStartg_fwDummyResultMODE_SWARM0);
    }
    else if ((
mode == MODE_NONE && (!preventconsecutive || g_lastmode != MODE_MULTI) && random_num(1get_pcvar_num(cvar_multichance)) == get_pcvar_num(cvar_multi) && floatround(iPlayersnum*get_pcvar_float(cvar_multiratio), floatround_ceil) >= && floatround(iPlayersnum*get_pcvar_float(cvar_multiratio), floatround_ceil) < iPlayersnum && iPlayersnum >= get_pcvar_num(cvar_multiminplayers)) || mode == MODE_MULTI)
    {
        
// Multi Infection Mode
        
g_lastmode MODE_MULTI
        
        
// iMaxZombies is rounded up, in case there aren't enough players
        
iMaxZombies floatround(iPlayersnum*get_pcvar_float(cvar_multiratio), floatround_ceil)
        
iZombies 0
        
        
// Randomly turn iMaxZombies players into zombies
        
while (iZombies iMaxZombies)
        {
            
// Keep looping through all players
            
if (++id g_maxplayersid 1
            
            
// Dead or already a zombie
            
if (!is_user_alive(id) || g_zombie[id])
                continue;
            
            
// Random chance
            
if (random_num(01))
            {
                
// Turn into a zombie
                
zombieme(id001)
                
iZombies++
            }
        }
        
        
// Turn the remaining players into humans
        
for (id 1id <= g_maxplayersid++)
        {
            
// Only those of them who aren't zombies
            
if (!is_user_alive(id) || g_zombie[id])
                continue
            
            
// Remove previous tasks
            
remove_task(id+TASK_TEAM)
            
            
// Switch to CT
            
if (fm_get_user_team(id) != CS_TEAM_CT// need to change team?
            
{
                
fm_set_user_team(idCS_TEAM_CT)
                
fm_user_team_update(id)
            }
        }
        
        
// Play multi infection sound
        
PlaySound(sound_multi[random_num(0sizeof sound_multi -1)]);
        
        
// Show Multi Infection HUD notice
        
set_hudmessage(200500HUD_EVENT_XHUD_EVENT_Y10.05.01.01.0, -1)
        
ShowSyncHudMsg(0g_MsgSync"%L"LANG_PLAYER"NOTICE_MULTI")
        
        
// Round start forward
        
ExecuteForward(g_fwRoundStartg_fwDummyResultMODE_MULTI0);
    }
    else if ((
mode == MODE_NONE && (!preventconsecutive || g_lastmode != MODE_ANIQUILACION) && random_num(1get_pcvar_num(cvar_aniquilacionchance)) == get_pcvar_num(cvar_aniquilacion) && floatround((iPlayersnum-2)*get_pcvar_float(cvar_aniquilacionratio), floatround_ceil) >= && iPlayersnum >= get_pcvar_num(cvar_aniquilacionminplayers)) || mode == MODE_ANIQUILACION
    { 
        
g_aniquilacionround true 
        server_cmd
("zp_deathmatch 2"
    
        
id fnGetRandomAlive(random_num(1iPlayersnum)) 
        new 
name[33
        
get_user_name(idname32
    
        
set_hudmessage(25500HUD_EVENT_XHUD_EVENT_Y10.05.01.01.0, -1
        
ShowSyncHudMsg(0g_MsgSync"Modo Aniquilacion!^nInfectado: %s"name
        
zombieme(id001
    
        
// Remaining players should be humans (CTs) 
        
for (id 1id <= g_maxplayersid++) 
        { 
            
// Not alive 
            
if (!is_user_alive(id)) 
            continue; 
    
            
message_begin(MSG_ONE_UNRELIABLEg_msgScreenShake_id
            
write_short(UNIT_SECOND*100// amplitude 
            
write_short(UNIT_SECOND*5// duration 
            
write_short(UNIT_SECOND*120// frequency 
            
message_end() 
    
            
// First zombie/nemesis 
            
if (g_zombie[id]) 
            continue; 
            
            
// Remove previous tasks 
            
remove_task(id+TASK_TEAM
    
            
// Switch to CT 
            
if (fm_get_user_team(id) != CS_TEAM_CT// need to change team? 
            

                
fm_set_user_team(idCS_TEAM_CT
                
fm_user_team_update(id
            } 
        } 
    
        
PlaySound(sound_plague[random_num(0sizeof sound_plague -1)]); 
        
ExecuteForward(g_fwRoundStartg_fwDummyResultMODE_ANIQUILACION0); 
    }
    else if ((
mode == MODE_NONE && (!preventconsecutive || g_lastmode != MODE_PLAGUE) && random_num(1get_pcvar_num(cvar_plaguechance)) == get_pcvar_num(cvar_plague) && floatround((iPlayersnum-(get_pcvar_num(cvar_plaguenemnum)+get_pcvar_num(cvar_plaguesurvnum)))*get_pcvar_float(cvar_plagueratio), floatround_ceil) >= 1
    
&& iPlayersnum-(get_pcvar_num(cvar_plaguesurvnum)+get_pcvar_num(cvar_plaguenemnum)+floatround((iPlayersnum-(get_pcvar_num(cvar_plaguenemnum)+get_pcvar_num(cvar_plaguesurvnum)))*get_pcvar_float(cvar_plagueratio), floatround_ceil)) >= && iPlayersnum >= get_pcvar_num(cvar_plagueminplayers)) || mode == MODE_PLAGUE)
    {
        
// Plague Mode
        
g_plagueround true
        g_lastmode 
MODE_PLAGUE
        
        
// Turn specified amount of players into Survivors
        
static iSurvivorsiMaxSurvivors
        iMaxSurvivors 
get_pcvar_num(cvar_plaguesurvnum)
        
iSurvivors 0
        
        
while (iSurvivors iMaxSurvivors)
        {
            
// Choose random guy
            
id fnGetRandomAlive(random_num(1iPlayersnum))
            
            
// Already a survivor?
            
if (g_survivor[id])
                continue;
            
            
// If not, turn him into one
            
humanme(id1)
            
iSurvivors++
            
            
// Apply survivor health multiplier
            
fm_set_user_health(idfloatround(pev(idpev_health)*get_pcvar_float(cvar_plaguesurvhpmulti)))
        }
        
        
// Turn specified amount of players into Nemesis
        
static iNemesisiMaxNemesis
        iMaxNemesis 
get_pcvar_num(cvar_plaguenemnum)
        
iNemesis 0
        
        
while (iNemesis iMaxNemesis)
        {
            
// Choose random guy
            
id fnGetRandomAlive(random_num(1iPlayersnum))
            
            
// Already a survivor or nemesis?
            
if (g_survivor[id] || g_nemesis[id])
                continue;
            
            
// If not, turn him into one
            
zombieme(id010)
            
iNemesis++
            
            
// Apply nemesis health multiplier
            
fm_set_user_health(idfloatround(pev(idpev_health)*get_pcvar_float(cvar_plaguenemhpmulti)))
        }
        
        
// iMaxZombies is rounded up, in case there aren't enough players
        
iMaxZombies floatround((iPlayersnum-(get_pcvar_num(cvar_plaguenemnum)+get_pcvar_num(cvar_plaguesurvnum)))*get_pcvar_float(cvar_plagueratio), floatround_ceil)
        
iZombies 0
        
        
// Randomly turn iMaxZombies players into zombies
        
while (iZombies iMaxZombies)
        {
            
// Keep looping through all players
            
if (++id g_maxplayersid 1
            
            
// Dead or already a zombie or survivor
            
if (!is_user_alive(id) || g_zombie[id] || g_survivor[id])
                continue;
            
            
// Random chance
            
if (random_num(01))
            {
                
// Turn into a zombie
                
zombieme(id001)
                
iZombies++
            }
        }
        
        
// Turn the remaining players into humans
        
for (id 1id <= g_maxplayersid++)
        {
            
// Only those of them who arent zombies or survivor
            
if (!is_user_alive(id) || g_zombie[id] || g_survivor[id])
                continue;
            
            
// Remove previous tasks
            
remove_task(id+TASK_TEAM)
            
            
// Switch to CT
            
if (fm_get_user_team(id) != CS_TEAM_CT// need to change team?
            
{
                
fm_set_user_team(idCS_TEAM_CT)
                
fm_user_team_update(id)
            }
        }
        
        
// Play plague sound
        
PlaySound(sound_plague[random_num(0sizeof sound_plague -1)]);
        
        
// Show Plague HUD notice
        
set_hudmessage(050200HUD_EVENT_XHUD_EVENT_Y10.05.01.01.0, -1)
        
ShowSyncHudMsg(0g_MsgSync"%L"LANG_PLAYER"NOTICE_PLAGUE")
        
        
// Round start forward
        
ExecuteForward(g_fwRoundStartg_fwDummyResultMODE_PLAGUE0);
    }
    else
    {
        
// Single Infection Mode or Nemesis Mode
        
        // Choose player randomly?
        
if (mode == MODE_NONE)
            
id fnGetRandomAlive(random_num(1iPlayersnum))
        
        
// Remember id for calling our forward later
        
forward_id id
        
        
if ((mode == MODE_NONE && (!preventconsecutive || g_lastmode != MODE_NEMESIS) && random_num(1get_pcvar_num(cvar_nemchance)) == get_pcvar_num(cvar_nem) && iPlayersnum >= get_pcvar_num(cvar_nemminplayers)) || mode == MODE_NEMESIS)
        {
            
// Nemesis Mode
            
g_nemround true
            g_lastmode 
MODE_NEMESIS
            
            
// Turn player into nemesis
            
zombieme(id010)
        }
        else
        {
            
// Single Infection Mode
            
g_lastmode MODE_INFECTION
            
            
// Turn player into the first zombie
            
zombieme(id000)
        }
        
        
// Remaining players should be humans (CTs)
        
for (id 1id <= g_maxplayersid++)
        {
            
// Not alive
            
if (!is_user_alive(id))
                continue;
            
            
// First zombie/nemesis
            
if (g_zombie[id])
                continue;
            
            
// Remove previous tasks
            
remove_task(id+TASK_TEAM)
            
            
// Switch to CT
            
if (fm_get_user_team(id) != CS_TEAM_CT// need to change team?
            
{
                
fm_set_user_team(idCS_TEAM_CT)
                
fm_user_team_update(id)
            }
        }
        
        if (
g_nemround)
        {
            
// Play Nemesis sound
            
PlaySound(sound_nemesis[random_num(0sizeof sound_nemesis -1)]);
            
            
// Get player's name
            
get_user_name(forward_idnamesizeof name 1)
            
            
// Show Nemesis HUD notice
            
set_hudmessage(2552020HUD_EVENT_XHUD_EVENT_Y10.05.01.01.0, -1)
            
ShowSyncHudMsg(0g_MsgSync"%L"LANG_PLAYER"NOTICE_NEMESIS"name)
            
            
// Round start forward
            
ExecuteForward(g_fwRoundStartg_fwDummyResultMODE_NEMESISforward_id);
        }
        else
        {
            
// Get player's name
            
get_user_name(forward_idnamesizeof name 1)
            
            
// Show First Zombie HUD notice
            
set_hudmessage(25500HUD_EVENT_XHUD_EVENT_Y00.05.01.01.0, -1)
            
ShowSyncHudMsg(0g_MsgSync"%L",LANG_PLAYER"NOTICE_FIRST"name)
            
            
// Round start forward
            
ExecuteForward(g_fwRoundStartg_fwDummyResultMODE_INFECTIONforward_id);
        }
    }
    
    
// Last Zombie Check
    
set_task(0.1"fnCheckLastZombie")

Aporte(?
Discord: leo$#9073
Responder
#2
no pusiste una cvar en public plugin_init() del modo en funcion
Responder
#3
(29/03/2021, 07:07 PM)GoldenCosta escribió: no pusiste una cvar en public plugin_init() del modo en funcion

quieres decir que me falto registrar algun modo ?
Aporte(?
Discord: leo$#9073
Responder
#4
te falto registrar 1 cvar del modo... fijate una por una si esta en public plugin_init() con su comando
Responder
#5
(29/03/2021, 07:30 PM)GoldenCosta escribió: te falto registrar 1 cvar del modo... fijate una por una si esta en public plugin_init() con su comando

De que modo especificamente puede ser? o tengo que ver cada uno y averiguar cual me falto registrar
Aporte(?
Discord: leo$#9073
Responder
#6
(29/03/2021, 07:45 PM)aramayo123 escribió: De que modo especificamente puede ser? o tengo que ver cada uno y averiguar cual me falto registrar

que modo te falla??
Responder
#7
(29/03/2021, 08:05 PM)GoldenCosta escribió: que modo te falla??

No se ese es el problema...
Aporte(?
Discord: leo$#9073
Responder
#8
Chequea las últimas cvar nuevas que creaste si se encuentra todas en él init...
Responder
#9
(29/03/2021, 08:53 PM)aramayo123 escribió: No se ese es el problema...

te digo tu problema, cuando el servidor lanza un modo solo queda bugeado y te manda el chekear la public make_a_zombie que hay un error de cvar no registrada osea que uno de los modos:

Código PHP:
if ((mode == MODE_NONE && (!preventconsecutive || g_lastmode != MODE_SURVIVOR) && random_num(1get_pcvar_num(cvar_survchance)) == get_pcvar_num(cvar_surv) && iPlayersnum >= get_pcvar_num(cvar_survminplayers)) || mode == MODE_SURVIVOR

hay uno que no esta registrado VERIFICA cada uno de lo IF de cada modo y sus CVAR por que esta como comando en blanco en plugin_init()


ya te di la solucion... por que estas poniendo modos apresurado y se te paso por alto algo
Responder


Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)