Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Joey, flink, AndrewAMD), 1,226 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Can someone check this code [syntax error][solved] #405743
08/06/12 16:50
08/06/12 16:50
Joined: Sep 2010
Posts: 82
P
peteredlin Offline OP
Junior Member
peteredlin  Offline OP
Junior Member
P

Joined: Sep 2010
Posts: 82
Hello,
I work on a project with multiple files. But when i try to run the main scripts i get an syntax error in a included script.
Header file:
Code:
STRING* ChasisModel = "";
ENTITY* Chasis;
VECTOR* ChasisPosition;



Scripit file (used for configuration):
Code:
ChasisModel = "Chasis.mdl";


//Wheeled section
axles = 3

//first axle
Wheels[1] = "FrontWheel.mdl";
WheelParrent[1] = chasis;

//second axle
Wheels[2] = "RearWheel.mdl";
WheelParrent[2] = chasis;

//third axle
Wheels[3] = "RearWheel.mdl";
WheelParrent[3] = chasis;



Last edited by peteredlin; 08/06/12 17:13.
Re: Can someone check this code [syntax error] [Re: peteredlin] #405745
08/06/12 16:56
08/06/12 16:56
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
i hope your config file isn't just that
you have to alter the variables in a function, so just wrap a function around the whole config file

this should work, but mind that you shouldn't define any functions in the config.c and also all variables declared there are local!
Code:
function config_mygame()
{
#include "config.c"
}




Visit my site: www.masterq32.de
Re: Can someone check this code [syntax error] [Re: MasterQ32] #405746
08/06/12 17:12
08/06/12 17:12
Joined: Sep 2010
Posts: 82
P
peteredlin Offline OP
Junior Member
peteredlin  Offline OP
Junior Member
P

Joined: Sep 2010
Posts: 82
Thx for the quick help, but i found the problem allready..
It was a forgotten ";" in a previous included script.
Delete this post pls.


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