AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP]Floatround error - JBextream (https://forums.alliedmods.net/showthread.php?t=250714)

Hembi 10-29-2014 09:23

[HELP]Floatround error - JBextream
 
Hy!
I got an error in the jailbreak mod:
Code:

public msg_showmenu(msgid, dest, id)
{
    static msgarg1, roundloop
    static CsTeams:team
    msgarg1 = get_msg_arg_int(1)

    if(msgarg1 != 531 && msgarg1 != 563)
        return PLUGIN_CONTINUE

    roundloop = floatround(get_pcvar_float(gp_RetryTime) / 2)
    team = cs_get_user_team(id)

    if(is_user_connected(id))
    {
        if(team == CS_TEAM_T)
        {
            if(!is_user_admin(id) && (is_user_alive(id) || (g_RoundStarted >= roundloop) || !get_pcvar_num(gp_TeamChange)))
            {
                client_print(id, print_center, "%L", LANG_SERVER, "JBE_TEAM_CANTCHANGE")
                return PLUGIN_HANDLED
            }
            else
            {
                show_menu(id, 51, TEAM_MENU, -1)
                return PLUGIN_HANDLED
            }
        }
        else
        {
            show_menu(id, 51, TEAM_MENU, -1)
            return PLUGIN_HANDLED
        }
    }
    return PLUGIN_CONTINUE
}

Error:
Code:

L 10/29/2014 - 12:59:47: [AMXX]    [0] jbextreme.sma::msg_showmenu (line 492)
SZ_GetSpace: overflow on MessageBegin/End
SZ_GetSpace: overflow on MessageBegin/End
SZ_GetSpace: overflow on MessageBegin/End
SZ_GetSpace: overflow on MessageBegin/End
SZ_GetSpace: overflow on MessageBegin/End
SZ_GetSpace: overflow on MessageBegin/End
SZ_GetSpace: overflow on MessageBegin/End
SZ_GetSpace: overflow on MessageBegin/End
SZ_GetSpace: overflow on MessageBegin/End
SZ_GetSpace: overflow on MessageBegin/End
FATAL ERROR (shutting down): MESSAGE_END called, but message buffer from .dll had overflowed

Line 492:
Code:

roundloop = floatround(get_pcvar_float(gp_RetryTime) / 2)
What is the fail in this code? floatround value is not correct or what?
Pls Help me to fix it :)

Hembi 11-13-2014 14:51

Re: [HELP]Floatround error - JBextream
 
UP!

jimaway 11-13-2014 19:34

Re: [HELP]Floatround error - JBextream
 
you probably don't want to do what you are doing in a register_message forward, post full code

Hembi 11-15-2014 04:23

Re: [HELP]Floatround error - JBextream
 
1 Attachment(s)
Here is the .sma. :)

My server use AMXModX 1.8.3


All times are GMT -4. The time now is 17:30.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.