Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 06/30/24 02:01
Lapsa's very own thread
by Lapsa. 06/26/24 12:45
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (bigsmack, rki), 1,161 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mino, squik, AemStones, LucasJoshua, Baklazhan
19061 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 4 of 4 1 2 3 4
Re: Problem !!! [Re: Mafia_IR] #346488
11/06/10 12:21
11/06/10 12:21
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
try to use a pointer instead of a vector
VECTOR* path_nodepos = { x=0;y=0;z=0;}


Visit my site: www.masterq32.de
Re: Problem !!! [Re: MasterQ32] #346490
11/06/10 12:28
11/06/10 12:28
Joined: Aug 2010
Posts: 131
Iran
Mafia_IR Offline OP
Member
Mafia_IR  Offline OP
Member

Joined: Aug 2010
Posts: 131
Iran
When i use pointer instead of a vector , I have an other error :

can't initialize global structs in functions .
< VECTOR* path_nodepos = { x=0;y=0;z=0;}>

Re: Problem !!! [Re: Mafia_IR] #346492
11/06/10 13:02
11/06/10 13:02
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
then you should do this:
VECTOR path_nodepos;
function set_path_nodepos()
{
vec_set(path_nodepos,vector(0,0,0));
}


Visit my site: www.masterq32.de
Re: Problem !!! [Re: MasterQ32] #346497
11/06/10 14:16
11/06/10 14:16
Joined: Aug 2010
Posts: 131
Iran
Mafia_IR Offline OP
Member
Mafia_IR  Offline OP
Member

Joined: Aug 2010
Posts: 131
Iran
Look at this :

http://up.iranblog.com/Files73/8f0c19870a17483d9f18.png

line 136

Code:
path_nodepos(my,node,my.skill20);



Re: Problem !!! [Re: Mafia_IR] #346498
11/06/10 14:22
11/06/10 14:22
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
cou can't name any variable like a function


Visit my site: www.masterq32.de
Re: Problem !!! [Re: MasterQ32] #346499
11/06/10 14:28
11/06/10 14:28
Joined: Aug 2010
Posts: 131
Iran
Mafia_IR Offline OP
Member
Mafia_IR  Offline OP
Member

Joined: Aug 2010
Posts: 131
Iran
i am send code for you with P.M .

Last edited by Mafia_IR; 11/06/10 14:34.
Re: Problem !!! [Re: Mafia_IR] #346505
11/06/10 15:22
11/06/10 15:22
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
You're not actually showing what's on line 136 in the image, though line 115 and 117 will cause a few problems.

You've also only declared VECTOR path_nodepos in set_path_node function and not in the patrol_path action where you're trying to call it, (from what is shown).

Re: Problem !!! [Re: MrGuest] #346510
11/06/10 16:32
11/06/10 16:32
Joined: Aug 2010
Posts: 131
Iran
Mafia_IR Offline OP
Member
Mafia_IR  Offline OP
Member

Joined: Aug 2010
Posts: 131
Iran
what is your Idea for solve this problem ?

Re: Problem !!! [Re: Mafia_IR] #346514
11/06/10 17:38
11/06/10 17:38
Joined: Oct 2004
Posts: 900
Lgh
rojart Offline
User
rojart  Offline
User

Joined: Oct 2004
Posts: 900
Lgh
See here and search for VECTOR*

Quote:
Declaring global struct pointers (f.i. VECTOR* v = {x=1;y=2;z=3;} ) inside functions will now issue an error message.

Try outside.


Regards, Robert

Quote
Everything should be made as simple as possible, but not one bit simpler.
by Albert Einstein

PhysX Preview of Cloth, Fluid and Soft Body

A8.47.1P
Page 4 of 4 1 2 3 4

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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