Jump to content




[self-made pass-edit] [help] [solved. delete?]


  • You cannot reply to this topic
9 replies to this topic

#1 Goof

  • Members
  • 751 posts

Posted 07 December 2012 - 09:31 AM

Hello :D/>


Can anyone tell me why this doesnt work? it doesnt tell me any errors... it actually works fine, if i do not input extra word:

Spoiler

i want, when i type in:

> pass edit
-- then it will display this:
Do you want to edit your current password?
Y or N > -- i cant come to this part.. before the problem is solved...





no pastebin:
Spoiler

pastebin:

Thanks in advance.

PS: This is being used in my AdvLock.. so i really need to get this solved...
____________________
-Mikk809h

ComputerCraft is awesome

Try my Computer lock, called "AdvLock"...

http://www.computercraft.info/forums2/index.php?/topic/6683-advlock-v-13pr1-lock-your-computer-with-advanced-technology-updated/

#2 bjornir90

  • Members
  • 378 posts
  • LocationFrance

Posted 07 December 2012 - 09:41 AM

Why there is a return at line 32 ? You call a return outside a function, it's maybe because of that you can't reach the edit part of your program. Also you can use an elseif instead of if on line 35.

#3 Goof

  • Members
  • 751 posts

Posted 07 December 2012 - 09:45 AM

ehm.. when i edited, to that, i still just got nothing....

code :
http://pastebin.com/Sd56Vacn


still doesnt work.. still just saying

Usage: pass <function>

#4 bjornir90

  • Members
  • 378 posts
  • LocationFrance

Posted 07 December 2012 - 10:12 AM

Put an else after the is tArgs == "edit" with a print("You don't type edit") or something like that so you will know if it match or not.

#5 Goof

  • Members
  • 751 posts

Posted 07 December 2012 - 11:05 AM

This is now solved.. Or actually not, but i just edited it to ask,

> pass

type "edit" to edit the current password

input > edit
-- then it works fine, now.
but thanks for the quick response... That was realy apreciated.

thanks

#6 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 07 December 2012 - 11:19 AM

In response to the edited topic title, we generally don't delete solved questions, so that others using the search function would be able to find existing answers to their questions.

#7 Goof

  • Members
  • 751 posts

Posted 07 December 2012 - 11:53 AM

But the code is just "sad" and still not working... But i cannot post full code of AdvLock, because, that would be bad, and then everyone will be able to edit and copy it, and modify it as their own code. but okay. Then the topic will still stay open D:


Thanks

-Mikk809h

#8 Dlcruz129

    What's a Lua?

  • Members
  • 1,423 posts

Posted 07 December 2012 - 01:03 PM

We're not gonna steal your code. Just let us know what the problem is so we can help.

#9 Goof

  • Members
  • 751 posts

Posted 07 December 2012 - 07:20 PM

But as the topic said, its now solved... I can poste the "pass" program, but not the full code for AdvLock.

i will post pass code ASAP


thanks

-mikk809h

#10 Goof

  • Members
  • 751 posts

Posted 07 December 2012 - 07:32 PM

the Pass code...


http://pastebin.com/dzwBLak3





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users