Hallo,
was mache ich falsch, bzw. warum funktioniert das nicht.
entity* test; // Panel-Entity
bmap test_pcx = <test.pcx>;
string test_string[80];
panel test_panel {
bmap = test_pcx;
layer = 3; pos_x = 0; pos_y = 0;
}
function main() {
str_cpy(test_string,"test_panel");
test = test_string;
test.visible = on;
oder
test = test_panel;
test.visible = on;
oder
test = "test_panel";
test.visible = on;
oder
test = handle ("test.panel");
test.visible = on;
test = handle (test.panel);
test.visible = on;
oder
str_cpy(test_string,"test_panel");
test = handle (test_string);
test.visible = on;
}
Nicht eine Variante funktioniert.
Vielen Dank