Okay, I am working on a menu and how it works is every 3 seconds a new option comes up, but I am trying to make it so that within that 3 second period I can press a button to activate something now look here:
dvar(-1, 0, "e \"Prestige and rank settings\"");
Sleep(35);
dvar(-1, 0, "c \"Set prestige one\"");
if (Key_Down(0, 0x02)) {
dvar(-1, 0, "c \"Setting 1st prestige, will be kicked\"");
Sleep(1000);
dvar(-1, 0, "c \"^43\"");
Sleep(1000);
dvar(-1, 0, "c \"2\"");
Sleep(1000);
dvar(-1, 0, "c \"^41\"");
Sleep(1000);
}
Sleep(3000);
The issue above is after "Set prestige one" it skips to the next Sleep(3000) and to the next option, now I need to find a way to be able to still use that if statement witch is a button within that 3 seconds, rather then it Sleeping the thread and making the button unusable unless you press it before the text loads.
So pretty much what I need to do is rather then Sleep the thread instead make it wait those 3 seconds so I can still use that if statement.
THIS IS FOR A DLL RUNNING ON A XBOX360
Libs currently in use
#include "stdafx.h"
#include < stdio.h >
#include <string>
#include <iostream>