StrToHex
#4

Quote:
Originally Posted by Naruto_Emilio
Посмотреть сообщение
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?
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)
Reply


Messages In This Thread
StrToHex - by Zh3r0 - 17.10.2011, 19:42
Re : StrToHex - by Naruto_Emilio - 17.10.2011, 19:50
Re: StrToHex - by ServerScripter - 17.10.2011, 19:51
Re: Re : StrToHex - by Zh3r0 - 17.10.2011, 19:57
Re : Re: Re : StrToHex - by Naruto_Emilio - 17.10.2011, 19:59

Forum Jump:


Users browsing this thread: 1 Guest(s)