| View previous topic :: View next topic |
| Author |
Message |
tahu Voice
Joined: 11 Feb 2005 Posts: 14 Location: bandung
|
Posted: Tue Aug 23, 2005 2:58 am Post subject: help scripts |
|
|
hello guys..
please help me to fix this.
| Code: |
if {$upasAnswerCount == 1} {
upasmsg "[b]Title 1[/b]"
upasmsg "question : $upasQuestion ? "
upasmsg "Survey : 8 $upasPointsPerAnswer $upasPointsName"
upasmsg "\00313$tipzs"
} elseif {$upasAnswerCount <= 2} {
upasmsg "[b]Title 2[/b]"
upasmsg "WORD : 9 $upasQuestion ? "
upasmsg "Hint : 8 $upasAnswerCount "
upasmsg "$tipzs"
}elseif {$upasAnswerCount >= 3} {
upasmsg "[b]Title 3[/b]"
upasmsg "KATA : 9 $upasQuestion ? "
upasmsg "Survey : 8 $upasAnswerCount "
upasmsg "$tipzs"
|
_________________ no limit to learn |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Tue Aug 23, 2005 3:10 am Post subject: |
|
|
For a start, use the code tags. Secondly, READ this post. _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
awyeah Revered One

Joined: 26 Apr 2004 Posts: 1580 Location: Switzerland
|
Posted: Tue Aug 23, 2005 9:23 pm Post subject: |
|
|
What is upasmsg and what does it basically do? _________________ ·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
================================== |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Wed Aug 24, 2005 7:06 am Post subject: |
|
|
For starters
| Code: | | }elseif {$upasAnswerCount >= 3} { |
there should be a space after the first closed brace (}) _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Wed Aug 24, 2005 10:19 am Post subject: |
|
|
| awyeah wrote: | | What is upasmsg and what does it basically do? |
Trivia script is my guess.  _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Fri Aug 26, 2005 3:23 am Post subject: |
|
|
| Alchera wrote: | | awyeah wrote: | | What is upasmsg and what does it basically do? |
Trivia script is my guess.  |
you fluent in Malayan/Indonesian?  |
|
| Back to top |
|
 |
awyeah Revered One

Joined: 26 Apr 2004 Posts: 1580 Location: Switzerland
|
Posted: Fri Aug 26, 2005 3:32 am Post subject: |
|
|
No man im not malaysian, am from Pakistan. I can fluently speak Hindi, Urdu, Punjabi and English. _________________ ·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
================================== |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Fri Aug 26, 2005 3:54 am Post subject: |
|
|
| awyeah wrote: | | No man im not malaysian, am from Pakistan. I can fluently speak Hindi, Urdu, Punjabi and English. |
obviously you aren't otherwise you wouldn't have asked what upasmsg is
I was actually quoting Alchera |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Fri Aug 26, 2005 9:42 am Post subject: |
|
|
/me falls off his chair _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
tahu Voice
Joined: 11 Feb 2005 Posts: 14 Location: bandung
|
Posted: Sat Aug 27, 2005 12:02 pm Post subject: |
|
|
i try to write word game in tcl
how to make the bot read the title when answer only 1 the title "sample one" , if answer got 2 the title "sample two" and if the answer got 3 the title make deferent post like "sample 3"
thanks
if {$upasAnswerCount == 1} {
upasmsg "Title 1"
upasmsg "question : $upasQuestion ? "
upasmsg "Survey : 8 $upasPointsPerAnswer $upasPointsName"
upasmsg "\00313$tipzs"
} elseif {$upasAnswerCount <= 2} {
upasmsg "Title 2"
upasmsg "WORD : 9 $upasQuestion ? "
upasmsg "Hint : 8 $upasAnswerCount "
upasmsg "$tipzs"
}elseif {$upasAnswerCount >= 3} {
upasmsg "Title 3"
upasmsg "KATA : 9 $upasQuestion ? "
upasmsg "Survey : 8 $upasAnswerCount "
upasmsg "$tipzs" _________________ no limit to learn |
|
| Back to top |
|
 |
|