P44RTHURN4X
Junior Member
Posts: 35
Threads: 16
Joined: Apr 2012
Reputation:
0
|
Please help!!!!
I need help! I am making some new test script-maps and I don't know the right syntaxtype for the script:
SetLanternLitCallback("blabla");
}
...
void blabla(???????)
{
script
script
script
}
In the Games Wiki is that:
void SetLanternLitCallback(string& asCallback);
Sets the function to call when the player uses his lantern.
Callback syntax: MyFunc(bool abLit)
What is bool abLit? true/false? Or Lit/NotLit?
Pleeeeeease help quickly!
GReeZe' P44
|
|
06-01-2012, 07:38 PM |
|
stonecutter
Member
Posts: 140
Threads: 17
Joined: Feb 2011
Reputation:
4
|
RE: Please help!!!!
bool everytime means true or false !
|
|
06-01-2012, 07:39 PM |
|
P44RTHURN4X
Junior Member
Posts: 35
Threads: 16
Joined: Apr 2012
Reputation:
0
|
RE: Please help!!!!
That's not right!
with:
void blabla(true)
{
scripts
scripts
}
need another syntax!
|
|
06-01-2012, 07:48 PM |
|
Your Computer
SCAN ME!
Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation:
235
|
RE: Please help!!!!
You're mistaking definition with execution.
|
|
06-01-2012, 07:56 PM |
|
P44RTHURN4X
Junior Member
Posts: 35
Threads: 16
Joined: Apr 2012
Reputation:
0
|
RE: Please help!!!!
ok it's made!
void blabla(string &in asTrue)
{
...
}
thanks anyway
|
|
06-01-2012, 07:59 PM |
|
Your Computer
SCAN ME!
Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation:
235
|
RE: Please help!!!!
You'll be back.
|
|
06-01-2012, 08:06 PM |
|
P44RTHURN4X
Junior Member
Posts: 35
Threads: 16
Joined: Apr 2012
Reputation:
0
|
RE: Please help!!!!
Yes, ehm it doesn't work!
I tried yet:
void blabla(string &in asTrue)
{
...
}
and
void blabla(string &in asFalse)
{
...
}
Both does not work! What now?
|
|
06-02-2012, 12:48 PM |
|
Your Computer
SCAN ME!
Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation:
235
|
RE: Please help!!!!
The syntax requires a boolean parameter. You have a string.
|
|
06-02-2012, 01:07 PM |
|
Stepper321
Senior Member
Posts: 263
Threads: 26
Joined: Nov 2011
Reputation:
8
|
RE: Please help!!!!
The callback func is:
MyFunc(bool abLit) so you have to USE
MyFunc(bool abLit)
Signature to awesome to be displayed.
|
|
06-02-2012, 01:27 PM |
|