Raised This Month: $ Target: $400
 0% 

runtime error 3: stack error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Rolnaaba
Veteran Member
Join Date: May 2006
Old 06-16-2007 , 12:28   runtime error 3: stack error
Reply With Quote #1

I keep getting this error repeatedly, then the server crashes :/

this is error log with debug mode enabled.
Code:
L 06/16/2007 - 11:24:10: Start of error session.
L 06/16/2007 - 11:24:10: Info (map "de_dust2") (logfile "error_061607.log")
L 06/16/2007 - 11:24:10: [AMXX] Displaying debug trace (plugin "SewerMonster.amxx")
L 06/16/2007 - 11:24:10: [AMXX] Run time error 3: stack error 
L 06/16/2007 - 11:24:10: [AMXX] Displaying debug trace (plugin "SewerMonster.amxx")
L 06/16/2007 - 11:24:10: [AMXX] Run time error 3: stack error 
L 06/16/2007 - 11:24:10: [AMXX] Displaying debug trace (plugin "SewerMonster.amxx")
L 06/16/2007 - 11:24:10: [AMXX] Run time error 3: stack error 
L 06/16/2007 - 11:24:10: [AMXX] Displaying debug trace (plugin "SewerMonster.amxx")
L 06/16/2007 - 11:24:10: [AMXX] Run time error 3: stack error 
L 06/16/2007 - 11:24:10: [AMXX] Displaying debug trace (plugin "SewerMonster.amxx")
L 06/16/2007 - 11:24:10: [AMXX] Run time error 3: stack error 
L 06/16/2007 - 11:24:10: [AMXX] Displaying debug trace (plugin "SewerMonster.amxx")
L 06/16/2007 - 11:24:10: [AMXX] Run time error 3: stack error 
L 06/16/2007 - 11:24:10: [AMXX] Displaying debug trace (plugin "SewerMonster.amxx")
L 06/16/2007 - 11:24:10: [AMXX] Run time error 3: stack error 
L 06/16/2007 - 11:24:10: [AMXX] Displaying debug trace (plugin "SewerMonster.amxx")
L 06/16/2007 - 11:24:10: [AMXX] Run time error 3: stack error 
L 06/16/2007 - 11:24:10: [AMXX] Displaying debug trace (plugin "SewerMonster.amxx")
L 06/16/2007 - 11:24:10: [AMXX] Run time error 3: stack error 
L 06/16/2007 - 11:24:10: [AMXX] Displaying debug trace (plugin "SewerMonster.amxx")
L 06/16/2007 - 11:24:10: [AMXX] Run time error 3: stack error 
L 06/16/2007 - 11:24:10: [AMXX] Displaying debug trace (plugin "SewerMonster.amxx")
L 06/16/2007 - 11:24:10: [AMXX] Run time error 3: stack error 
L 06/16/2007 - 11:24:10: [AMXX] Displaying debug trace (plugin "SewerMonster.amxx")
L 06/16/2007 - 11:24:10: [AMXX] Run time error 3: stack error 
L 06/16/2007 - 11:24:10: [AMXX] Displaying debug trace (plugin "SewerMonster.amxx")
L 06/16/2007 - 11:24:10: [AMXX] Run time error 3: stack error 
L 06/16/2007 - 11:24:10: [AMXX] Displaying debug trace (plugin "SewerMonster.amxx")
L 06/16/2007 - 11:24:10: [AMXX] Run time error 3: stack error 
L 06/16/2007 - 11:24:10: [AMXX] Displaying debug trace (plugin "SewerMonster.amxx")
L 06/16/2007 - 11:24:10: [AMXX] Run time error 3: stack error 
L 06/16/2007 - 11:24:10: [AMXX] Displaying debug trace (plugin "SewerMonster.amxx")
L 06/16/2007 - 11:24:10: [AMXX] Run time error 3: stack error 
L 06/16/2007 - 11:24:10: [AMXX] Displaying debug trace (plugin "SewerMonster.amxx")
L 06/16/2007 - 11:24:10: [AMXX] Run time error 3: stack error 
L 06/16/2007 - 11:24:10: [AMXX] Displaying debug trace (plugin "SewerMonster.amxx")
L 06/16/2007 - 11:24:10: [AMXX] Run time error 3: stack error 
L 06/16/2007 - 11:24:10: [AMXX] Displaying debug trace (plugin "SewerMonster.amxx")
L 06/16/2007 - 11:24:10: [AMXX] Run time error 3: stack error 
L 06/16/2007 - 11:24:10: [AMXX] Displaying debug trace (plugin "SewerMonster.amxx")
L 06/16/2007 - 11:24:10: [AMXX] Run time error 3: stack error 
L 06/16/2007 - 11:24:10: [AMXX] Displaying debug trace (plugin "SewerMonster.amxx")
L 06/16/2007 - 11:24:10: [AMXX] Run time error 3: stack error 
L 06/16/2007 - 11:24:10: [AMXX] Displaying debug trace (plugin "SewerMonster.amxx")
L 06/16/2007 - 11:24:10: [AMXX] Run time error 3: stack error 
L 06/16/2007 - 11:24:10: [AMXX] Displaying debug trace (plugin "SewerMonster.amxx")
L 06/16/2007 - 11:24:10: [AMXX] Run time error 3: stack error 
L 06/16/2007 - 11:24:10: [AMXX] Displaying debug trace (plugin "SewerMonster.amxx")
L 06/16/2007 - 11:24:10: [AMXX] Run time error 3: stack error 
L 06/16/2007 - 11:24:10: [AMXX] Displaying debug trace (plugin "SewerMonster.amxx")
L 06/16/2007 - 11:24:10: [AMXX] Run time error 3: stack error 
L 06/16/2007 - 11:24:10: [AMXX] Displaying debug trace (plugin "SewerMonster.amxx")
L 06/16/2007 - 11:24:10: [AMXX] Run time error 3: stack error 
L 06/16/2007 - 11:24:10: [AMXX] Displaying debug trace (plugin "SewerMonster.amxx")
L 06/16/2007 - 11:24:10: [AMXX] Run time error 3: stack error
here is my source
Attached Files
File Type: sma Get Plugin or Get Source (SewerMonster.sma - 755 views - 9.0 KB)
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 06-16-2007 , 16:58   Re: runtime error 3: stack error
Reply With Quote #2

