Raised This Month: $ Target: $400
 0% 

[HELP]Floatround error - JBextream


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hembi
Member
Join Date: Mar 2013
Location: Hungary
Old 10-29-2014 , 09:23   [HELP]Floatround error - JBextream
Reply With Quote #1

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 is offline
Hembi
Member
Join Date: Mar 2013
Location: Hungary
Old 11-13-2014 , 14:51   Re: [HELP]Floatround error - JBextream
Reply With Quote #2

UP!
Hembi is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 11-13-2014 , 19:34   Re: [HELP]Floatround error - JBextream
Reply With Quote #3

you probably don't want to do what you are doing in a register_message forward, post full code
jimaway is offline
Hembi
Member
Join Date: Mar 2013
Location: Hungary
Old 11-15-2014 , 04:23   Re: [HELP]Floatround error - JBextream
Reply With Quote #4

Here is the .sma.

My server use AMXModX 1.8.3
Attached Files
File Type: sma Get Plugin or Get Source (jbextreme.sma - 618 views - 46.9 KB)

Last edited by Hembi; 11-15-2014 at 04:36.
Hembi is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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