ID:145378
 
Code:
world/New() 
sleep(1)
for(var/mob/M as mob)
sleep(65)
if(M.renting)
M.money -= M.rent_price
if(M.money < 0)
M << "You cannot pay your rent([M.rent_price]), you are evicted!"
M.house = "None"
M.renting = 0
M.rent_price = 0
M.credit -= 10
else
M << "You pay your rent of [M.rent_price]"
sleep(100)


Problem description:

runtime error: Cannot read null.renting
proc name: New (/world/New)
source file: Sims.dm,169
usr: null
src:
call stack:
: New()

line 169 = if(M.renting)

I think its my for proc, havent used it before but I'm making a simulation type game so it would really help to figure out what is wrong with this.
world/New()
..()
//add stuff here


If ..() isn't called, the default action won't be called.
In response to Kalzar
Oh yeah, duh ty