ID:144871
 
i didnt know where to put so i put here cuz i guess its a problem with my scripts
the problem is my screen black
i use admin panels and login system
whats wrong then?
(no errors but if i teleport my self to a monster i can see the screen)
You really should post your Login() code. My guess is that the player's loc isn't defined, and you did not put ..() (which would send you to 1,1,1).
In response to Bobthehobo
heres my log in:
Login()
icon_state = gender //when a player logs in, make their icon's state
..() //the gender of their key. Then call the parent!
In response to Brolly2000
Are you compiling with the map file checked? =p
In response to D4RK3 54B3R
what do u mean?
In response to D4RK3 54B3R
D4RK3 54B3R wrote:
Are you compiling with the map file checked? =p

He said "if i teleport my self to a monster i can see the screen", so that can't be it.

My guess is that there's another Login() somewhere that's not calling ..(). Look for other Login() procs. Note that if you're using any libraries, there might be Login() procs in them that aren't calling ..().
In response to Crispy
Whoops, I didn't read the teleport to monster part. Dang parenthesis. =o
In response to Brolly2000
so how do i fix i didnt understand
In response to Brolly2000
1. Look for all Login()s you have. This includes Login()s from libraries and demos. (It's probably a good idea to consolidate all of these into one.)
2. Make sure they all define usr.loc or have ..()
In response to Bobthehobo
can this be the problem if yes whats the fix:
mob/Login()//when the user logs in
..()
scan(src)//Scan for banning and multi playing and such
if(scan(src) == TRUE) //if they are cheating
src << "There was a problem logging in either your are already connected to the game."//Tell them there not allowed to join for some reason
sleep(10) //pause a bit
src.boot()//boot them

if(log == 1)//if logging is on
text2file("[time2text(world.realtime)]:[src] has logged in!","log.txt")//keep a log of who logged in
In response to Brolly2000
please answer cuz i cant keep my game
In response to Brolly2000
Brolly2000 wrote:
cuz i cant keep my game

1. There are bumping rules. Respect them. Those being, only bump when the last post is more than 24 hours ago AND the thread is off the first page.

2. Indeed you can't. You chucked in codes, no idea what they do, and ask us to "fix" them. I can't emphase this more, you need to learn the language before you can start asking questions. What good cops shoots first and asks questions later?
In response to Mysame
are you a cop? xD
... annyway this forums whould never start if people like you whould say "do it you'rself" dont you think?
In response to Brolly2000
We do help. When the poster has some sense.
You showed us one snippet of code and that one snippet was already enough to proof that you don't understand a thing of it. You're just copy/pasting demos. And then asking us to fix it. That's not how it works, don't you think?
In response to Brolly2000
Brolly2000 wrote:
... annyway this forums whould never start if people like you whould say "do it you'rself" dont you think?

It is quite simple. From the beginning, it seemed that even if someone tried to help you, you wouldn't understand. At least, you wouldn't if there wasn't a good explanation designed for newbies. Which wasn't there, only short hard explanations. So, mistakes on both sides

But you, spamming the forums also has the opposite effect of a magnet.

I strongly recommend you to read(and do) Zilal's ZBT tutorial, it explains things very well. Once you're done doing that, you will find yourself knowing alot more than you do now. Implying that you are capable to understand the help given to you on these forums. You gotta face it, you do not understand DM well enough...

O-matic
In response to Brolly2000
Why don't you try a simple login code like this.

mob
Login()
icon='yourplayer.dmi'//creates your icon
src.loc = locate(1,1,1)//first two numbers are on the map and the 3rd is the different map.
world<<"[src] has logged in!"//tells the world you logged in
Logout()
world<<"[src] has logged out!"//tells the world you logged out
del src//deletes you


Don't just copy and paste this, use it to learn.

~DARK~
In response to DarkD3vil666
The code you have just shown INCLUDES the problem that other forum-goers were talking about.
How NOT to do it:
mob/Login()
Do_Something()
Do_Something(else)
Do_Another_Thing()

How to do it:
mob/Login()
Do_Something()
Do_Something(else)
..()
Do_Another_Thing()


Oh, and magnets attract and repel.