ID:144446
 
Code:
mob/Login()
usr<<browse(News,"window=News;size=240x320")


var/const/News = {"<style type="text/css">
body {
background-color: black;
color: orange;
font-family: Times New Roman
}
</style>
<img src = "http://i69.photobucket.com/albums/i75/LegendaryLCD/17753.png"><br><br>Welcome to the byond Family Guy Game! Just like on the real Family Guy show, you will be able to swear, make crude jokes, talk about sex, and make an idiot out of peter. I hope you have fun! If you want to and think the game is good so far vote for the game."}



mob
Login()
usr<<sound('Family_Guy.mid')
var/w = (rand(1,3))
switch(w)
if(1)
loc = locate(7,7,1)
if(2)
loc = locate(7,7,2)
if(3)
loc = locate(7,7,3)


Problem description:

For some reason i have no errors or warnings but my browser wont pop up and I think its being overlapped with somthing. Can someon fix this please?
You aren't calling ..() to do the actual login in your Login() overrides. In addition, at the bottom code block you have identation errors.
In response to Kaioken
Adding on to what you told him, the use of that <code>switch()</code> is pretty unnecessary, and he had a hint of usr abuse.
mob
Login()
..()
src << sound('Family_Guy.mid')
loc = locate(7, 7, rand(1, 3))
In response to Papoose
Papoose wrote:
Adding on to what you told him, the use of that <code>switch()</code> is pretty unnecessary, and he had a hint of usr abuse.
> mob
> Login()
> ..()
> src << sound('Family_Guy.mid')
> loc = locate(7, 7, rand(1, 3))
>


Yep, good call. Silly me, since one the the Login()s was on the top (I don't really see why not combine them, too) I immediately saw why it doesn't work and stop reading.
In response to Kaioken
mob
Login()
..()
src << sound('Family_Guy.mid')
loc = locate(7, 7, rand(1, 3))
usr<<browse(News,"window=News;size=240x320")

Family Guy.dm:21: Inconsistent indentation.
Family Guy.dm:22: Inconsistent indentation.
Family Guy.dm:23: Inconsistent indentation
In response to Dbgtsuperfreak
Just re-indent it, that is easy to fix.
In response to Xx Dark Wizard xX
i tried didnt work can u fix it.
In response to Dbgtsuperfreak
No I will not fix 3 lines you are too lazy to indent.
In response to Xx Dark Wizard xX
I told u i tried and it still didnt work.!
In response to Dbgtsuperfreak
Then re-learn coding from the basics... you can't even indent code? AFAIK indentation is purposely screwed on the forums so people don't copy and paste.

If after reading some basic tutorials you still can't indent, I suggest finding something else to do other than coding.

BTW, in case you don't know, identation means "tabbing". What you need to do should be clear enough now... :O