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
!include sbbsdefs.incend_switch
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
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 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
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
That there is what I do.Cool thanks I was just wondering...
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²²±±°°
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 2end_switch
printfile "c:\\logoff2.asc"
hangup
end_case
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²²±±°°
Rules, ha.. still it worked that way when I played with it.But I'm no
expert on the matter.
end_switchTrue :) but doesn't the end_case prevent it from falling through ?
Like it matters, your gonna get tossed out via "hangup" <G>
True :) but doesn't the end_case prevent it from falling through ?
Like it matters, your gonna get tossed out via "hangup" <G>
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...
Besides I've yet to see this dang thing satisfy my needs.
My floppy just won't fit !
Sysop: | Tandy |
---|---|
Location: | New York, USA |
Users: | 15 |
Nodes: | 13 (0 / 13) |
Uptime: | 64:46:34 |
Calls: | 335 |
Messages: | 113,197 |