PtokaX forum

Archive => Archived 5.1 boards => Help with scripts => Topic started by: frogger on 15 February, 2007, 16:17:47

Title: help with GetPassword 2.0c LUA 5 from Mutor
Post by: frogger on 15 February, 2007, 16:17:47
can someone modifiy the script, so it shows the user profile too?

like this:

original:


PassMsg = "Processed request from "..user.sName..".\r\n\r\n"..
"\t\t"..name.."'s password = "..pass.."\r\n\r\n"


modify to:


PassMsg = "Processed request from "..user.sName..".\r\n\r\n"..
"\t\t"..name.."'s password = "..pass.."\r\n\r\n"..
"\t\t"..name.."'s profile = "..prof.."\r\n\r\n


greez frogger (the jumper:)
Title: Re: help with GetPassword 2.0c LUA 5 from Mutor
Post by: bastya_elvtars on 15 February, 2007, 16:38:54
Code (lua) Select
PassMsg = "Processed request from "..user.sName..".\r\n\r\n"..
"\t\t"..name.."'s password = "..pass.."\r\n\r\n"..
"\t\t"..name.."'s profile = "..GetProfileName(user.iProfile).."\r\n\r\n
Title: Re: help with GetPassword 2.0c LUA 5 from Mutor
Post by: frogger on 16 February, 2007, 04:49:38
thanks bastya but this is the problem, wenn i use the following syntax ->  "..GetProfileName(user.iProfile).."
the user that was use the rightclick becomes the right answer about his profile, but when the admin it use for an other user (user has forgotten her account) then he becomes the right answer about his password but the profile from himself :(
Title: Re: help with GetPassword 2.0c LUA 5 from Mutor
Post by: bastya_elvtars on 16 February, 2007, 12:10:20
Need the whole code then.
Title: Re: help with GetPassword 2.0c LUA 5 from Mutor
Post by: frogger on 16 February, 2007, 12:56:40
it works perfect  :D
thanx Mutor and thanx bastya!
i wich a nice day...

greez frogger (the jumper:)