Raised This Month: $ Target: $400
 0% 

Help / Support [ZP] How can I do this?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KillLikoe
BANNED
Join Date: Nov 2010
Location: Paraguay
Old 08-20-2011 , 17:09   [ZP] How can I do this?
Reply With Quote #1

I want tu turn the number like this for example I have 1000 ammopacks and in the hud say AmmoPacks: 1000. but i want to say 1.000 someone know this?
KillLikoe is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 08-20-2011 , 17:27   Re: [ZP] How can I do this?
Reply With Quote #2

Why do you want to fake that?
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 08-20-2011 , 22:12   Re: [ZP] How can I do this?
Reply With Quote #3

Code:
AddCommas( iNum , szOutput[] , iLen ) {     new szTmp[ 15 ] , iOutputPos , iNumPos , iNumLen = num_to_str( iNum , szTmp , charsmax( szTmp ) );         while ( ( iNumPos < iNumLen ) && ( iOutputPos < iLen ) )     {         szOutput[ iOutputPos++ ] = szTmp[ iNumPos++ ];                 if( ( iNumLen - iNumPos ) && !( ( iNumLen - iNumPos ) % 3 ) )             szOutput[ iOutputPos++ ] = '.';     }         szOutput[ iOutputPos ] = EOS;         return iOutputPos; }
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
Old 08-26-2011, 19:47
091231238123
This message has been deleted by 091231238123.
KillLikoe
BANNED
Join Date: Nov 2010
Location: Paraguay
Old 08-26-2011 , 19:52   Re: [ZP] How can I do this?
Reply With Quote #4

PHP Code:
 stock Puntuacion(number)
{
    new 
str[15], strpointed[15], len
    num_to_str
(numberstr14)
    
lenstrlen(str)
    new 
c
    
for (new i=0;i<len;i++)
    {
        if (
i!=&& ( (len-i)%3==0) )
        {
            
add(strpointed14"."1)
            
c++
            
add(strpointed[i+c], 1str[i], 1)
        }
        else
            
add(strpointed[i+c], 1str[i], 1)
    }
    
    return 
strpointed

which is better?

Last edited by KillLikoe; 08-27-2011 at 15:29.
KillLikoe is offline
Se7ven
Senior Member
Join Date: Feb 2011
Location: Romania
Old 08-27-2011 , 06:16   Re: [ZP] How can I do this?
Reply With Quote #5

English
__________________
WwW.HighCS.Ro From Romania For You
Se7ven is offline
Send a message via AIM to Se7ven Send a message via Yahoo to Se7ven
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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