/chr
mIRC Code
+ 0 likes
Please Register to submit score.
| Average Score | 4.8 |
| Scores Submitted | 4 |
| Date Added | Aug 16, 2005 |
| Last Updated | Sep 23, 2005 |
| Tags | ascii character |
|
|
Introduction
Example: /chr A would return 65.
Very simple, small code, and can be done manually, but it makes it a bit easier.
mIRC Snippet:
/chr
Posted on Aug 16, 2005 4:37 pm
Posted on Aug 16, 2005 4:37 pm
like xdaemon said, the script with iif would look like:
alias chr {
var %asc = $iif($1,$v1,$$?="Character to find value of:")
echo -a The ascii value of %asc is $asc(%asc) $+ .
}
the reason to still set the variable is due to the fact that you repeat the variable twice in the echo sentence, making this way the shortest
alias chr {
var %asc = $iif($1,$v1,$$?="Character to find value of:")
echo -a The ascii value of %asc is $asc(%asc) $+ .
}
the reason to still set the variable is due to the fact that you repeat the variable twice in the echo sentence, making this way the shortest
mIRC Snippet:
/chr
Posted on Aug 17, 2005 8:28 pm
Posted on Aug 17, 2005 8:28 pm
Well, it seems like people are rating snippets anymore just by the way the code is. Sure, if it's nasty you can deduct a point or 2, but really, if it works, you shouldn't deduct points just because it's not your style of scripting.




