ID:266633
 
I fixed it!
whats the BugYes var do?
In response to Strange Kidd
If its a bug(Star ship troopers game) it doesnt allow it if it is it allows it
In response to Thief Jack
change the if(usr.BugYes==1) to if(T.BugYes==1)
In response to Strange Kidd
But wouldn't that be defining it towards the obj, turf, or other person?
In response to Thief Jack
well yes don't you want to know if the obj turf or other person is the Bug?
In response to Strange Kidd
No...If the usr is a bug it wont shoot. Bugs don't have guns :P
In response to Thief Jack
ohh i should have seen this along time ago


take away the .loc in usr.loc and t.loc
Thief jack wrote:
client
Click(obj/T as obj in oview(7), mob/T as mob in oview(7), turf/T as turf in oview(7))
[snip]
runtime error: Cannot read null.loc
proc name: Click (/client/Click)
source file: StarShip Troopers.dm,19
usr: Thief jack (/mob/PC/Trooper)
src: Thief jack (/client)
call stack:
Thief jack (/client): Click(the turf (13,9,1) (/turf/turf), the turf (13,9,1) (/turf/turf), null)

A client's Click() proc only takes two arguments, Object and Location. You used the same name, T, for three arguments. Notice that in the last line of your error you can see this. The first argument is the turf you clicked. The second is the location of the turf (the turf). The third is null. Unfortunately, you then try to access this null T's loc var.