captcha.src
From
Digital Man@VERT to
Lord Blackfair on Thu Jul 29 16:19:14 2021
Here's the code you emailed me (please post here in the future instead):ãã#Captcha program by Keith Cunningham edit to how you would likeã!include sbbsdefs.incã:HomeãINT IãSTR SãRANDOM I 999999ãCLSãPrint "\r\nWelcome to the Login Captcha.\r\n"ãPrint "\r\nTo prove you are not a BOT please enter the number below below.\r\n"ãPRINT ""ãPRINT ""ãprint Iãprint "\r\n"ãGETSTR STR 6 K_NUMBERãCOMPARE I SãIF_falseãgoto wrongãPrint "\r\n\r\nWelcome to the BBS!!!\r\n\r\n"ãpauseãend_ifãend_cmdã# edit this line as to Where you would exit toã:wrongãPrint "\r\nThat is not correct, Please try again.\r\n"ãpauseãgoto homeãend_cmdããI see a couple of issues:ã1. The first end_if should be placed right after your "goto wrong" statement.ãNothing following that "goto" will be executed in the "else" case, which it appears you intended.ã2. The end_cmd's don't appear to belong here at all since you have no corresponding cmd_home statement (nor do you necessarily want/need one for such a simple script).ããHere's a simplified version which I think does what you want:ã#Captcha program by Keith Cunningham edit to how you would likeã!include sbbsdefs.incã:HomeãINT IãSTR SãRANDOM I 999999ãCLSãPrint "\r\nWelcome to the Login Captcha.\r\n"ãPrint "\r\nTo prove you are not a BOT please enter the number below below.\r\n"ãPRINT ""ãPRINT ""ãprint Iãprint "\r\n"ãGETSTR STR 6 K_NUMBERãCOMPARE I SãIF_trueã Print "\r\n\r\nWelcome to the BBS!!!\r\n\r\n"ã pauseã returnã end_ifãPrint "\r\nThat is not correct, Please try again.\r\n"ãpauseãgoto homeã-- ã digital manããSling Blade quote #8:ãKarl Childers: I don't reckon I got no reason to kill nobody.ãNorco, CA WX: 90.9øF, 35.0% humidity, 8 mph ENE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã