Can't use:
SendEvent(mob, Struct { "type" := EVID_ALL_ATTACK_CMD, "source" := me, "target" := tgt } );
SendEvent(mob, Struct { "type" := EVID_ALL_ATTACK_
Moderator: POL Developer
No.... It is a problem in parameter passage
If I write:
var str := Struct { "type" := EVID_ALL_ATTACK_CMD, "source" := me, "target" := tgt };
SendEvent(mob, str);
it is ok but I don't' want waste memory space with variable used once time only....
SendEvent(mob, Struct { "type" := EVID_ALL_ATTACK_CMD, "source" := me, "target" := tgt } );
If I write:
var str := Struct { "type" := EVID_ALL_ATTACK_CMD, "source" := me, "target" := tgt };
SendEvent(mob, str);
it is ok but I don't' want waste memory space with variable used once time only....
SendEvent(mob, Struct { "type" := EVID_ALL_ATTACK_CMD, "source" := me, "target" := tgt } );
define and declare struct inside function call
Ehm... some news from staff?
It is normal I cant use sintax like this?
It is normal I cant use sintax like this?
Code: Select all
call_funcion(par1, Struct { "member1" := value1, "member2" := value2 });
Have you tried declaring struct without quotes?
Code: Select all
SendEvent(mob, Struct{ type := EVID_ALL_ATTACK_CMD, source := me, target := tgt } );
If I use
instead of
it'ok....
Anymore I have tryed use syntax
instead of
years ago with pol096 but was no correct.
Whithout quote is not correct also the syntax:
Code: Select all
var str := Struct { "member1" := value1, "member2" := value2 };
call_funcion(par1, str);
Code: Select all
call_funcion(par1, Struct { "member1" := value1, "member2" := value2 });
Anymore I have tryed use syntax
Code: Select all
Struct { member1 := value1, member2 := value2 });
Code: Select all
Struct { "member1" := value1, "member2" := value2 });
Whithout quote is not correct also the syntax:
Code: Select all
var str := Struct { member1 := value1, member2 := value2 };
call_funcion(par1, str);