View Full Version : how to put a counter
vdesigns
April 11th, 2003, 05:30 AM
have tried to make a login sequence where a usre gets three attempts,trys. and then is given a non authorization message.
please help with this:(
ahmed
April 11th, 2003, 11:39 AM
you would need to use something like this:
if( i<3) {
if(psw != "sesame") {
i++
psw = ""
} else {
//actions to be executed when password is right goes here
}
} else {
trace ("You Are Not Authorized!!")
}
raichu
May 5th, 2003, 03:16 PM
Originally posted by ahmed
you would need to use something like this:
if( i<3) {
if(psw != "sesame") {
i++
psw = ""
} else {
//actions to be executed when password is right goes here
}
} else {
trace ("You Are Not Authorized!!")
}
will that work for a programing a game?
i mean if i made a box and made level codes would that work on it?
raichu
May 5th, 2003, 07:59 PM
can anyone tell me?
Jubba
May 5th, 2003, 08:06 PM
You would probably need to change the code around a little but yes it should work. Why don't you try it out and see?
raichu
May 5th, 2003, 08:11 PM
Originally posted by Jubba
You would probably need to change the code around a little but yes it should work. Why don't you try it out and see?
okay i will try if i can't could u possibly help me?
Jubba
May 5th, 2003, 08:18 PM
someone will be able to. I have too much work to do...
raichu
May 5th, 2003, 08:31 PM
hmm i edited it and also added it to a form...
it didn't work i could't code it to triger a level:smirk:
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.