Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
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
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
3 registered members (Martin_HH, steyr, alibaba), 509 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
FCOS #147819
08/14/07 08:08
08/14/07 08:08
Joined: Mar 2004
Posts: 281
England
frescosteve Offline OP
Member
frescosteve  Offline OP
Member

Joined: Mar 2004
Posts: 281
England
Hi, I am experiencing some trouble when trying to get a function to take a panel as a parameter and use fcos() or cos() to calculate the number needed.

Do panel pointers not work anymore? I read in the manual that they "are" supported but the engine is chucking up an error saying "parameter not known _arg1 parameter"

here is the code:
Code:

string Cx_corner;
PANEL* Cx_panel_name;
bmap* Cx_bmap_name;
var Cx_angle = 0;

function CoFinderX(Cx_panel_name,Cx_bmap_name,Cx_corner){
wait(1);
if(Cx_corner == "TLeft"){
return(0);
}
if(Cx_corner == "TRight"){
Cx_angle = -Cx_panel_name.angle;
temp = fcos(Cx_angle,bmap_width(Cx_bmap_name));
return(temp);
}
}



Re: FCOS [Re: frescosteve] #147820
08/16/07 01:59
08/16/07 01:59
Joined: Mar 2004
Posts: 281
England
frescosteve Offline OP
Member
frescosteve  Offline OP
Member

Joined: Mar 2004
Posts: 281
England
any clues?


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