ID:168930
 
im using this code.....
                    if(istype(src.loc, /turf/outside/dugground))
if((locate(/obj/plants)||(locate(/obj/pickups) in (src.loc))))
else
new/obj/plants/buds/flowerbud(usr.loc)
if(istype(locate(src.x+1,src.y,src.z), /turf/outside/dugground))
if((locate(/obj/plants)||(locate(/obj/pickups) in (locate(src.x+1,src.y,src.z)))))
else
new/obj/plants/buds/flowerbud(locate(src.x+1,src.y,src.z))
if(istype(locate(src.x-1,src.y,src.z), /turf/outside/dugground))
if((locate(/obj/plants)||(locate(/obj/pickups) in (locate(src.x-1,src.y,src.z)))))
else
new/obj/plants/buds/flowerbud(locate(src.x-1,src.y,src.z))

(making a game where you grow crops) :P, well any wayz..... its only execures the first one (src.loc) and i dont know why. i can use return after the if statement either because it ends the proc and cant finish laying the rest. can some one help?
This belongs in Code Problems.
Instead of
if(var)
else
//code


Use

if(!var)
//code


for starters

secondly, if your using that say... In an obj proc/verb

src.x, src.y etc, will be the obj's location variables, try using usr, or if its a proc put procname(mob/M) and use M, just a suggestion, without actually testing it, I can only give quick advice.