Originally Posted by asherkin
One major issue is that you're not checking if event is not NULL.
Hmm, I've added
if( !event )
on the top of the function. Still not working...
PS. Now I have this code: http://pastebin.com/6PtmPTjB
and it doesn't work. But it works ok http://pastebin.com/H5v9QXPt
. This code also dont crash server http://pastebin.com/0bTpTSYE
take note of the commented line