Gamestudio Links
Zorro Links
Newest Posts
Zorro version 3.0 prerelease!
by Grant. 02/24/26 22:21
WFO Training with parallel cores Zorro64
by Martin_HH. 02/24/26 19:51
ZorroGPT
by TipmyPip. 02/23/26 21:52
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (TipmyPip, Quad), 6,365 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
Cant compile script01.c ??? HELP #317853
04/03/10 03:53
04/03/10 03:53
Joined: Apr 2010
Posts: 11
R
rekore Offline OP
Newbie
rekore  Offline OP
Newbie
R

Joined: Apr 2010
Posts: 11
ok so I got the program today and went to the tutorial. Which told me to open up script01.c so I did and got this error.

Compiling SCRIPT01.C...
error in 'MAIN' line 1: 'Function' undeclared identifier
< function main() >
Cant compile SCRIPT01.C
start-up failure- press any key to abort

I have also tried to load the other scripts and always with this result
plz help me out I'm new at this

Last edited by rekore; 04/03/10 03:53.
Re: Cant compile script01.c ??? HELP [Re: rekore] #317855
04/03/10 04:28
04/03/10 04:28
Joined: Jul 2008
Posts: 168
8
82RJZAE Offline
Member
82RJZAE  Offline
Member
8

Joined: Jul 2008
Posts: 168
Add the Acknex header to your script first before you define anything else:
Code:
#include <acknex.h>
#include <default.c>



Re: Cant compile script01.c ??? HELP [Re: 82RJZAE] #317856
04/03/10 04:42
04/03/10 04:42
Joined: Apr 2010
Posts: 11
R
rekore Offline OP
Newbie
rekore  Offline OP
Newbie
R

Joined: Apr 2010
Posts: 11
Im not completely sure I am doing it right but it is not changing.

Re: Cant compile script01.c ??? HELP [Re: rekore] #317857
04/03/10 05:13
04/03/10 05:13
Joined: Jul 2008
Posts: 168
8
82RJZAE Offline
Member
82RJZAE  Offline
Member
8

Joined: Jul 2008
Posts: 168
Could you post the entire script?

Re: Cant compile script01.c ??? HELP [Re: 82RJZAE] #317888
04/03/10 12:54
04/03/10 12:54
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
change Function in function

Re: Cant compile script01.c ??? HELP [Re: Widi] #317890
04/03/10 13:03
04/03/10 13:03
Joined: May 2009
Posts: 5,377
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,377
Caucasus
Should looks like this:

Code:
#include <acknex.h>
#include <default.c>

function main()
{
	///
	wait(3);
}



I'm sure you forgot to put include files before main


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Cant compile script01.c ??? HELP [Re: rekore] #317917
04/03/10 16:46
04/03/10 16:46
Joined: Sep 2009
Posts: 1,034
Budapest
Aku_Aku Offline
Serious User
Aku_Aku  Offline
Serious User

Joined: Sep 2009
Posts: 1,034
Budapest
Use lowercase letters when you write down/type in the word: function

Re: Cant compile script01.c ??? HELP [Re: Aku_Aku] #317930
04/03/10 18:21
04/03/10 18:21
Joined: Apr 2010
Posts: 11
R
rekore Offline OP
Newbie
rekore  Offline OP
Newbie
R

Joined: Apr 2010
Posts: 11
ok thx guys i will try it

Re: Cant compile script01.c ??? HELP [Re: rekore] #317932
04/03/10 18:22
04/03/10 18:22
Joined: Apr 2010
Posts: 11
R
rekore Offline OP
Newbie
rekore  Offline OP
Newbie
R

Joined: Apr 2010
Posts: 11
But isn't it weird that the tutorial would require this much editing to show you a sample. I mean its the oguide from this site... I don't know.

Last edited by rekore; 04/03/10 18:23.
Re: Cant compile script01.c ??? HELP [Re: rekore] #317934
04/03/10 18:26
04/03/10 18:26
Joined: Apr 2010
Posts: 11
R
rekore Offline OP
Newbie
rekore  Offline OP
Newbie
R

Joined: Apr 2010
Posts: 11
function main()

level_load("small.hmp");
ent_create("earth.mdl", vector(10, 20, 30), NULL);

thats the entire code. Its a direct download from this site from atari.

Page 1 of 3 1 2 3

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