diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-06-21 22:20:39 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-06-21 22:20:39 -0300 |
commit | 8baffd33b467eda596256c9b246779b789b7a5aa (patch) | |
tree | aa206dec9a4950e91f695145ffae913d4c8ea458 | |
parent | 001d3e994ff83f4c20dcc5f15df29d97bd364e07 (diff) | |
download | serverdata-8baffd33b467eda596256c9b246779b789b7a5aa.tar.gz serverdata-8baffd33b467eda596256c9b246779b789b7a5aa.tar.bz2 serverdata-8baffd33b467eda596256c9b246779b789b7a5aa.tar.xz serverdata-8baffd33b467eda596256c9b246779b789b7a5aa.zip |
Where's this bug?
-rw-r--r-- | npc/commands/scheduled-broadcasts.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/npc/commands/scheduled-broadcasts.txt b/npc/commands/scheduled-broadcasts.txt index cb40ed7d1..b578d78e1 100644 --- a/npc/commands/scheduled-broadcasts.txt +++ b/npc/commands/scheduled-broadcasts.txt @@ -1,19 +1,21 @@ function script StoneBoard { function setMessage { + .@msg$=""; do { clear; mes l("Please enter the message:"); next; input .@msg$; - //.@msg$ = strip(.@msg$); + .@msg$ = strip(.@msg$); if (.@msg$ != "") { return .@msg$; } mes l("The message cannot be empty"); next; - } while (1); + } while (.@msg$ == ""); + return .@msg$; } function setInterval { |