They'll work one time, then not another...any idea why this is happening? It ONLY Loads the cars when I have NPC cars marked as "purchased=1" for some reason when it's 0, it doesn't want to load.
for(var/mob/vehicles/C in world.contents)
cars["car[carNum]"]<<C //save each car individually
cars["carNum"]<<carNum //save the total number of cars
world<<"[mobcount] car\s saved!"
for(var/i=1 to carNum)
world<<"[mobcount] car\s loaded!"
I get this run-time from my debug message:
runtime error: Cannot read null.x
proc name: LoadCars (/proc/LoadCars)
source file: procs.dm,20