The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error

Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Switch expressions must be integral numbers
adriartilol Offline
Junior Member

Posts: 2
Threads: 1
Joined: Jun 2020
Reputation: 0
Switch expressions must be integral numbers

I've tried to code a switch statement in my .hps file, I got a few errors but was able to fix them properly. But there's just this one error that I don't understand and I don't know where the source of it is.
Error message:

.png   Captura de pantalla (889).png (Size: 8.19 KB / Downloads: 162)

Switch statement code:

    void WakeUpSequence(const tString &in asSequence){
            // Preparing stuff for the intro sequence
            case 1:
            // Start the actual intro sequence
            case 2:
                // More to be added

If someone could tell me what the source of the error is, it'd be much appreciated
06-29-2020, 06:57 PM

Messages In This Thread
Switch expressions must be integral numbers - by adriartilol - 06-29-2020, 06:57 PM

Users browsing this thread: 1 Guest(s)