Gamestudio Links
Zorro Links
Newest Posts
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
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, dpn), 1,328 guests, and 10 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19053 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