Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
2 registered members (Quad, AndrewAMD), 1,007 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 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,365
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,365
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: 987
Budapest
Aku_Aku Offline
User
Aku_Aku  Offline
User

Joined: Sep 2009
Posts: 987
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 | chip programmers | 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