Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,089 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
engine_callscript4 - Passing arguments #154087
09/14/07 15:31
09/14/07 15:31
Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
T
TWO Offline OP

Serious User
TWO  Offline OP

Serious User
T

Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
I try to pass a struct and a number to a function called with "engine_callscript4". Right now this looks like this

Code:

// Caller func
void Baa( long Foo, AG_Window* Window, var EventType )
{
if( Foo!=NULL )
{
engine_callscript4( Foo, Window, EventType, 0, 0 );
}
}

// Called func
void xXx( AG_Window* Window, var EventType )
{
printf( "%d", EventType );
}



I know that this can't work, so my question is how to pass a copy of the class and a var to the function.

Thanks in advance.

Re: engine_callscript4 - Passing arguments [Re: TWO] #154088
09/15/07 17:07
09/15/07 17:07
Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
T
TWO Offline OP

Serious User
TWO  Offline OP

Serious User
T

Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
Solved, the var-argument has to be the first argument.


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