Thanks for the Help! It works! Here is what I have so far. Can someone help me with the char thing in my FTPImage function?
#include "DarkGDK.h"
int FTPImage(const char [], int id) { // Can someone help me with the char thing?
dbFTPConnect("ftp.universestick.com", "Username", "Password");
if(dbGetFTPStatus() == 0) {
return 1;
}
dbFTPSetDir("/GameAssets");
dbFTPGetFile("StartImage.png", "/");
while(dbGetFTPProgress() != -1 && dbGetFTPFailure() == 0) {
char progress[16];
sprintf_s(progress, 16, "%%%d", dbGetFTPProgress());
dbFTPProceed();
dbSync();
}
dbFTPDisconnect();
dbLoadImage("StartImage.png", id);
if(!dbGetImageExist(id)) {
return 2;
}
return 3;
}
void DarkGDK ( void )
{
dbSyncOn();
dbSyncRate(60);
dbDisableEscapeKey();
dbRandomize(dbTimer());
int test = FTPImage("StartImage.png", 1);
dbSprite(1,0,0,1);
while (LoopGDK())
{
dbSync();
}
dbDeleteImage(1);
return;
}
When life gives you c++, make epic games.