AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Display zero while number is single unit (https://forums.alliedmods.net/showthread.php?t=94692)

Sn!ff3r 06-14-2009 08:35

Display zero while number is single unit
 
PHP Code:

    new 5
    client_print
(0,print_chat,"mynumber: %d",a

This will print
Code:

mynumber: 5
I want zero before a number, ex.
Code:

mynumber: 05
How?

Okay, solved.

Arkshine 06-14-2009 09:17

Re: Display zero while number is single unit
 
%02d


All times are GMT -4. The time now is 14:00.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.