Author Topic: @if@ error  (Read 1676 times)

0 Members and 1 Guest are viewing this topic.

Phantomik

  • Youngling
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
  • Twitch Name: phantomik87
@if@ error
« on: April 01, 2016, 10:34:26 PM »
Bug:If you use a variable @readfile@ with more than one operator @if@ this command doesn't work.
How you produced this bug or came across it: just add @readfile@ in command with several @if@




Phantomik

  • Youngling
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
  • Twitch Name: phantomik87
Re: @if@ error
« Reply #1 on: April 03, 2016, 09:06:53 AM »
multiple @if@ with @readfile@ now work, but with @readfile@ not work right
Here's the command:@if@[@target@||5||@if@[<||@readfile@[E:\openserver\OpenServer\domains\deepbot\@user@charsila.txt]||5||E:\openserver\OpenServer\domains\deepbot\@user@charsila.txt=@readfile@[E:\openserver\OpenServer\domains\deepbot\@user@charsila.txt] it <5||>5]||Error] Why is recorded in a file more than 5 values it still provides that there is less than 5?


Without @readfile@ work fine.

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: @if@ error
« Reply #2 on: April 03, 2016, 10:45:52 AM »
Uhh pretty sure it is about half way through (Check Red Text): @if@[@target@||5||@if@[<||@readfile@[E:\openserver\OpenServer\domains\deepbot\@user@charsila.txt]||5||E:\openserver\OpenServer\domains\deepbot\@user@charsila.txt=@readfile@[E:\openserver\OpenServer\domains\deepbot\@user@charsila.txt] it <5||>5]||Error]
Old Name: RepentGamingTV
Twitch: Here

Need help ASAP?
Join Deepbot's Discord: Discord.Deepbot.tv
Deepbot's Twitter: @DeepSupport

Phantomik

  • Youngling
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
  • Twitch Name: phantomik87
Re: @if@ error
« Reply #3 on: April 03, 2016, 02:17:20 PM »
Uhh pretty sure it is about half way through (Check Red Text): @if@[@target@||5||@if@[<||@readfile@[E:\openserver\OpenServer\domains\deepbot\@user@charsila.txt]||5||E:\openserver\OpenServer\domains\deepbot\@user@charsila.txt=@readfile@[E:\openserver\OpenServer\domains\deepbot\@user@charsila.txt] it <5||>5]||Error]

Oh, if only. In the picture, I add in conclusion the command values from the file, so that it was evident that there is number more.

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: @if@ error
« Reply #4 on: April 03, 2016, 07:23:51 PM »
Well I am not sure what you want it to do, I am just showing you why it output what it output since "E:\openserver\OpenServer\domains\deepbot\@user@charsila.txt=" is not in brackets or anything.
Old Name: RepentGamingTV
Twitch: Here

Need help ASAP?
Join Deepbot's Discord: Discord.Deepbot.tv
Deepbot's Twitter: @DeepSupport