Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 12,672 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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 | 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