ID:264048
 
Code:
          AFK Check()
world <<"AFK Check Say I in the next 60 seconds in OOC"
set category = "Staff"
world << "<font color=red><font size=5>AFK Check Say I in OOC in the next minute!"
sleep(600)
world <<"AFK Check Over"
usr<<" Please Boot from the server who ever did not say I in OOC in the past minute."


Problem description:OMG what is wrong with it all my problems are coming from it and is says Inconsistent indentation. Help please

Take a good look at your code and you'll find out what's wrong with it. Keep "Inconsistent Indentation" in mind.
Do you know what indentation is, Mr. Chex?
In response to Armiris
I fixed that just now but it is says all this weird stuff is
In response to Mr. Chex
What are your errors now?
In response to Armiris
never mind I fixed it but i dont i have to boot people manual because last time i did it it booted my npc's
In response to Mr. Chex
No you don't. Use a for() loop to loop through people who haven't said anything (Which you can use a client variable for) and boot them if they have a client.
In response to Darkmag1c1an11
Ok can you just make the code for me and put category host because your deeply confusing me
In response to Mr. Chex
client/GM
verb
AFK_Check(N as num)
set category = "Host"
checktime = N
for(var/mob/M in world)
world << "<font color=red><font size=5>AFK Check - Say something in OOC in [checktime] seconds!"
M.afk = 1
sleep(checktime)*10
if(!M.npc)
if(M.afk)
del(M)
world <<"AFK Check Over!"


OK, there is the code.

Now you have to attach this code into your game so it works.
In response to Howey
i have 6 errors with that
In response to Mr. Chex
Mr. Chex wrote:
i have 6 errors with that

Yes, you will get errors, it's your job to fix those errors.

Most of the errors will probably be undefined var.
In response to Howey
HOW DO I FIX IT
In response to Mr. Chex
Mr. Chex wrote:
HOW DO I FIX IT

If we tell you that and just give you a fully working code, you wont learn anything. Figure it out and stop being lazy.
In response to Howey
TELL ME WERE I CAN LEARN A EXACT PAGE
In response to Mr. Chex
http://www.byond.com/docs/guide/

Chapter 5 is variables if I am not mistaken...
In response to Howey
OMG I HAVE EVEN MORE MISSTAKES NOW >> Just tell me
In response to Mr. Chex
No, if you don't do it yourself, you wont learn, and if you don't learn, you will be coming here all the time thinking that you will just get the code given to you. The less you get stuck with programming, the better.
In response to Mr. Chex
If people just tell you, then every error you get you'll come to the forums and ask for help. If you can't figure out what each line in the code he gave you does, read some tutorials. If you can, then you should be able to fix the problem.