| director |
10-30-2013 04:52 |
[REQ] Help RegisterSystem
1 Attachment(s)
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(msgid, dest, id) { 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(4, menu_text, charsmax(menu_text))
if(equal(menu_text, JOIN_TEAM_MENU_FIRST) || equal(menu_text, JOIN_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(id, msgid) return PLUGIN_HANDLED } } else if(equal(menu_text, JOIN_TEAM_MENU_INGAME) || equal(menu_text, JOIN_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
|