strange that no one else is experiencing this:
the first time I type /epenis, it sends
quote:
Based on my uptime, my e-Penis is 0.003 inches (0.00762 cm) erect! My largest erection ever was 0.003 inches (0.00762 cm)!
but the second time and from there on is sends
quote:
Based on my uptime, my e-Penis is 0.0055 inches (0.01397 cm) erect! My largest erection ever was 0,003 inches (NaN cm)!
Untill I uninstall the script or delete the 'Record' value in the registry..
there's no error message whatsoever
To recreate the bug:
Uninstall and then install the script, type /epenis and then again /epenis in any convo
or simply delete the 'Record' value in the registry, then type /epenis, and /epenis again
Edit: I've found the bug
![:cheesy:](images/smilies/xso_cheesy.gif)
The problem was that the 'inch' variable couldn't properly be saved in the registry as a string, because it was a number. Two tiny additions to the CheckRecord(inch) function fixes that
code:
function CheckRecord(inch)
{
var WSH = new ActiveXObject('WScript.Shell');
try {
var Record = WSH.RegRead(MsgPlus.ScriptRegPath + Messenger.MyEmail + '\\Record');
}
catch(exception){
WSH.RegWrite(MsgPlus.ScriptRegPath + Messenger.MyEmail + '\\Record', inch + ""); // added +"" to convert the number to a string
Record = inch;
}
if(Record < inch)
{
WSH.RegWrite(MsgPlus.ScriptRegPath + Messenger.MyEmail + '\\Record', inch + ""); // added +"" to convert the number to a string
Record = inch;
}
return Record;
}