ID:991738
 
Code:
        Vote_Reboot()
if(rebootcd)
src << "<font color=olive>Reboot vote can't be spammed so frequently."
return
rebootcd=1
spawn(600) rebootcd=0
for(var/mob/them in world)
them.rebootbox=input("Do you want the server to reboot?",them) in list("Yes","No")
if(them.rebootbox=="Yes") rebootyes+=1
else if(them.rebootbox=="No") rebootno+=1
spawn(100)
if(rebootyes>rebootno)
world << output("<FONT SIZE=4 COLOR=SILVER>More people voted yes than no. The world will now reboot.","output1")
spawn(100) world.Reboot()
else world << output("<FONT SIZE=2 COLOR=SILVER>Not enough people voted yes. The round will not reboot.","output1")


Instead of the vote being sent to each player, it sends a vote to the user, 1 for each player. What am I doing wrong with the for() proc?
input(Usr=usr,Message,Title,Default) as Type in List

You're setting the usr at the end of the args in the input(), you need to set it first.

var/i=input(mob,"text","title","default choice")
Alright thanks NNAAAAHH it works, appreciate it.
Also, in the code snippit provided, you ask all mobs in the server, you could use var/client/them instead, then you wait for a response from each person inside the for() loop, you could use spawn() at the start of the loop, then the delay on the voting will give active players the vote, instead of having one person afk for a hour.