Your problem was with mainly in the sub functions. The var $p2 that you used in the sub functions only has a life in the event chat. You have to send it as a augment then use the $p0 var in functions. i highlighted the updates. Other than that I didn't see any errors. Then again it is close to 4am a...