TEXT.pstring vs. inkey

Posted By: fogman

TEXT.pstring vs. inkey - 03/21/08 13:20

I´ve this snippet of code:

Code:

action bla()
{
TEXT* txtMyText;
txtMyText = txt_create(3,13);

wait(1);
set(txtMyText, VISIBLE);
inkey((txtMyText.pstring)[0]);
}



And all I get is an "acknex.exe has encountered a problem and needs to close".
Any ideas what´s wrong here?
Posted By: zazang

Re: TEXT.pstring vs. inkey - 03/21/08 13:40

Logically it looks ok,but I think I had encountered a similar problem wherein I couldn't use a text pstring like a normal string.
Posted By: hack-panther

Re: TEXT.pstring vs. inkey - 03/21/08 14:04

Der String muss erstmal gefüllt werden...

Code:
str_cpy((txtMyText.pstring)[0], "#100");



Dann sollte es gehen....
Posted By: fogman

Re: TEXT.pstring vs. inkey - 03/21/08 14:33

Vielen Dank. Für´s nächste mal weiss ich bescheid.
© 2024 lite-C Forums