clock weird problem
#2

I tested your code here and it seem to give the correct output try it yourself.

http://slice-vps.nl:7070/

pawn Код:
#include <a_samp>


main() {

    new gseconds;
    new gminutes;
    new time = 90;
   
    while(time)
    {
        gseconds = time % 60;
        gminutes = (time - gseconds) / 60;
       
        new string[128];
        format(string, sizeof string, "%d:%02d", gminutes, gseconds);    
        printf(string);
        time--;
    }    
    return 1;
}
Reply


Messages In This Thread
clock weird problem - by AnonScripter - 17.01.2014, 21:48
Re: clock weird problem - by Pottus - 17.01.2014, 22:40
Re: clock weird problem - by AnonScripter - 17.01.2014, 22:47
Re: clock weird problem - by Vince - 17.01.2014, 22:51
Re: clock weird problem - by Pottus - 17.01.2014, 23:02
Re: clock weird problem - by AnonScripter - 18.01.2014, 01:59
Re: clock weird problem - by Pottus - 18.01.2014, 02:13
Re: clock weird problem - by AnonScripter - 18.01.2014, 02:22

Forum Jump:


Users browsing this thread: 1 Guest(s)