Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (dr_panther, 1 invisible), 620 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to reset string's input? #397338
03/17/12 21:40
03/17/12 21:40
Joined: Nov 2009
Posts: 70
Siwler Offline OP
Junior Member
Siwler  Offline OP
Junior Member

Joined: Nov 2009
Posts: 70
I have two strings, sring1 has preset value and string2 value has to be typed in to check if its the same as string1's value.

When I type in the correct value for string2 and door unlocks, value(numbers typed in) stay on screen.

What code do I need to reset string2's inputted value to none, so it don't show on screen?


Honesty will get you far, were dishonesty will get you only so far in life.

Re: How to reset string's input? [Re: Siwler] #397339
03/17/12 21:52
03/17/12 21:52
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
for reset the string:
Code:
string2 = str_create("#4"); // a string of 4 spaces

or:

str_cpy (string2,"    ");


for hide the text from screen, reset the SHOW-flag of this text.

Last edited by Widi; 03/17/12 21:55.
Re: How to reset string's input? [Re: Widi] #397343
03/17/12 22:14
03/17/12 22:14
Joined: Nov 2009
Posts: 70
Siwler Offline OP
Junior Member
Siwler  Offline OP
Junior Member

Joined: Nov 2009
Posts: 70
Thank you so much.

I was looking at the str_cpy in the code that I was working on but I just couldn't put 2 and 2 together and use it.
LOL, I suck at this. laugh

Thank you again.

Last edited by Siwler; 03/17/12 22:19.

Honesty will get you far, were dishonesty will get you only so far in life.


Gamestudio download | chip programmers | 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