Register Script and Gump - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Register Script and Gump (/Thread-Register-Script-and-Gump) |
Register Script and Gump - larmc20 - 06-02-2013 05:00 AM Hello Guys, I have made a gump register menu but I have a doubt. How can I make the OKAY button to, when pressed, record the lines and save in a SCP file on Accounts folder? To save a list like login Password Full Name (Nome Completo) Rg (Personal Brazilian Id) Can you Help me doing that? Have a look PHP Code: // Created 01/06/2013 15:48:03, with Gump Studio. I was thinking doing like PHP Code: [DIALOG d_cadastros button] But How can I do to the button take the words which fill those TEXT ENTRIES and save in the file? RE: Register Script and Gump - Mordaunt - 06-02-2013 06:18 AM Your text entries are recorded as: <ARGTXT[0]> <ARGTXT[1]> <ARGTXT[2]> RE: Register Script and Gump - larmc20 - 06-02-2013 06:35 AM Well, so let me try, see if its correct please. PHP Code: [DIALOG d_cadastros button] RE: Register Script and Gump - Mordaunt - 06-02-2013 12:15 PM You shouldn't need to tag them honestly Code: WRITEFILE CONTAS/<TAG.CONTAS>.scp NAME=<ARGTXT[1]> should work fine. RE: Register Script and Gump - larmc20 - 06-02-2013 03:40 PM Still not working =//... It is not creating the file in the folder contas. I tried to change the name of the file.scp but still not working =//! [DIALOG d_cadastros button] ON=0 // Button 1 // wRITEFILE CONTAS/cadastros.scp NAME=<ARGTXT[1]> WRITEFILE CONTAS/Cadastros.scp EMAIL=<ARGTXT[2]> WRITEFILE CONTAS/Cadastros.scp RG=<ARGTXT[3]> RE: Register Script and Gump - Rattlehead - 06-02-2013 06:23 PM first of all, the folder has to exist, if there is no folder, then u will get an error second, why keep the name of the folder in a tag?? seems like to me the folder name will always be the same anyway, correct me if i am wrong. third, are you sure you have the correct folder name saved in 'tag.contas' ? you should try; WRITEFILE cadastros.scp NAME=<ARGTXT[1]> WRITEFILE Cadastros.scp EMAIL=<ARGTXT[2]> WRITEFILE Cadastros.scp RG=<ARGTXT[3]> just to see if it works, this will end up in ur main sphere folder, if it does, then you have folder naming issues. RE: Register Script and Gump - larmc20 - 06-03-2013 01:22 AM Hey mates, It worked really fine... Thank you so much. I have done like [DIALOG d_cadastros button] ON=0 WRITEFILE cadastros.scp Conta=<src.account> wRITEFILE cadastros.scp NAME=<ARGTXT[1]> WRITEFILE Cadastros.scp EMAIL=<ARGTXT[2]> WRITEFILE Cadastros.scp RG=<ARGTXT[3]> Now I can see the account; NAME; E-MAIL; RG(PERSONAL ID) in a file... Thank you both RE: Register Script and Gump - babazar - 07-17-2013 11:46 PM do u have an english version? |