by suchiaruzu » Dec 8, 2003 @ 10:42pm
UPDATED!!!
Well, that is what the program above is supposed to do. Here is an updated version (I am posting this here for the guys at the IRC chan as well):
[code]
()
Prgm
Lbl boot
Local id
PopUp {"Horst","Johnboy","Johnnie","Johnson"},id
If id="1" Then
DelVar schonda
schonda=getType(horst)
If schonda="NONE" Then
Local horst
CopyVar id,horst
SendChat horst
Goto name
Else
Dialog
Title "Gibt's schon"
Text "Zu spät, es gibt schon einen Horst!"
EndDlog
Goto boot
EndIf
ElseIf id="2" Then
DelVar schonda
schonda=getType(johnboy)
If schonda="NONE" Then
Local johnboy
CopyVar id,johnboy
SendChat johnboy
Goto name
Else
Dialog
Title "Gibt's schon"
Text "Zu spät, es gibt schon einen Johnboy!"
EndDlog
Goto boot
EndIf
ElseIf id="3" Then
DelVar schonda
schonda=getType(johnnie)
If schonda="NONE" Then
Local johnnie
CopyVar id,johnnie
SendChat johnnie
Goto name
Else
Dialog
Title "Gibt's schon"
Text "Zu spät, es gibt schon einen Johnnie!"
EndDlog
Goto boot
EndIf
ElseIf id="4" Then
DelVar schonda
schonda=getType(johnson)
If schonda="NONE" Then
Local johnson
CopyVar id,johnson
SendChat johnson
Goto name
Else
Dialog
Title "Gibt's schon"
Text "Zu spät, es gibt schon einen Johnson!"
EndDlog
Goto boot
EndIf
EndIf
Lbl name
If getType(nom)
<div align="center">

<br></div>