ID:146056
 
Code:mob
Login()
src.Defense = rand(10,75)

mob
Login()
src.Speed = rand(11,130)



Problem description:When i log in it says my strength and defens eis 0 instead of the rand posted above.


whats wrong?


First, it's easier to read your programming if you put it inside of the dm tags. It'd be better if you closed them too.

For your problem, I'm guessing because you're not calling ..() in Login(). It'd be more reasonable to put it in the same section, though.

mob/Login()
src.Defense = rand(10,75)
src.Speed = rand(11,130)
..()


~~> Dragon Lord
Sarg338 wrote:
Code:mob
Login()
src.Defense = rand(10,75)

mob
Login()
src.Speed = rand(11,130)

>

Problem description:When i log in it says my strength and defens eis 0 instead of the rand posted above.


whats wrong?





ill put your code and such in the correct places....

mob
Login()
src.Defense = rand(10,75)

mob
Login()
src.Speed = rand(11,130)


Problem description:When i log in it says my strength and defense is 0 instead of the rand posted above.

whats wrong?



there :D
In response to Nick789
it still says its 0 when i log in
In response to Unknown Person
ahhh ok thanks. that also fixed my map problem too. :D