anchor.diff:  			if("No")
   				percentagecalc = 0
   			else
  -				return
  +				return pollid
   		var/minval = 0
   		var/maxval = 0
   		var/descmin = ""
  
positive.code: /client/proc/create_poll()
  	set name = "Create Server Poll"
  	set category = "Server"
  	if(!check_rights(R_PERMISSIONS))	
  		return
  	if(!dbcon.IsConnected())
  		src << "<span class='danger'>Failed to establish database connection.</span>"
  		return
  	var/polltype = input("Choose poll type.","Poll Type") in list("Single Option","Text Reply","Rating","Multiple Choice")
  	var/choice_amount = 0
  
negative.code: 		var/err = query_polladd_question.ErrorMsg()
  		log_game("SQL ERROR adding new poll question to table. Error : \[[err]\]\n")
  		return
  	if(polltype == "TEXT")
  		log_admin("[key_name(usr)] has created a new server poll. Poll type: [polltype] - Admin Only: [adminonly ? "Yes" : "No"] - Question: [question]")
  		message_admins("[key_name_admin(usr)] has created a new server poll. Poll type: [polltype] - Admin Only: [adminonly ? "Yes" : "No"]<br>Question: [question]")
  		return
  	var/pollid = 0
  	var/DBQuery/query_get_id = dbcon.NewQuery("SELECT id FROM [format_table_name("poll_question")] WHERE question = '[question]' AND starttime = '[starttime]' AND endtime = '[endtime]' AND createdby_ckey = '[sql_ckey]' AND createdby_ip = '[address]'")
  	if(!query_get_id.Execute())
  