question regarding points numbers
#1

Look at that picture how do i make these numbers look like the moneys, that they start from 000000 and eventually when you earn a point you start to 0000034, etc.?? Already tried with something like float, but it fucks up and i get errors lol.

PHP код:
             format(InfoStringsizeof(InfoString), "%i"pInfo[playerid][Points]);
            
TextDrawSetString(CASH4[playerid], InfoString); 
That's actually how the code is made for showing points on TD.
Reply
#2

Код HTML:
    new number = 600;
    printf("%06d", number);
You're looking for the 06 part of the code above. It tells the function to pad zero's on up to the (n)th digit.

pawn Код:
%0(n)<specifier>
Reply
#3

Thanks solved
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)