++tachyon Posted May 24, 2015 Share Posted May 24, 2015 Hello, I am having some trouble displaying the value of a certain int variable and pausing it for around 5+ seconds. Currently it shows for an instant and disappears instantly. sprintf_s(title, "%i", pedNumber); draw_menu_line(title, 50.0, 15.0, 18.0, 300.0, 8.0, false, true); pedNumber is an unsigned int. This is all inside the nativetrainer. Help would be very appreciated! Thank you in advanced! Link to comment Share on other sites More sharing options...
c39687 Posted May 24, 2015 Share Posted May 24, 2015 you have to call the function every tick, like this... void ScriptMain(){ while (true) { DrawMenuLine();//i ignored arguments for example, this is being called every loop and will draw on each frame WAIT(0); }} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now