Raised This Month: $ Target: $400
 0% 

[fixed] - need help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PriceLess
Senior Member
Join Date: Sep 2012
Location: Jungle
Old 03-01-2013 , 22:37   [fixed] - need help
Reply With Quote #1

Hi there. for the first time I've seen my own plugin making an error that said :
Memory leak, please contact the author of the plugin to correct the error, unloaded the plugin and server crashed. My code is close too 2k lines, so it would be disturbing to copy paste it all. but ill give an sample :

PHP Code:
SmokeWar(client)
{
    
CPrintToChat(client"{lime}[Warden]{blue} Smoke war har startet");
    for(new 
1MaxClientsi++)
    {
        
CPrintToChatAll("{lime}[Warden]{blue}Har startet smoke war");
        
smoke 1;
        
CreateTimer(200.00SmokeTimer);
        
CreateTimer(01.00SendSmokeTIMER_REPEAT);
    }
    
Day 6;
}

public 
Action:SendSmoke(Handle:timer)
{
    if(
smoke == 1)
    {
        for(new 
1MaxClientsi++)
        {
            
GivePlayerItem(i"weapon_flashgrenade");
            
SetEntProp(iProp_Send"m_iHealth"1);
        }
    }
    else if(
smoke == 0)
    {
        
KillTimer(Handle:timer);
    }
}

public 
Action:SmokeTimer(Handle:timer)
{
    
smoke 0;

Fixed
__________________
sincerely PriceLess

Last edited by PriceLess; 03-01-2013 at 23:17. Reason: Fixed
PriceLess 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 05:52.


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