• Baja problem

    From Hkb@TALAMASC/EXPLORER to All on Tuesday, January 12, 1999 06:33:00
    Ok... Here is my script...
    !include sbbsdefs.inc
    INT I
    RANDOM I 2
    SWITCH I
    CASE 0
    printfile "c:\\sbbs\\text\\logoff.asc"
    hangup
    end_case
    CASE 1
    printfile "c:\\logoff2.asc"
    hangup
    end_case
    CASE 2
    printfile "c:\\logoff2.asc"
    hangup
    end_case
    .............................................................
    Ok well everytime I try to run this is locks up my computer and I have to reboot. I tried just useing printfile and one of the files and it still locked it up... :( Anyone know why this? Thanks... -|12Hkb


    ---
    ■ Synchronet ■ |03<<<|12Explorer BBS|03>>> - Vancouver, Wa - 360-574-5521
  • From Spiritwild@TALAMASC/SPIRIT to HKB on Wednesday, January 13, 1999 10:01:00
    Ok... Here is my script...
    !include sbbsdefs.inc
    INT I
    RANDOM I 2
    SWITCH I
    CASE 0
    printfile "c:\\sbbs\\text\\logoff.asc"
    hangup
    end_case
    CASE 1
    printfile "c:\\logoff2.asc"
    hangup
    end_case
    CASE 2
    printfile "c:\\logoff2.asc"
    hangup
    end_case
    .............................................................
    Ok well everytime I try to run this is locks up my computer and I have to HK>reboot. I tried just useing printfile and one of the files and it still lock HK>it up... :( Anyone know why this? Thanks... -|12Hkb


    Well, I'm no expert on the matter ......but try it with
    ..\\logoff2.asc instead of c:\\***
    You don't use text\menu\file.** ??

    worse to worse use one slash instead of 2 "c:/logoff2.asc
    should work that way, though it does break some
    C switch function code law.

    There could be retaliation! <G>

    ---
    ■ SLMR 2.1a ■ Ted Nugent for president !!!
    ■ Synchronet ■ SPIRIT OF THE WILD BBS
  • From Tommyknocker@TALAMASC to Hkb on Wednesday, January 13, 1999 08:40:00
    RE: Baja problem
    BY: Hkb to All on Tue Jan 12 1999 02:33 pm

    !include sbbsdefs.inc
    INT I
    RANDOM I 2
    SWITCH I
    CASE 0
    printfile "c:\\sbbs\\text\\logoff.asc"
    hangup
    end_case

    CASE 1
    printfile "c:\\logoff2.asc"
    hangup
    end_case

    CASE 2
    printfile "c:\\logoff2.asc"
    hangup
    end_case
    end_switch

    Ok well everytime I try to run this is locks up my computer and I have to

    First off I made the mod a little more readable. Breaking it up into seperate command sequences helps follow the code. Not really necessary for something this simple, but you should not start bad habits.
    As for your problem, you did not end_switch, so the mod would continue looking for more switches, or the end.
    ░░▒▒▓▓╤ømmµKnøÇkεr▓▓▒▒░░





    ---
    ■ Synchronet ■ telnet://talamasca-bbs.com http://www.talamasca-bbs.com
  • From Tommyknocker@TALAMASC to Spiritwild on Wednesday, January 13, 1999 08:42:00
    RE: Baja problem
    BY: Spiritwild to HKB on Wed Jan 13 1999 06:01 pm

    Well, I'm no expert on the matter ......but try it with
    ..\\logoff2.asc instead of c:\\***
    You don't use text\menu\file.** ??
    worse to worse use one slash instead of 2 "c:/logoff2.asc

    Well now the path is really not a problem, and the 2 slashes are required. Although at times using only one will work, it is still against the rules, and therefore should not be changed to avoid future confusion, or confusion for someone playing with the code.
    ░░▒▒▓▓╤ømmµKnøÇkεr▓▓▒▒░░


    ---
    ■ Synchronet ■ telnet://talamasca-bbs.com http://www.talamasca-bbs.com
  • From Hkb@TALAMASC/EXPLORER to Tommyknocker on Wednesday, January 13, 1999 11:59:00
    RE: Baja problem
    BY: Tommyknocker to Spiritwild on Wed Jan 13 1999 04:42 pm

    Well now the path is really not a problem, and the 2 slashes are requir Although at times using only one will work, it is still against the rules, a therefore should not be changed to avoid future confusion, or confusion for someone playing with the code.
    For some reason it is still locking up my computer... I have a question what are you useing for your Menu switching? |03Thanks -|12Hkb

    ---
    ■ Synchronet ■ |03<<<|12Explorer BBS|03>>> - Vancouver, Wa - 360-574-5521
  • From Tommyknocker@TALAMASC to Hkb on Wednesday, January 13, 1999 13:38:00
    RE: Baja problem
    BY: Hkb to Tommyknocker on Wed Jan 13 1999 07:59 pm

    Well now the path is really not a problem, and the 2 slashes are req Although at times using only one will work, it is still against the rules therefore should not be changed to avoid future confusion, or confusion f someone playing with the code.
    For some reason it is still locking up my computer... I have a question what are you useing for your Menu switching? |03Thanks -|12Hkb

    Here is a snippit right out of my command shell.


    # Display TEXT\MENU\CUSTOM\MAIN.* if not in expert mode

    int m
    random m 5
    switch m

    case 0
    compare_user_misc UM_EXPERT
    if_false
    cls
    menu CUSTOM\MAIN
    end_if
    end_case

    case 1
    compare_user_misc UM_EXPERT
    if_false
    cls
    menu MENU1\MAIN
    end_if
    end_case

    case 2
    compare_user_misc UM_EXPERT
    if_false
    cls
    menu MENU2\MAIN
    end_if
    end_case

    case 3
    compare_user_misc UM_EXPERT
    if_false
    cls
    menu MENU3\MAIN
    end_if
    end_case

    case 4
    compare_user_misc UM_EXPERT
    if_false
    cls
    menu MENU4\MAIN
    end_if
    end_case

    end_switch

    That there is what I do.
    ░░▒▒▓▓╤ømmµKnøÇkεr▓▓▒▒░░


    ---
    ■ Synchronet ■ telnet://talamasca-bbs.com http://www.talamasca-bbs.com
  • From Hkb@TALAMASC/EXPLORER to Tommyknocker on Wednesday, January 13, 1999 23:50:00
    RE: Baja problem
    BY: Tommyknocker to Hkb on Wed Jan 13 1999 09:38 pm

    That there is what I do.
    Cool thanks I was just wondering...



    ---
    ■ Synchronet ■ |03<<<|12Explorer BBS|03>>> - Vancouver, Wa - 360-574-5521
  • From Spiritwild@TALAMASC/SPIRIT to TOMMYKNOCKER on Thursday, January 14, 1999 12:20:00
    RE: Baja problem
    BY: Spiritwild to HKB on Wed Jan 13 1999 06:01 pm

    Well, I'm no expert on the matter ......but try it with
    ..\\logoff2.asc instead of c:\\***
    You don't use text\menu\file.** ??
    worse to worse use one slash instead of 2 "c:/logoff2.asc

    Well now the path is really not a problem, and the 2 slashes are requir
    Although at times using only one will work, it is still against the rules, a TO>therefore should not be changed to avoid future confusion, or confusion for TO>someone playing with the code.
    ░░▒▒▓▓╤ømmµKnøÇkεr▓▓▒▒░░

    Rules, ha.. still it worked that way when I played with it.But I'm no
    expert on the matter.

    it would lock like he said with the c://logoff instead of ..//logoff
    Though it could have been something other.
    Don't ask me ?? <G>



    anyway worse to worse ...whack it and stack it I always say.
    ---
    ■ SLMR 2.1a ■ Ted Nugent for president !!!
    ■ Synchronet ■ SPIRIT OF THE WILD BBS
  • From Spiritwild@TALAMASC/SPIRIT to TOMMYKNOCKER on Thursday, January 14, 1999 12:58:00
    RE: Baja problem
    BY: Hkb to All on Tue Jan 12 1999 02:33 pm

    !include sbbsdefs.inc
    INT I
    RANDOM I 2
    SWITCH I
    CASE 0
    printfile "c:\\sbbs\\text\\logoff.asc"
    hangup
    end_case

    CASE 1
    printfile "c:\\logoff2.asc"
    hangup
    end_case

    CASE 2
    printfile "c:\\logoff2.asc"
    hangup
    end_case
    end_switch

    Ok well everytime I try to run this is locks up my computer and I have to

    First off I made the mod a little more readable. Breaking it up into
    seperate command sequences helps follow the code. Not really necessary for TO>something this simple, but you should not start bad habits.
    As for your problem, you did not end_switch, so the mod would continue
    looking for more switches, or the end.
    ░░▒▒▓▓╤ømmµKnøÇkεr▓▓▒▒░░



    True :) but doesn't the end_case prevent it from falling through ?
    Like it matters, your gonna get tossed out via "hangup" <G>

    ---
    ■ SLMR 2.1a ■ Ted Nugent for president !!!
    ■ Synchronet ■ SPIRIT OF THE WILD BBS
  • From Tommyknocker@TALAMASC to Spiritwild on Friday, January 15, 1999 10:25:00
    RE: Baja problem
    BY: Spiritwild to TOMMYKNOCKER on Thu Jan 14 1999 08:20 pm

    Rules, ha.. still it worked that way when I played with it.But I'm no
    expert on the matter.

    Believe me, I am no expert in Baja either. That would be Angus, UCD, or Smeg.
    ░░▒▒▓▓╤ømmµKnøÇkεr▓▓▒▒░░


    ---
    ■ Synchronet ■ telnet://talamasca-bbs.com http://www.talamasca-bbs.com
  • From Tommyknocker@TALAMASC to Spiritwild on Friday, January 15, 1999 10:27:00
    RE: Baja problem
    BY: Spiritwild to TOMMYKNOCKER on Thu Jan 14 1999 08:58 pm

    end_switch
    True :) but doesn't the end_case prevent it from falling through ?
    Like it matters, your gonna get tossed out via "hangup" <G>

    Well as I understand it end_case does indeed end that particular case, but it will look for another switch until it finds end_switch.
    Of course I could be wrong.
    ░░▒▒▓▓╤ømmµKnøÇkεr▓▓▒▒░░


    ---
    ■ Synchronet ■ telnet://talamasca-bbs.com http://www.talamasca-bbs.com
  • From Reaper Man@TALAMASC/TIME/FLAMINT to Spiritwild on Monday, January 18, 1999 02:24:00
    RE: Baja problem
    BY: Spiritwild to TOMMYKNOCKER on Thu Jan 14 1999 20:58:00

    True :) but doesn't the end_case prevent it from falling through ?
    Like it matters, your gonna get tossed out via "hangup" <G>

    it matters to the compiler... It can't decide that a hangup will ocure, so it requires that every block command I.E. if then, select case, ... need to have some kind of ending to satisfy the compiler's needs...

    ---
    ■ Synchronet ■ Flamin' Torch BBS - The Board on Fire
  • From Spiritwild@TALAMASC/SPIRIT to REAPER MAN on Tuesday, January 19, 1999 09:03:00
    RE: Baja problem
    BY: Spiritwild to TOMMYKNOCKER on Thu Jan 14 1999 20:58:00

    True :) but doesn't the end_case prevent it from falling through ?
    Like it matters, your gonna get tossed out via "hangup" <G>

    it matters to the compiler... It can't decide that a hangup will ocure, so RM>requires that every block command I.E. if then, select case, ... need to h RM>some kind of ending to satisfy the compiler's needs...

    Thhhhhhhhhhhat was not the humorous point :)

    Besides I've yet to see this dang thing satisfy my needs.
    My floppy just won't fit !

    ahaahah, I kill me..............geez !

    ---
    ■ SLMR 2.1a ■ Wifes home!!!! ABORT ABORT FAIL RETRY FAIL ARGHHHH !
    ■ Synchronet ■ SPIRIT OF THE WILD BBS
  • From Reaper Man@TALAMASC/TIME/FLAMINT to Spiritwild on Wednesday, January 20, 1999 11:09:00
    RE: Baja problem
    BY: Spiritwild to REAPER MAN on Tue Jan 19 1999 17:03:00

    Besides I've yet to see this dang thing satisfy my needs.
    My floppy just won't fit !

    i plunked a zip drive into mine...
    and I am always unziping my files... in front of the computer, but I am secure in my computer nerdlyness...

    ---
    ■ Synchronet ■ Flamin' Torch BBS - The Board on Fire