Gamestudio Links
Zorro Links
Newest Posts
Camera always moves upwards?
by clonman. 11/13/25 14:04
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
ZorroGPT
by TipmyPip. 11/10/25 11:04
Training with the R bridge does not work
by frutza. 11/05/25 00:46
Zorro 2.70
by opm. 10/24/25 03:44
Alpaca Plugin v1.4.0
by TipmyPip. 10/20/25 18:04
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (Grant, AndrewAMD, ozgur, Quad, TipmyPip), 29,980 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sheliepaley, Blueguy, blobplayintennis, someone2, NotEBspark
19177 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
TEXT.pstring vs. inkey #189781
03/21/08 13:20
03/21/08 13:20
Joined: Apr 2005
Posts: 4,506
Germany
F
fogman Offline OP
Expert
fogman  Offline OP
Expert
F

Joined: Apr 2005
Posts: 4,506
Germany
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?


no science involved
Re: TEXT.pstring vs. inkey [Re: fogman] #189782
03/21/08 13:40
03/21/08 13:40
Joined: Oct 2003
Posts: 702
Z
zazang Offline
User
zazang  Offline
User
Z

Joined: Oct 2003
Posts: 702
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.


I like good 'views' because they have no 'strings' attached..
Re: TEXT.pstring vs. inkey [Re: zazang] #189783
03/21/08 14:04
03/21/08 14:04
Joined: Oct 2002
Posts: 361
Germany Cologne
hack-panther Offline
Senior Member
hack-panther  Offline
Senior Member

Joined: Oct 2002
Posts: 361
Germany Cologne
Der String muss erstmal gefüllt werden...

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



Dann sollte es gehen....

Re: TEXT.pstring vs. inkey [Re: hack-panther] #189784
03/21/08 14:33
03/21/08 14:33
Joined: Apr 2005
Posts: 4,506
Germany
F
fogman Offline OP
Expert
fogman  Offline OP
Expert
F

Joined: Apr 2005
Posts: 4,506
Germany
Vielen Dank. Für´s nächste mal weiss ich bescheid.


no science involved

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1