Quote:
Originally Posted by DustyPorViva
Secondly, it seems it does not properly support variables:
temp.pl = new TServerPlayer("DustyPorViva");
Works.
temp.a = "DustyPorViva";
temp.pl = new TServerPlayer(temp.a);
Does not.
temp.a = "DustyPorViva";
temp.pl = new TServerPlayer((@temp.a));
Does work, however.
|
This is more than likely intended behaviour. If you pass it a plain variable, you are telling GScript that you want it to instantiate in
temp.a, which is precisely the same way that you can instantiate GUI controls. Using
(@ temp.a) is forcing a string to be returned.