10-23-2013, 11:19 PM
Does anyone see what I'm doing wrong here? It keeps crashing
cRoot:Get():ForEachWorld( function(World) World:QueueTask( function(a_World) a_World:DoWithPlayer(Request.PostParams["PlayerName"], function(Player) if Player:GetName() == Request.PostParams["PlayerName"] then Player:GetClientHandle():Kick("You were kicked from the game!") table.insert(ExcludePlayer, Request.PostParams["PlayerName"]) end end ) end ) end )Request.PostParams["PlayerName"] isn't nil so it can't be that.