FTP Uploader script [message #411355] |
Wed, 18 November 2009 18:09 |
|
Distrbd21
Messages: 743 Registered: September 2008
Karma: 0
|
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
|
|
|
|
Re: FTP Uploader script [message #411390 is a reply to message #411355] |
Thu, 19 November 2009 00:42 |
|
Distrbd21
Messages: 743 Registered: September 2008
Karma: 0
|
Colonel |
|
|
now i get this, and me and zunnie can't figure it out cus when he compiled it it worked, than i was trying to add some .ini settings and now it don't work i tried to do it all over again but nothing.
here is the html out put.
zunnie says that i need the .h code for this but there is none, how would i go about making it?
-
Attachment: BuildLog.htm
(Size: 25.27KB, Downloaded 178 times)
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
|
|
|
|
|
|
Re: FTP Uploader script [message #411448 is a reply to message #411355] |
Thu, 19 November 2009 11:07 |
|
Distrbd21
Messages: 743 Registered: September 2008
Karma: 0
|
Colonel |
|
|
Its in Yarr? where do i find that i've never seen a uploader in it.
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
|
|
|
|
|
Re: FTP Uploader script [message #411500 is a reply to message #411355] |
Thu, 19 November 2009 17:51 |
|
Distrbd21
Messages: 743 Registered: September 2008
Karma: 0
|
Colonel |
|
|
Edit is there anyway to convert BR's plug in fds status reporter to SSGM plug in? if so where can i get the source of the plug in
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: Thu, 19 November 2009 21:35] Report message to a moderator
|
|
|
|
|
|
Re: FTP Uploader script [message #411588 is a reply to message #411538] |
Fri, 20 November 2009 11:48 |
|
Distrbd21
Messages: 743 Registered: September 2008
Karma: 0
|
Colonel |
|
|
reborn wrote on Fri, 20 November 2009 04:20 | What is it you actually want to accomplish?
|
i'm trying to make a SSGM plug in that will upload my server status to my website, witch will show what map it is on, is the server online, how many players,scores,k/ds,rank, etc
Edit:This way nobody has to relay on a bot doing it for them..
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: Fri, 20 November 2009 11:56] Report message to a moderator
|
|
|
|
Re: FTP Uploader script [message #411678 is a reply to message #411617] |
Fri, 20 November 2009 20:41 |
|
Distrbd21
Messages: 743 Registered: September 2008
Karma: 0
|
Colonel |
|
|
Hex wrote on Fri, 20 November 2009 15:16 | Thats easy enough to do, lets see what you have done so far
|
what you mean?
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
|
|
|
|
Re: FTP Uploader script [message #411694 is a reply to message #411679] |
Sat, 21 November 2009 02:39 |
|
Distrbd21
Messages: 743 Registered: September 2008
Karma: 0
|
Colonel |
|
|
Hex wrote on Fri, 20 November 2009 21:49 | What do you have done of the scripts/functions so far?
|
humm whats up at the top and all the errors i get....... and zunnie says i'm missing the .h code.
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
|
|
|
|
Re: FTP Uploader script [message #411738 is a reply to message #411727] |
Sat, 21 November 2009 12:20 |
|
Distrbd21
Messages: 743 Registered: September 2008
Karma: 0
|
Colonel |
|
|
Hex wrote on Sat, 21 November 2009 12:24 | So you have done nothing but rip something from someone else's bot
|
it's not in the bot so no i didn't rip it from someone else bot.
but yes i took it from the link reborn said..
And even if its in Yarr i have the source to it so it rlly would be riping...
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
|
|
|
Re: FTP Uploader script [message #411744 is a reply to message #411355] |
Sat, 21 November 2009 13:20 |
|
reborn
Messages: 3231 Registered: September 2004 Location: uk - london
Karma: 0
|
General (3 Stars) |
|
|
Reading between the lines here, it looks like Sladewill based his plugin for ftp uploading on jnz's code. The actual download for this plugin has gone missing, and now Distrbd21 is trying to recreate some of the functionality of that plugin using the quoted code in Sladewill's post.
|
|
|
Re: FTP Uploader script [message #411747 is a reply to message #411744] |
Sat, 21 November 2009 13:39 |
|
Distrbd21
Messages: 743 Registered: September 2008
Karma: 0
|
Colonel |
|
|
reborn wrote on Sat, 21 November 2009 14:20 | Reading between the lines here, it looks like Sladewill based his plugin for ftp uploading on jnz's code. The actual download for this plugin has gone missing, and now Distrbd21 is trying to recreate some of the functionality of that plugin using the quoted code in Sladewill's post.
|
thank you i couldn't think of away to say it.
i always piss someone off when i say stuff like that idk why
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: Sat, 21 November 2009 13:39] Report message to a moderator
|
|
|
Re: FTP Uploader script [message #411753 is a reply to message #411355] |
Sat, 21 November 2009 14:30 |
|
reborn
Messages: 3231 Registered: September 2004 Location: uk - london
Karma: 0
|
General (3 Stars) |
|
|
I don't think you've pissed anyone off. I think there was some miss-placed feelings towards you, but really, any feeling should of been directed at Sladewill (if there is to be any at all).
Perhaps Sladewill should of mentioned jnz and where he got that code from out of respect, but really, none of this is your concern.
You're just here to try and get something working for your server, and I have a feeling that really you have no interest in annoying anyone...
[Updated on: Sat, 21 November 2009 14:30] Report message to a moderator
|
|
|
|
Re: FTP Uploader script [message #411776 is a reply to message #411762] |
Sat, 21 November 2009 17:44 |
|
Distrbd21
Messages: 743 Registered: September 2008
Karma: 0
|
Colonel |
|
|
Lone0001 wrote on Sat, 21 November 2009 16:20 | Here's version 1 of Sladewill's SSGM FTP Uploader plugin.
|
ty, what program was this made in?
And where do i put my ftp info in at? all i have is ftpuploader.dll, stylesheet, and the pics.
am i supost to have a .ini file to?
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: Sat, 21 November 2009 18:06] Report message to a moderator
|
|
|