INFERN0 Posted May 11, 2015 Share Posted May 11, 2015 my script is running fine but i ran into the issue i followed pugs guide but it sorta got messed up so instead of the time till next level going down it goes up/ and also the time running is fucked lol i will post below what code i used for them if you could correct me that would be awesome! http://pastebin.com/YrRejqbq Quote Link to comment Share on other sites More sharing options...
AresScripts Posted May 11, 2015 Share Posted May 11, 2015 my script is running fine but i ran into the issue i followed pugs guide but it sorta got messed up so instead of the time till next level going down it goes up/ and also the time running is fucked lol i will post below what code i used for them if you could correct me that would be awesome! http://pastebin.com/YrRejqbq I didnt look too in-depth, but maybe make sure you followed the guide correctly? Quote Link to comment Share on other sites More sharing options...
INFERN0 Posted May 11, 2015 Author Share Posted May 11, 2015 I didnt look too in-depth, but maybe make sure you followed the guide correctly? i made sure i did it correct and the guide is outdated and i know for a fact there are new api's was wondering if you could give me some basic code for time till next level and time ran. Quote Link to comment Share on other sites More sharing options...
AresScripts Posted May 11, 2015 Share Posted May 11, 2015 i made sure i did it correct and the guide is outdated and i know for a fact there are new api's was wondering if you could give me some basic code for time till next level and time ran. TBH i would leave that part of the paint out. It always seems like a hassle to add it and it isnt really used by very many people Quote Link to comment Share on other sites More sharing options...
INFERN0 Posted May 11, 2015 Author Share Posted May 11, 2015 TBH i would leave that part of the paint out. It always seems like a hassle to add it and it isnt really used by very many people but you have time ran on your scripts m8? Quote Link to comment Share on other sites More sharing options...
AresScripts Posted May 11, 2015 Share Posted May 11, 2015 (edited) but you have time ran on your scripts m8? use System.currentTimeMillis(). It returns the number of milliseconds that have past since Jan 1, 1970(no joke lol) Edited May 11, 2015 by AresScripts Quote Link to comment Share on other sites More sharing options...
FrostBug Posted May 11, 2015 Share Posted May 11, 2015 looks like you didn't initialize timeBegan properly. Do this in onStart Quote Link to comment Share on other sites More sharing options...
Apaec Posted May 11, 2015 Share Posted May 11, 2015 probably as frostbug said, everything looks in order so the only thing that can go wrong (which we cant really see) is where you initialized your timeBegan 1 Quote Link to comment Share on other sites More sharing options...
FrostBug Posted May 11, 2015 Share Posted May 11, 2015 Also, your "Time to level" is calculated in %. I'm just gonna throw this out there.. but.. % is not a valid time unit 1 Quote Link to comment Share on other sites More sharing options...