Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / case default wth whiteespace(s) = compile error

Author
Message
ghzero
7
Years of Service
User Offline
Joined: 13th Jun 2017
Location: Germany
Posted: 1st Oct 2017 08:38 Edited at: 1st Oct 2017 08:39
I noticed that compile of

works fine, but


results error by compile:
main.agc:3243: error: CASE expression (Integer) must be the same data type as SELECT expression (String)

difference is:
spaces betweeen "case" and "default"
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 1st Oct 2017 09:16
i guess because the definition of keyword is "case default", if you do spaces between the compiler understand wrong.
AGK (Steam) V2017.09.25 : Windows 10 Pro 64 Bit : AMD (17.7.2) Radeon R7 265 : Mac mini OS Sierra (10.12.2)
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 2nd Oct 2017 12:55
Ew, gosub.
Click here for VR Legend of Zelda stuff

Login to post a reply

Server time is: 2024-09-30 09:15:53
Your offset time is: 2024-09-30 09:15:53