ID:140924
 
Code:
world/New()
..()
spawn()
begin1()
proc/begin1()
for()
if(going1)
for(var/turf/top1/T in world)
if(prob(30)) new /obj/block1(T)
sleep(5)
else
sleep(5)
..()


Problem description:
runtime error: Cannot execute null.begin1().
proc name: begin1 (/proc/begin1)
usr: null
src: null
call stack:
begin1()
: New()

Thats the runtime error, I'm pretty sure this means that it cannot execute null begin1 because begin1 is set up as proc/begin1 thus it would be null/proc/begin1 though I'm not sure of a way around it. Any help will be greatly appreciated.

A proc defined at no indentation and without a source type is normally automatically interpreted as a world proc, so I can't see what causes src to be null here...
In response to Nielz (#1)
Try...

world/New()
..()
spawn()
begin1()

proc/begin1()
for()
while(!going1) sleep(5)
for(var/turf/top1/T in world)
if(prob(30)) new /obj/block1(T)
sleep(5)
Turn debugging mode on to get more accurate information in your runtime errors.

I'm not sure if it will change much, but I think you should take out the ..() in there. There's probably no reason you need to call the parent proc of something without a parent.
In response to Nielz (#2)
Ah thanks to both of you it's working now xD