Raised This Month: $ Target: $400
 0% 

Stack Error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 04-24-2011 , 11:45   Stack Error
Reply With Quote #1

Code:
L 04/24/2011 - 11:35:35: [AMXX] Displaying debug trace (plugin "lastrequest.amxx")
L 04/24/2011 - 11:35:35: [AMXX] Run time error 3: stack error 
L 04/24/2011 - 11:35:35: [AMXX] Displaying debug trace (plugin "lastrequest.amxx")
L 04/24/2011 - 11:35:35: [AMXX] Run time error 3: stack error 
L 04/24/2011 - 11:35:35: [AMXX]    [0] lastrequest.sma::Event_DeathMsg (line 210)
L 04/24/2011 - 11:35:35: [AMXX] Displaying debug trace (plugin "lastrequest.amxx")
L 04/24/2011 - 11:35:35: [AMXX] Run time error 3: stack error 
L 04/24/2011 - 11:35:35: [AMXX]    [0] lastrequest.sma::Event_DeathMsg (line 210)
L 04/24/2011 - 11:35:35: [AMXX] Displaying debug trace (plugin "lastrequest.amxx")
L 04/24/2011 - 11:35:35: [AMXX] Run time error 3: stack error 
L 04/24/2011 - 11:35:35: [AMXX]    [0] lastrequest.sma::Event_DeathMsg (line 210)
L 04/24/2011 - 11:35:35: [AMXX] Displaying debug trace (plugin "lastrequest.amxx")
L 04/24/2011 - 11:35:35: [AMXX] Run time error 3: stack error 
L 04/24/2011 - 11:35:35: [AMXX]    [0] colorchat.inc::FindPlayer (line 118)
L 04/24/2011 - 11:35:35: [AMXX]    [1] colorchat.inc::ColorChat (line 59)
L 04/24/2011 - 11:35:35: [AMXX]    [2] lastrequest.sma::Event_DeathMsg (line 214)
L 04/24/2011 - 11:35:35: [AMXX] Displaying debug trace (plugin "lastrequest.amxx")
L 04/24/2011 - 11:35:35: [AMXX] Run time error 3: stack error 
L 04/24/2011 - 11:35:35: [AMXX]    [0] lastrequest.sma::CheckLastRequest (line 251)
L 04/24/2011 - 11:35:35: [AMXX]    [1] lastrequest.sma::Event_DeathMsg (line 224)
L 04/24/2011 - 11:35:35: [AMXX] Displaying debug trace (plugin "lastrequest.amxx")
L 04/24/2011 - 11:35:35: [AMXX] Run time error 3: stack error 
L 04/24/2011 - 11:35:35: [AMXX]    [0] lastrequest.sma::CheckLastRequest (line 262)
L 04/24/2011 - 11:35:35: [AMXX]    [1] lastrequest.sma::Event_DeathMsg (line 224)
PHP Code:
public Event_DeathMsg()
{
    new 
iKiller read_data);
    new 
iVictim read_data);
    
    if( !
is_user_aliveiKiller ) || !is_user_connectediVictim ) )
        return 
PLUGIN_HANDLED;
    
    if( !
is_user_connectedg_iPrisoner ) || !is_user_connectedg_iGuard ) )
        return 
PLUGIN_HANDLED;
    
    if( 
g_bLREnabled )
        return 
PLUGIN_HANDLED;
        
    
    if( 
g_iType == ONEVSONE )
    {
        if( ( 
iVictim == g_iGuard || iVictim == g_iPrisoner ) )
        {
            new 
iReturn;
            
ExecuteForwardg_fwdGameStoppediReturng_iLastRequestChoseniKilleriVictim );
            
            new 
szName[32]; // Line 210
            
get_user_nameg_iPrisonerszName31 );
            
            if( 
iKiller == g_iPrisoner )
                
ColorChat0GREEN"[Jailbreak] ^03%s ^01won the ^03Last Request^01."szName ); // Line 214
            
            
else
                
ColorChat0GREEN"[Jailbreak] ^03%s ^01lost the ^03Last Request^01."szName );
            
            
g_iLastRequestChosen = -1;
            
g_iGuard 0;
            
g_iPrisoner 0;
            
g_iType 0;
            
            
CheckLastRequest(); // Line 224
        
}
    }
    
    return 
PLUGIN_HANDLED;
}

public 
CheckLastRequest()
{
    new 
iPlayers[32], iNum// Line 251
    
get_playersiPlayersiNum"a" );
    
    new 
iCounterTerroristsiTerrorists;
    
    new 
iPlayer;
    
    for( new 
0iNumi++ )
    {
        
iPlayer iPlayers[i];
        
        if( !
is_user_aliveiPlayer ) ) //Line 262
            
continue;
            
        switch( 
cs_get_user_teamiPlayer ) )
        {
            case 
CS_TEAM_CT:
            {
                
iCounterTerrorists++;
            }
            
            case 
CS_TEAM_T:
            {
                
iTerrorists++;
            }
        }
    }
    
    if( 
iTerrorists == && iCounterTerrorists )
    {
        
ColorChat0GREEN"[Jailbreak] ^03Last Request ^01is now ^03enabled^01." );
        
g_bLREnabled true;
    }

Get this error every time somebody dies, and the server crashes.

Any Ideas?
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
 



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 20:00.


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