gmqcc/tests/fieldparams.qc

18 lines
250 B
C++
Raw Normal View History

2012-11-17 08:31:23 +00:00
.string a;
.string b;
..string ps;
2012-11-17 08:31:23 +00:00
void(entity e, .string s) callout = {
print(e.s, "\n");
};
void() main = {
local entity e;
e = spawn();
e.a = "foo";
e.b = "bar";
callout(e, b);
e.ps = a;
print(e.(e.ps), "\n");
2012-11-17 08:31:23 +00:00
};