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 #411800 is a reply to message #411794] Sat, 21 November 2009 22:42 Go to previous messageGo to previous message
Distrbd21 is currently offline  Distrbd21
Messages: 743
Registered: September 2008
Karma:
Colonel

Hex wrote on Sat, 21 November 2009 23:25

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



can you tell me step by step what do do with them?


Live Your Life Not Some one Else's.| Sharing Is Caring

http://dsgaming.us/distrbd21/Distrbd21%20siggy.png

Cookie Jar

Suicide
 
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:07:42 MST 2024

Total time taken to generate the page: 0.01197 seconds