mob
Login()
world<<"<b>[src.name] has logged in.</b>"
src.icon = 'Plain char.dmi'
src.loc = locate(5,5,1)
..()
turf
start
mob
proc
shoot()
var/obj/bullet/F = new/obj/bullet
var/mob/M
new/obj/bullet
for(M in view()||null)
if(M == usr) continue
if(null) return "There are no targets around"
while(F)
step(F,M.loc)
if(F.loc == M.loc)
world<<"You hit him"
del F
del M
obj
bullet
icon = 'bullet.dmi'
turf
ground
icon = 'dirt.dmi'
mob
dummy
icon = 'Plain char.dmi'
mob
verb
Shoot()
shoot()
ID:165516
Dec 10 2006, 8:04 am
|
|
Even with no errors or anything, I can't log in. I can't seem to figure out why. Is there anything in this code stoping me from logging in?
|
Dec 10 2006, 8:10 am
|
|
Don't use usr in a proc.
|
In response to Xx Dark Wizard xX
|
|
That doesn't fix the problem you know.
|
In response to Speedro
|
|
You are also using the || operator incorrectly.
|
In response to Speedro
|
|
You'd be surprised at how it actually does in the long run... do you have another other Login() called somewhere else in the program which has been overwritten?
- GhostAnime |
In response to GhostAnime
|
|
I just started the game, that's all there is to it..
Rather than just elling me i'm using || wrong, could you tell me how i'm using it wrong? |
In response to Speedro
|
|
Oh, and when I log in, it says [key]Guest at the bottom rather than "logging in"
|
In response to Speedro
|
|
Speedro wrote:
Oh, and when I log in, it says [key]Guest at the bottom rather than "logging in" That means that your Dream Seeker is having trouble contacting the BYOND Pager to log in your key. Could you please make a thorough post in Bug Reports about this? Also, in Dream Seeker, type in ".configure debug on" so that DS will show the debugging info for connecting to the pager. When you try to log in, but it doesn't work, copy & paste that debugging info and put it with the Bug Report so that the BYOND Staff can try to fix it. |
In response to Jon88
|
|
Fixed, just wasn't signed into byond.
|
In response to Speedro
|
|
Infinite loop suspected--switching proc to background.
If it is not an infinite loop, either do 'set background=1' or set world.loop_checks=0. proc name: shoot (/mob/proc/shoot) usr: Speedro (/mob) src: Speedro (/mob) call stack: Speedro (/mob): shoot() Speedro (/mob): Shoot() Umm? |
In response to Speedro
|
|
That's because of your broken ||.
mob |