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 / Struct And Structure

Author
Message
Divided
FPSC Reloaded TGC Backer
11
Years of Service
User Offline
Joined: 31st Oct 2013
Location:
Posted: 11th Jun 2015 16:38
I'm new to AppGameKit and its BASIC language. I would prefer to use it then the hassle that comes with industry languages. However, I am stuck with syntax...

The following is a snippet of what I have attempted to make... I know it works with out using functions ect... but I'm to use to making it look neat and tidy. Please correct me in the issue I'm struggling with this early on.

Compilation Error: ( main.agc:47: error: Cannot convert type "Integer" to "Type" )



Cheers for any assistance!

DividedV -- YouTube Channel
Grook
AGK Backer
12
Years of Service
User Offline
Joined: 22nd Jun 2012
Location: Lancashire, England
Posted: 11th Jun 2015 16:55 Edited at: 11th Jun 2015 16:56
The problem is the call to

Main(PlayerData)

PlayerData is a type, not a variable. You are calling the Main function and passing in a type definition rather than a variable of that type.

e.g.



"It is said that your life flashes before your eyes just before you die. That is true, it's called Life.”
Divided
FPSC Reloaded TGC Backer
11
Years of Service
User Offline
Joined: 31st Oct 2013
Location:
Posted: 12th Jun 2015 07:24
Cheers!

DividedV -- YouTube Channel

Login to post a reply

Server time is: 2024-11-25 22:19:22
Your offset time is: 2024-11-25 22:19:22