Anyone know what happened to vcmp.liberty-unleashed.co.uk? It's only shows blank page.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: ysc3839 on Aug 08, 2015, 06:42 AMA very simple HTTP request.Thanks ysc!function HTTP()
{
Socket <- NewSocket("DataFunc");
Socket.SetNewConnFunc("ConnFunc");
Socket.Connect("www.example.com", 80)
}
function DataFunc(data)
{
print(data);
}
function ConnFunc()
{
local request = @"GET / HTTP/1.1
Host: www.example.com
";
Socket.Send(request);
}
Quote from: S.L.C on Jul 22, 2015, 01:17 PMHmm okay...Quote from: vcmptr on Jul 22, 2015, 01:10 PMYou are man!
But that's what it says on my profile, doesn't it?
Quote from: S.L.C on Jul 22, 2015, 11:30 AMYou guys know you can backup the original print and overwrite it with your own without needing to change everything in your script to use `print2`. Like this example:You are man! Thanks! I will update script.local PrintBackup = print;
print <- function(msg)
{
PrintBackup("Now calling the actual print");
PrintBackup(msg);
}
print("Testing overwrite");
Thus, allowing you to implement a fragmented print function.local PrintBackup = print;
print <- function( msg )
{
for (local n = 0, m = msg.len(); n < m; n += 512)
{
if ( (n + 512) > m )
PrintBackup( msg.slice( n ) );
else
PrintBackup( msg.slice( n, (n + 512) ) );
}
}
In case the issue is unbearable. I never had to deal with strings that long tbh
function PrintSlicer()
{
local PrintBackup = print;
print <- function(string)
{
if(string!=null)
{
string = ""+string+""
if(string.len()>512)
{
local x = string.len()/512;
local cpt = 0;
for(local i = 0; i != x; i++)
{
cpt += 512;
PrintBackup(string.slice(cpt-512, cpt));
}
PrintBackup(string.slice(cpt, (cpt+(string.len()%512))));
PrintBackup("Sliced prints ("+(x+1)+" slices) ");
}
else PrintBackup(string);
}
}
}
How to apply?Quote from: S.L.C on Jul 14, 2015, 11:41 AMQuote from: vcmptr on Jul 14, 2015, 11:38 AMSomeone explain me what does mean happy minute?
Is that moment when you realize how stupid this topic really is and you end up laughing for a minute or so It's called "happy minute" or "happy minute(s)" in some cases.
Quote from: subhamrocks on Jul 14, 2015, 11:59 AMThanks.Quote from: vcmptr on Jul 14, 2015, 11:38 AMSomeone explain me what does mean happy minute?Is That Moment in VCCNR Server When a robbber rob a shop he got random cash.