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
1 registered members (Dico), 16,767 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
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 | 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