Are you posting the full code?
You have a triggerserver in your code.
PHP Code:
triggerserver("gui", name, "KickPlayer", temp.pl);
Now, either you haven't posted that bit, or that just appeared from nowhere. Also, wouldn't it be easier to use a triggeraction instead? That's what I would do.