Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (OptimusPrime, AndrewAMD), 14,580 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
general basic question #281143
07/25/09 17:19
07/25/09 17:19
Joined: Jul 2009
Posts: 10
P
ProjectB Offline OP
Newbie
ProjectB  Offline OP
Newbie
P

Joined: Jul 2009
Posts: 10
I have a generell and basic question. I read many tutorials and I really want to improve my skills in lite-c, but always when i want to run a script (it doesnt matter what a script, also the scripts from the tutorials) it shows me this message:


Error in 'MAIN' line 1: 'function' undeclared identifier

<function main()>

Can't compile SCRIPT01.C

etc.


I try many things, but I dont really understand this error. I dont use a function in line 1 and the name of my script isnt SCRIPT01.C

I also search for posts in this forum with a similar topic and at google, but find nothing what helps me.


Im still at the beginning and I really want to learn it. I hope you can help me.
Thanks.

Last edited by ProjectB; 07/25/09 17:31.
Re: general basic question [Re: ProjectB] #281155
07/25/09 17:57
07/25/09 17:57
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
make sure you always have
Code:
#include <acknex.h>
#include <default.c>

at the start of your projects

if you're including other files, they sometimes point to the wrong file / function

and make sure you're running the right script,
OPTIONS->PREFERENCES will show you which script you're actually running, the toolbar run buttons
Play current script <- use this for the script you're editting
Test Run <- use this for the one set in preferences
Debug Run <-as above

hopefully one of these will fix it

Re: general basic question [Re: MrGuest] #281160
07/25/09 18:08
07/25/09 18:08
Joined: Jul 2009
Posts: 10
P
ProjectB Offline OP
Newbie
ProjectB  Offline OP
Newbie
P

Joined: Jul 2009
Posts: 10
thanks thanks thanks

Now it works.
I ran the wrong script.
Thank you very much. Now I can go to the next step.

Last edited by ProjectB; 07/25/09 18:09.

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1