• Baja problem

    From Hkb@VERT/TALAMASC/EXPLORER to All on Tue Jan 12 14: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/TALAMASC/SPIRIT to HKB on Wed Jan 13 18: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/TALAMASC to Hkb on Wed Jan 13 16: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.
    °°±±²²ÑímmæKní€kîr²²±±°°





    ---
    þ Synchronet þ telnet://talamasca-bbs.com http://www.talamasca-bbs.com
  • From Tommyknocker@VERT/TALAMASC to Spiritwild on Wed Jan 13 16: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.
    °°±±²²ÑímmæKní€kîr²²±±°°


    ---
    þ Synchronet þ telnet://talamasca-bbs.com http://www.talamasca-bbs.com
  • From Hkb@VERT/TALAMASC/EXPLORER to Tommyknocker on Wed Jan 13 19: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/TALAMASC to Hkb on Wed Jan 13 21: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.
    °°±±²²ÑímmæKní€kîr²²±±°°


    ---
    þ Synchronet þ telnet://talamasca-bbs.com http://www.talamasca-bbs.com
  • From Hkb@VERT/TALAMASC/EXPLORER to Tommyknocker on Thu Jan 14 07: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/TALAMASC/SPIRIT to TOMMYKNOCKER on Thu Jan 14 20: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.
    °°±±²²Ñí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@VERT/TALAMASC/SPIRIT to TOMMYKNOCKER on Thu Jan 14 20: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.
    °°±±²²Ñí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@VERT/TALAMASC to Spiritwild on Fri Jan 15 18: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.
    °°±±²²ÑímmæKní€kîr²²±±°°


    ---
    þ Synchronet þ telnet://talamasca-bbs.com http://www.talamasca-bbs.com
  • From Tommyknocker@VERT/TALAMASC to Spiritwild on Fri Jan 15 18: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.
    °°±±²²ÑímmæKní€kîr²²±±°°


    ---
    þ Synchronet þ telnet://talamasca-bbs.com http://www.talamasca-bbs.com
  • From Reaper Man@VERT/TALAMASC/TIME/FLAMINT to Spiritwild on Mon Jan 18 10: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/TALAMASC/SPIRIT to REAPER MAN on Tue Jan 19 17: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/TALAMASC/TIME/FLAMINT to Spiritwild on Wed Jan 20 19: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