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 (juanex, AndrewAMD), 988 guests, and 8 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
[Solved] syntax error my.POLYGON = ON; #299218
11/22/09 12:29
11/22/09 12:29
Joined: Sep 2009
Posts: 987
Budapest
Aku_Aku Offline OP
User
Aku_Aku  Offline OP
User

Joined: Sep 2009
Posts: 987
Budapest
Hi!

I use 3DGS 7.80

Example from the manual.3sgamestudio.net:
Code:
action boulder()
{
  my.POLYGON = ON; // now using the polygonal shape of the model
  set(my,POLYGON);
  ...


My lite-C code is:
Code:
action player_move1() // control the player
{
	my.POLYGON = ON;
	...
}
...
padlo1=ent_create("padlo.mdl", vector(510, 20, 30), player_move1);


I'vw got this message:
Quote:
Error in 'includes\main_routines.c' line 383: syntax error
< my.POLYGON = ON;
>


Somebody please to explain to me what did i wrong.
Thanks in advance.

Last edited by Aku_Aku; 11/22/09 17:15.
Re: syntax error my.POLYGON = ON; [Re: Aku_Aku] #299228
11/22/09 13:39
11/22/09 13:39
Joined: Oct 2009
Posts: 149
Germany
M
muffel Offline
Member
muffel  Offline
Member
M

Joined: Oct 2009
Posts: 149
Germany
You are using lite-C code. There you must use
set(me,POLYGON) instead of my.POLYGON = ON
my.POLYGON = ON works only in C-script.

muffel

Re: syntax error my.POLYGON = ON; [Re: muffel] #299282
11/22/09 17:15
11/22/09 17:15
Joined: Sep 2009
Posts: 987
Budapest
Aku_Aku Offline OP
User
Aku_Aku  Offline OP
User

Joined: Sep 2009
Posts: 987
Budapest
Thanks muffel, for the quick reply.
Based on that i figured out what was seductive for me: the first line of the attribute setting wasn't marked as C-Script syntax, and and the second marked as lite-C syntax.

Re: syntax error my.POLYGON = ON; [Re: Aku_Aku] #299283
11/22/09 17:29
11/22/09 17:29
Joined: Sep 2003
Posts: 928
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 928
When the languages differ its marked with colors in the manual, green is lite-C and red is C-Script.


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