Raised This Month: $ Target: $400
 0% 

[REQ] Help RegisterSystem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
director
Junior Member
Join Date: Sep 2012
Old 10-30-2013 , 04:52   [REQ] Help RegisterSystem
Reply With Quote #1

hello all i have a problem when someone enter on server with more than 32 characters on his name the server crash and gives error
i use file not mysql and when he register the server is crashed
this is the name "^_^ Shot 3D And You Death HD ^_^" has registered
PHP Code:
public TextMenu(msgiddestid)
{
    if(!
get_pcvar_num(g_on) || !is_user_connected(id))
        return 
PLUGIN_CONTINUE

    
if(!data_ready)
        return 
PLUGIN_HANDLED

    
new menu_text[64];

    
get_msg_arg_string(4menu_textcharsmax(menu_text))

    if(
equal(menu_textJOIN_TEAM_MENU_FIRST) || equal(menu_textJOIN_TEAM_MENU_FIRST_SPEC))
    {
        if((!
is_registered[id] && get_pcvar_float(g_regtime)) || (is_registered[id] && !is_logged[id]))
        {
            
MainMenu(id)
            return 
PLUGIN_HANDLED
        
}
        else if((
get_pcvar_num(g_ajc_team) && cs_get_user_team(id) == CS_TEAM_UNASSIGNED) && !task_exists(TASK_AJC) && (!get_pcvar_num(g_ajc_admin) || !(get_user_flags(id) & AJC_ADMIN_FLAG)))
        {
            
SetAutoJoinTask(idmsgid)
            return 
PLUGIN_HANDLED
        
}        
    }
    else if(
equal(menu_textJOIN_TEAM_MENU_INGAME) || equal(menu_textJOIN_TEAM_MENU_INGAME_SPEC))
    {
        if((!
is_registered[id] && get_pcvar_float(g_regtime)) || (is_registered[id] && !is_logged[id]))
        {
            
MainMenu(id)
            return 
PLUGIN_HANDLED
        
}
        else if(
get_pcvar_num(g_ajc_change) && (!get_pcvar_num(g_ajc_admin) || !(get_user_flags(id) & AJC_ADMIN_FLAG)))
        {
            return 
PLUGIN_HANDLED
        
}    
    }
    return 
PLUGIN_CONTINUE

this is the line (1853) new menu_text[64];
Code:
L 10/30/2013 - 10:43:21: [AMXX] Displaying debug trace (plugin "registersystem.amxx", version "8.0")
L 10/30/2013 - 10:43:21: [AMXX] Run time error 3: stack error 
L 10/30/2013 - 10:43:21: [AMXX]    [0] registersystem.sma::TextMenu (line 1853)
Code:
FATAL ERROR (shutting down): MESSAGE_END called, but message buffer from .dll had overflowed
Attached Files
File Type: sma Get Plugin or Get Source (registersystem.sma - 556 views - 63.8 KB)

Last edited by director; 10-30-2013 at 05:36.
director is offline
Reply


Thread Tools
Display Modes

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 23:22.


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