Posts: 1,297
Threads: 17
Joined: Apr 2011
pawn Код:
Description:
StrToHex function allow you to easily convert a string to its hex value.
Syntax:
hexstring = StrToHex(String)
Example:
<%
Response.Write StrToHex("Nice code")
'--- returns: 4E69636520636F6465
%>
ASP Source Code:
<%
Function StrToHex(ByRef Str)
Dim Length
Dim Max
Dim strHex
Max = Len(Str)
For Length = 1 To Max
strHex = strHex & Right("0" & Hex(Asc(Mid(Str, Length, 1))), 2)
Next
StrToHex = strHex
End function
%>
Your talking about this?
Posts: 635
Threads: 170
Joined: Jun 2011
Reputation:
0
"StrToHex" what is it ? Variable/FS/... ?
Posts: 1,297
Threads: 17
Joined: Apr 2011
Quote:
Originally Posted by Zh3r0
Mostly for colors actually.. I found that on ****** too but have absolute no idea how to convert it to pawn.
But nevermind, got another way. Sorry for creating a uselesss topic.
(I needed it for 0Sprites Editor which will be released tomorrow)
|
Alright, good luck
.