Home » Renegade Discussions » Mod Forum » FTP Uploader script
FTP Uploader script [message #411355] |
Wed, 18 November 2009 18:09 |
|
Distrbd21
Messages: 743 Registered: September 2008
Karma:
|
Colonel |
|
|
Could someone help me on making a uploader script to add into Yarr bot or for SSGM plug in?
i don't want someone to just give it to me i would like to learn how to make it.
i was looking at this code.
Link with Wininet.lib
where does this one go?
where does this one go?
DWORD __stdcall Upload(void *)
{
printf("Start upload...\n");
HINTERNET intern = InternetOpen("YaRR", INTERNET_OPEN_TYPE_DIRECT, 0, 0, 0);
if(!intern)
{
printf("Unable to open an internet - %d\n", GetLastError());
return 0;
}
HINTERNET intern2 = InternetConnect(intern, "So my ftp host?", 21, "my username?]", "My password?]", INTERNET_SERVICE_FTP, 0, 0);
if(!intern2)
{
printf("Unable to open a connection - %d\n", GetLastError());
InternetCloseHandle(intern);
return 0;
}
if(FtpPutFile(intern2, "name of the html here?.html", "or here?.html", FTP_TRANSFER_TYPE_BINARY, 0))
{
printf("Upload complete\n");
}
else
{
printf("Upload failed - %d\n", GetLastError());
}
InternetCloseHandle(intern);
return 0;
}
where does this one go?
CreateThread(0, 0, Upload, 0, 0, 0); //start
Well SSGM Plugin don't like it, i tryed to make it a plug in and i get these errors.
1>.\FTPUploader.cpp(33) : error C2065: 'HINTERNET' : undeclared identifier
1>.\FTPUploader.cpp(33) : error C2146: syntax error : missing ';' before identifier 'intern'
1>.\FTPUploader.cpp(33) : error C2065: 'intern' : undeclared identifier
1>.\FTPUploader.cpp(33) : error C2065: 'INTERNET_OPEN_TYPE_DIRECT' : undeclared identifier
1>.\FTPUploader.cpp(33) : error C3861: 'InternetOpen': identifier not found
1>.\FTPUploader.cpp(39) : error C2146: syntax error : missing ';' before identifier 'intern2'
1>.\FTPUploader.cpp(39) : error C2065: 'intern2' : undeclared identifier
1>.\FTPUploader.cpp(39) : error C2065: 'INTERNET_SERVICE_FTP' : undeclared identifier
1>.\FTPUploader.cpp(39) : error C3861: 'InternetConnect': identifier not found
1>.\FTPUploader.cpp(44) : error C3861: 'InternetCloseHandle': identifier not found
1>.\FTPUploader.cpp(48) : error C2065: 'FTP_TRANSFER_TYPE_BINARY' : undeclared identifier
1>.\FTPUploader.cpp(48) : error C3861: 'FtpPutFile': identifier not found
1>.\FTPUploader.cpp(57) : error C3861: 'InternetCloseHandle': identifier not found
also what will this put on my website just that the server is online or will it put up the server info like how many players scores k/ds?
but it idk what to do with it, and i can't see the website's of that other guys post.
Live Your Life Not Some one Else's.| Sharing Is Caring
Cookie Jar<glome> Who stole the cookie from the cookie jar?!
<content> glome stole the cookie from the cookie jar!
<glome> Who me?!
<content> Yes you!
<glome> Couldn't be!
<content> Then WHO?!!
<glome> Woody stole the cookie from the cookie jar!
*** glome has been kicked by DrWoody (fuck you i didn't touch the motherfucking cookie, bitch
Suicide<TB> I was depressed last night so I called the Suicide Life Line.
<TB> I reached a call center in Pakistan.
<TB> I told them I was suicidal.
<TB> They got all excited and asked if I could drive a truck
[Updated on: Wed, 18 November 2009 23:04] Report message to a moderator
|
|
|
|
|
FTP Uploader script
|
|
|
Re: FTP Uploader script
By: zunnie on Wed, 18 November 2009 23:39
|
|
|
Re: FTP Uploader script
|
|
|
Re: FTP Uploader script
By: reborn on Thu, 19 November 2009 01:27
|
|
|
Re: FTP Uploader script
|
|
|
Re: FTP Uploader script
By: jnz on Thu, 19 November 2009 10:01
|
|
|
Re: FTP Uploader script
|
|
|
Re: FTP Uploader script
By: jnz on Thu, 19 November 2009 11:32
|
|
|
Re: FTP Uploader script
By: Hex on Thu, 19 November 2009 11:57
|
|
|
Re: FTP Uploader script
|
|
|
Re: FTP Uploader script
By: Hex on Fri, 20 November 2009 02:48
|
|
|
Re: FTP Uploader script
By: reborn on Fri, 20 November 2009 03:20
|
|
|
Re: FTP Uploader script
|
|
|
Re: FTP Uploader script
By: Hex on Fri, 20 November 2009 14:16
|
|
|
Re: FTP Uploader script
|
|
|
Re: FTP Uploader script
By: Hex on Fri, 20 November 2009 20:49
|
|
|
Re: FTP Uploader script
|
|
|
Re: FTP Uploader script
By: Hex on Sat, 21 November 2009 11:24
|
|
|
Re: FTP Uploader script
|
|
|
Re: FTP Uploader script
|
|
|
Re: FTP Uploader script
By: reborn on Sat, 21 November 2009 13:20
|
|
|
Re: FTP Uploader script
|
|
|
Re: FTP Uploader script
By: reborn on Sat, 21 November 2009 14:30
|
|
|
Re: FTP Uploader script
By: Lone0001 on Sat, 21 November 2009 15:20
|
|
|
Re: FTP Uploader script
|
|
|
Re: FTP Uploader script
By: Lone0001 on Sat, 21 November 2009 18:34
|
|
|
Re: FTP Uploader script
|
|
|
Re: FTP Uploader script
By: Hex on Sat, 21 November 2009 22:25
|
|
|
Re: FTP Uploader script
|
|
|
Re: FTP Uploader script
By: Hex on Sat, 21 November 2009 22:49
|
|
|
Re: FTP Uploader script
|
|
|
Re: FTP Uploader script
By: Hex on Sat, 21 November 2009 23:08
|
|
|
Re: FTP Uploader script
|
|
|
Re: FTP Uploader script
By: Hex on Sat, 21 November 2009 23:23
|
|
|
Re: FTP Uploader script
|
|
|
Re: FTP Uploader script
By: Hex on Sat, 21 November 2009 23:33
|
|
|
Re: FTP Uploader script
|
|
|
Re: FTP Uploader script
By: reborn on Sun, 22 November 2009 03:57
|
|
|
Re: FTP Uploader script
|
|
|
Re: FTP Uploader script
By: reborn on Fri, 27 November 2009 14:37
|
|
|
Re: FTP Uploader script
|
|
|
Re: FTP Uploader script
By: reborn on Sat, 28 November 2009 04:45
|
|
|
Re: FTP Uploader script
By: reborn on Sat, 28 November 2009 09:08
|
|
|
Re: FTP Uploader script
|
|
|
Re: FTP Uploader script
By: reborn on Mon, 30 November 2009 12:54
|
|
|
Re: FTP Uploader script
By: jnz on Mon, 30 November 2009 14:53
|
|
|
Re: FTP Uploader script
|
|
|
Re: FTP Uploader script
By: reborn on Tue, 01 December 2009 03:11
|
|
|
Re: FTP Uploader script
By: jnz on Tue, 01 December 2009 05:05
|
|
|
Re: FTP Uploader script
|
Goto Forum:
Current Time: Sun Dec 15 11:01:01 MST 2024
Total time taken to generate the page: 0.01831 seconds
|