Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,038 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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 | 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