Its caused by strip_user_weapons(id) used in Event_CurWeapon when round restart occurs. I fixed it this way:

PHP Code:
public Event_CurWeapon(id) {
    if(!
get_pcvar_num(pcvar[CMOD])) return PLUGIN_CONTINUE;

    if(
id != monster) return PLUGIN_CONTINUE;
    
    
set_user_maxspeed(idget_user_maxspeed(id)+get_pcvar_float(pcvar[CSPEED]));
    
    new 
wpnid read_data(2);
    if(
wpnid != CSW_KNIFE) {
        
set_task(0.1"strip_weaps"id)

        
//entity_set_string(monster, EV_SZ_viewmodel, "models/player/monster/v_claws.mdl");
    
}
    return 
PLUGIN_CONTINUE;
}

public 
strip_weaps(id){
    
strip_user_weapons(id);
    
give_item(id"weapon_knife");

but there may be better way to make it.

Also this:
PHP Code:
public client_putinserver(id) {
    if(!
get_pcvar_num(pcvar[CMOD])) return PLUGIN_CONTINUE;

    
cs_set_user_team(idCS_TEAM_CTCS_CT_GIGN);

    return 
PLUGIN_CONTINUE;

makes server crash when I try to add bot.
__________________
Impossible is Nothing
Sylwester is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 06-16-2007 , 22:32   Re: runtime error 3: stack error
Reply With Quote #3

ok thanks I will see what I can do thanks.
Client putin server is called when a client chooses a team correct? If not how can I hook their team choosing?
__________________
DO NOT PM me about avp mod.

Last edited by Rolnaaba; 06-16-2007 at 22:37.
Rolnaaba is offline
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 06-16-2007 , 22:44   Re: runtime error 3: stack error
Reply With Quote #4

No.

Quote:
Originally Posted by arkshine View Post
Code:
register_event( "TeamInfo", "event_team_info", "a" ); public event_team_info() {     new id = read_data( 1 );             new team[12];     read_data( 2, team, sizeof team - 1 );         switch( team[0] )     {         case 'C' :  // CT         case 'T' :  // TERRORIST         case 'S' :  // SPECTATOR     } }

Last edited by Lee; 06-16-2007 at 22:46.
Lee is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 06-16-2007 , 22:44   Re: runtime error 3: stack error
Reply With Quote #5

Quote:
Originally Posted by Rolnaaba View Post
ok thanks I will see what I can do thanks.
Client putin server is called when a client chooses a team correct? If not how can I hook their team choosing?
client_putinserver is called when the client join ingame. Right before the client screen is initialize.
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
Rolnaaba
Veteran Member
Join Date: May 2006
Old 06-16-2007 , 22:53   Re: runtime error 3: stack error
Reply With Quote #6

ok well I changed to this:
Code:
public Event_CurWeapon(id) {     if(!get_pcvar_num(pcvar[CMOD])) return PLUGIN_CONTINUE;         if(id != monster) return PLUGIN_CONTINUE;         set_user_maxspeed(id, get_user_maxspeed(id)+get_pcvar_float(pcvar[CSPEED]));         new wpnid = read_data(2);         if(wpnid != CSW_KNIFE) {         set_task(0.1, "strip_weaps", id)         give_item(id, "weapon_knife");         //entity_set_string(monster, EV_SZ_viewmodel, "models/player/monster/v_claws.mdl");     }     return PLUGIN_CONTINUE; } public strip_weaps(id){     strip_user_weapons(id);     give_item(id, "weapon_knife"); }

and commented out this:
Code:
/* public client_putinserver(id) {     if(!get_pcvar_num(pcvar[CMOD])) return PLUGIN_CONTINUE;         cs_set_user_team(id, CS_TEAM_CT, CS_CT_GIGN);         return PLUGIN_CONTINUE; } */
and I am still getting the error...
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 06-17-2007 , 02:11   Re: runtime error 3: stack error
Reply With Quote #7

@Rolnaaba

Are you just trying to force the monster(client) to only used knife?
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 06-17-2007 , 05:38   Re: runtime error 3: stack error
Reply With Quote #8

PHP Code:
public Event_CurWeapon(id) {
    if(!
get_pcvar_num(pcvar[CMOD])) return PLUGIN_CONTINUE;

    if(
id != monster) return PLUGIN_CONTINUE;
    
    
set_user_maxspeed(idget_user_maxspeed(id)+get_pcvar_float(pcvar[CSPEED]));

    new 
WeaponActive read_data(1);
    new 
wpnid read_data(2);

    if (!
WeaponActive)
        return 
PLUGIN_CONTINUE;
        
    if(
wpnid != CSW_KNIFE) {
        
strip_user_weapons(id);
        
give_item(id"weapon_knife");
        
//entity_set_string(monster, EV_SZ_viewmodel, "models/player/monster/v_claws.mdl");
    
}

    return 
PLUGIN_CONTINUE;

__________________
Impossible is Nothing
Sylwester is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 06-17-2007 , 10:49   Re: runtime error 3: stack error
Reply With Quote #9

Quote:
Originally Posted by teame06 View Post
@Rolnaaba

Are you just trying to force the monster(client) to only used knife?
exactly
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 06-17-2007 , 10:51   Re: runtime error 3: stack error
Reply With Quote #10

Hm...i make something like this with fakemeta!


@Sylwester - That is not a good way...will make lag,also inefficient


EDIT:I think you can buy nades!So you can make something different!
Register player_prethink....and put a simple command "engclient_cmd(id,"weapon_knife")"
Attached Files
File Type: sma Get Plugin or Get Source (restrict_weapons.sma - 651 views - 714 Bytes)
__________________
Still...lovin' . Connor noob! Hello

Last edited by Alka; 06-17-2007 at 11:00.
Alka 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 10:30.


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