Gamestudio Links
Zorro Links
Newest Posts
Z9 getting Error 058
by k_ivan. 04/25/26 19:13
ZorroGPT
by TipmyPip. 04/25/26 16:09
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (AndrewAMD, Grant, valino), 3,361 guests, and 13 spiders.
Key: Admin, Global Mod, Mod
Newest Members
valino, juergenwue, VladMak, Geir, ondrej
19209 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: 1,034
Budapest
Aku_Aku Offline OP
Serious User
Aku_Aku  Offline OP
Serious User

Joined: Sep 2009
Posts: 1,034
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: 1,034
Budapest
Aku_Aku Offline OP
Serious User
Aku_Aku  Offline OP
Serious User

Joined: Sep 2009
Posts: 1,034
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: 938
Spirit Offline

Moderator
Spirit  Offline

Moderator

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


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