Raised This Month: $ Target: $400
 0% 

Bad message printing (Bug in binary)?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
grs4
Senior Member
Join Date: Dec 2010
Location: Poland
Old 01-31-2017 , 11:34   Bad message printing (Bug in binary)?
Reply With Quote #1

Hi, can anyone explain me, how is it possible?

I have this code

PHP Code:
public PrintUserConfiguration(id)
{
    if(!
is_valid_ent(gEntity))
    {
        
client_print(idprint_center"Can't produce text, if entity is not valid! Create new one.");
        return
    }
    
    
client_print(idprint_chat"Copy this text from console, and paste to configuration file of rhis map!");
    
client_print(idprint_chat"===========================");
    
    new 
Float:Origin[3], Float:Mins[3], Float:Max[3], szFormat[128];
    
    
pev(gEntitypev_originOrigin);
    
pev(gEntitypev_minsMins);
    
pev(gEntitypev_maxsMax);

    
formatex(szFormatcharsmax(szFormat), "%0.1f %0.1f %0.1f %0.1f %0.1f %0.1f %0.1f %0.1f",
        
Origin[0], Origin[1], Origin[2],
        
Mins[0], Mins[1], Mins[2],
        
Max[0], Max[1], Max[2]);
    
    
client_print(idprint_chatszFormat);
    
client_print(idprint_consoleszFormat);
    
    
client_print(idprint_chat"===========================");

And when i'm executing this code (once time, and IN MOVING, when i'm standing at one place, it works correctly) i'm getting different origin of player.

Some console output:

Code:
Copy this text from console, and paste to configuration file of rhis map!
===========================
446.7 -410.6 276.0 -100.0 -100.0 -50.0 100.0 100.0
332.9 -408.9 276.0 -100.0 -100.0 -50.0 100.0 100.0
===========================
Copy this text from console, and paste to configuration file of rhis map!
===========================
537.7 -396.4 276.0 -100.0 -100.0 -50.0 100.0 100.0
446.7 -410.6 276.0 -100.0 -100.0 -50.0 100.0 100.0
===========================
Copy this text from console, and paste to configuration file of rhis map!
===========================
601.8 -319.7 276.0 -100.0 -100.0 -50.0 100.0 100.0
537.7 -396.4 276.0 -100.0 -100.0 -50.0 100.0 100.0
===========================
Copy this text from console, and paste to configuration file of rhis map!
===========================
610.9 -240.3 276.0 -100.0 -100.0 -50.0 100.0 100.0
601.8 -319.7 276.0 -100.0 -100.0 -50.0 100.0 100.0
===========================
How Is it possible? I'm getting values of variables once time to variables, so It should be const, and same on print_chat/print_console.

I thinkt it is bug. Waiting for help

Last edited by grs4; 01-31-2017 at 11:37.
grs4 is offline
 


Thread Tools
Display Modes

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 21:03.


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