ID:171048
 
I feel bad for asking tons of questions a day, but another problem..

At the beginning of my project (When I first started working on it), I put in..
mob/Login()
world << "[src] has joined the world."
world.log << "[src] joined the world at [time2text(world.realtime)]."

And I logged in, and thats what I wanted it to do, but now, it repeats both of 'em twice, and a matter of fact, it repeats anything I put in mob/Login() twice. Like it checks the passport twice, etc. Any way to stop it from repeating everything twice?
How many mob/Login() procs do you have?

Do you have a class choosing system?



Also, don't feel bad about asking questions. That's how you learn!
Lenox wrote:
And I logged in, and thats what I wanted it to do, but now, it repeats both of 'em twice, and a matter of fact, it repeats anything I put in mob/Login() twice. Like it checks the passport twice, etc. Any way to stop it from repeating everything twice?

Are you calling ..() twice in another Login() proc that overrides that one? If you had ..() more than once in, say, /mob/choose_character/Login(), that'd do it.

Lummox JR
In response to Lummox JR
Lummox JR wrote:
Lenox wrote:
And I logged in, and thats what I wanted it to do, but now, it repeats both of 'em twice, and a matter of fact, it repeats anything I put in mob/Login() twice. Like it checks the passport twice, etc. Any way to stop it from repeating everything twice?

Are you calling ..() twice in another Login() proc that overrides that one? If you had ..() more than once in, say, /mob/choose_character/Login(), that'd do it.

Lummox JR


Ah, yeah, that was the problem, one mob/Login() proc was..
mob
Login()
..()
for(var/i = 1, i < 3, i ++)
return ..()

At the time, I hadn't realized that ..() meant the same exact thing as return ..(), so there's the problem. Thank you very much. (And I only have three Login() procs :)

Edit: Woot, I've learned tons of stuff from just asking on the forums. Like i've mostly figured out how to use save files somewhat properly, I've learned how to use Find() and not to use ..() twice.
In response to Lenox
At the time, I hadn't realized that ..() meant the same exact thing as return ..(), so there's the problem. Thank you very much. (And I only have three Login() procs :)

Edit: Woot, I've learned tons of stuff from just asking on the forums. Like i've mostly figured out how to use save files somewhat properly, I've learned how to use Find() and not to use ..() twice.

Three Login() procs?!?! It's better to stick with one, things can get crazy with two or more.