Write down a small bug today

Source: Internet
Author: User
The message box is really big, and the UI is constantly changed: (there is a need to display the task level of the next upgrade task. In the past, the server did not issue this configuration and did not intend to change the Protocol. Instead, the plan directly assigned the task name to XX-level task rewards. I converted the previous one from xx to an integer. It turns out to be reading three words directly from level 9 to level 99. I did not expect that when the server is level 9, 8-level tasks will also be issued, but marked as completed. At this time, there will be a problem when I read two characters and then convert it to an integer. Lua will report an error and the subsequent content will not be displayed. It is a tragedy. Later, we directly changed it to all the upgrading tasks. Each Task Name is converted to an integer one by one and then multiplied by 10 until a non-shaping character appears.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.