12.08.2012, 04:59
nice one +rep
Getting a very strange bug. Says that the file is in use, but it is not in use by anything. (Running processes included below)
http://oi47.tinypic.com/2rr2k5h.jpg |
This is an amazing program, but it's just simply TOO much. It takes more time to script with this than it does with the regular pawno becuase of all the code hiding and auto-detection of colors and such, it just takes up way mroe time. I think this would help beginners, but not someone like me who scripts rather fast paced. Also the program is very laggy.
Anyways, nice job. |
What is Scripting Machine using to not let me open it without internet access?
|
Public Function LoadImageFromURL(ByVal url As String) As Image Try Dim Web As New System.Net.WebClient Dim Img As Byte() = Web.DownloadData(url) Dim mStream As New MemoryStream(Img) Return Image.FromStream(mStream) Catch ex As Exception Return My.Resources.N_A End Try End Function
It have a function to download images form a custom web (for skins, vehicles, etc).
If you want to see it: (It's inside Functions.vb) Код:
Public Function LoadImageFromURL(ByVal url As String) As Image Try Dim Web As New System.Net.WebClient Dim Img As Byte() = Web.DownloadData(url) Dim mStream As New MemoryStream(Img) Return Image.FromStream(mStream) Catch ex As Exception Return My.Resources.N_A End Try End Function |