Gamestudio Links
Zorro Links
Newest Posts
zorro license, IB connection
by miwok. 12/06/23 16:32
Newbie Questions
by fairtrader. 12/06/23 11:29
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
6 registered members (miwok, AndrewAMD, TipmyPip, 3run, Quad, 1 invisible), 645 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 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