• Baja problem

    From Hkb@VERT to All on Tue Jan 12 06:33:00 1999
    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@VERT to HKB on Wed Jan 13 10:01:00 1999
    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@VERT to Hkb on Wed Jan 13 08:40:00 1999
    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.
    mmKnkr





    ---
    Synchronet telnet://talamasca-bbs.com http://www.talamasca-bbs.com
  • From Tommyknocker@VERT to Spiritwild on Wed Jan 13 08:42:00 1999
    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.
    mmKnkr


    ---
    Synchronet telnet://talamasca-bbs.com http://www.talamasca-bbs.com
  • From Hkb@VERT to Tommyknocker on Wed Jan 13 11:59:00 1999
    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@VERT to Hkb on Wed Jan 13 13:38:00 1999
    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.
    mmKnkr


    ---
    Synchronet telnet://talamasca-bbs.com http://www.talamasca-bbs.com
  • From Hkb@VERT to Tommyknocker on Wed Jan 13 23:50:00 1999
    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@VERT to TOMMYKNOCKER on Thu Jan 14 12:20:00 1999
    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.
    mmKnkr

    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@VERT to TOMMYKNOCKER on Thu Jan 14 12:58:00 1999
    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.
    mmKnkr



    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@VERT to Spiritwild on Fri Jan 15 10:25:00 1999
    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.
    mmKnkr


    ---
    Synchronet telnet://talamasca-bbs.com http://www.talamasca-bbs.com
  • From Tommyknocker@VERT to Spiritwild on Fri Jan 15 10:27:00 1999
    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.
    mmKnkr


    ---
    Synchronet telnet://talamasca-bbs.com http://www.talamasca-bbs.com
  • From Reaper Man@VERT to Spiritwild on Mon Jan 18 02:24:00 1999
    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@VERT to REAPER MAN on Tue Jan 19 09:03:00 1999
    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@VERT to Spiritwild on Wed Jan 20 11:09:00 1999
    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