Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » FTP Uploader script
Re: FTP Uploader script [message #411794 is a reply to message #411355] Sat, 21 November 2009 22:25 Go to previous messageGo to previous message
Hex is currently offline  Hex
Messages: 858
Registered: March 2004
Karma:
Colonel
I'll start you off, you have a FTP function

So

	for (GenericSLNode* PlayerIter = PlayerList->HeadNode; (PlayerIter != NULL); PlayerIter = PlayerIter->NodeNext)
	{
		cPlayer *p = (cPlayer *)PlayerIter->NodeData;
		if (p->IsActive)
		{
			const char *Nick = WideCharToChar(p->PlayerName);
			printf("Nick %s Score %.0f Kills %d Deaths %d\n", Nick, p->Score.Get(), p->Kills.Get(), p->Deaths.Get());
			delete[] Nick;
		}
	}	


This will allow you to pull almost all information of your players.

char Path[256]; 
GetCurrentDirectoryA(52, Path); 
strcat(Path, "\\YourFile.txt"); 
void *f = (void *)fopen(Path, "w"); 
  
fprintf((FILE *)f, "%s\n",.....); 
  
fclose((FILE *)f);


This will allow you to write to a file

\n = new line
\t = tab


format control



goztow wrote on Tue, 11 May 2010 08:00

If we had to ban all who ever cheated or ever created a cheat (obj3cts and such) then I don't think there would be many members left here (sad fact).


reborn wrote on Fri, 29 January 2010 23:37

std is for pro's. Razz
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: !spy command help
Next Topic: Obelisk attack sequence
Goto Forum:
  


Current Time: Sun Dec 15 13:06:50 MST 2024

Total time taken to generate the page: 0.01306 seconds