Raised This Month: $ Target: $400
 0% 

query_client_cvar cant read *.000 value


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
avril-lavigne
Banned
Join Date: Apr 2009
Old 08-14-2013 , 05:57   query_client_cvar cant read *.000 value
Reply With Quote #1

I,m trying to get all players with ( for example ) mp_decals 300.000000
so I did

PHP Code:
query_client_cvar(id"mp_decals""ag")

public 
ag(id, const cvar[], const value[]) {
                        
             new 
iValue str_to_float(value)
             
server_print("user has %.2f",iValue
             if(
iValue == 300.000000 ) {
             
            
// do
                    
             
}
            
    

but server_print debug show me ONLY float value like 300.00 and not 300.000000 , so my condition if ( ivalue == 300.000000) not working

how to get more digits after zero ?
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc

Last edited by avril-lavigne; 08-14-2013 at 06:13.
avril-lavigne is offline
 



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 15:54.


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