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 i = 1; MaxClients; i++)
{
CPrintToChatAll("{lime}[Warden]{blue}Har startet smoke war");
smoke = 1;
CreateTimer(200.00, SmokeTimer);
CreateTimer(01.00, SendSmoke, TIMER_REPEAT);
}
Day = 6;
}
public Action:SendSmoke(Handle:timer)
{
if(smoke == 1)
{
for(new i = 1; MaxClients; i++)
{
GivePlayerItem(i, "weapon_flashgrenade");
SetEntProp(i, Prop_Send, "m_iHealth", 1);
}
}
else if(smoke == 0)
{
KillTimer(Handle:timer);
}
}
public Action:SmokeTimer(Handle:timer)
{
smoke = 0;
}
Fixed
__________________