Give_Levels_To_world()
set category = "Admin"
if(GMLockCheck())
usr<<"<font face ='Palatino Linotype' color=red>Your Admin Powers Are Locked."
return
switch(alert("Give levels to every player logged in?","","Yes","No"))
if("Yes")
var/amount=input("How many")as num
for(var/mob/PC/M in world)
if(!M.client)continue
if(!M.loggedin)continue
M << "[usr] gave you [amount] levels. Be patient while they add to your stats."
M.levelgains = 0
while(amount>0)
M.exp = M.tnl
M.Level_Up()
amount -= 1
sleep(1)
world<<"<b><font face ='Palatino Linotype' color=red>[usr] has given everyone Levels!</b>"
else
return
Problem description:I want so that when i click on this verb.. everyone in the server should should get levels but it doesnt work..
You obviously don't know what continue does. It doesn't continue the code, it skips the code and goes straight to the next iteration.
To the OP, try being more general with your for() loop.