ID:174800
 
Here's what I'm having trouble with..

I want something so when you enter a number, it has to have the value of your "serial number" that was assigned to you. I've tried numerous things, but nothing's really worked.

-Camaro-
I really have no help to offer, I really just wanted to say :

"OH my GOD, the mob-obsessed-mob-obsessor is not talking about mobs!"

Thats all! Thank you for listening...reading!

~GokuSS4Neo~
<font size=-3>If ignorance is bliss, I am in heaven...

P.S Have fun with your mobs!
I don't see where your coming from. Maybe something like this:


mob/var/numbervar = 54639

mob/verb/Check_Number_Var(N as num)
if(N == usr.numbervar)
//stuff here

That dosn't do the assiging, but I think thats what you mean.

Airjoe
In response to Gokuss4neo
Hmmm. You're a very energetic person.. eh?

-Camaro-
In response to Airjoe
That's not how I need it. It just came from a switch.

    var/N = input("Please provide us with the 4 digit pin number you recieved when you created your account.")as num
if(N == usr.pinnumber)
// my stuff goes here


And mine's wrong. What can I do?

-Camaro-
In response to Camaro
Is that inside the switch? because it looks like it may be indentation if it isn't. :)
In response to Jnco904
Jnco904 wrote:
Is that inside the switch? because it looks like it may be indentation if it isn't. :)

Yes, it's inside the switch
if(question == "Access an account")
if(!usr.account)
usr<<"Sorry, due to safety reasons, you must have an account with us to access one."
return
else
var/pinquestion = input("Please provide us with the 4 digit pin number you recieved when you created your account.")as num
if(pinquestion == usr.pinnumber)

Access an Account is one of the options from the switch.
In response to Camaro
Ok it's inside the switch just not directly, in that case I would unindent the last if() that is checking the serial number, just once. :)