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(id, print_center, "Can't produce text, if entity is not valid! Create new one.");
return
}
client_print(id, print_chat, "Copy this text from console, and paste to configuration file of rhis map!");
client_print(id, print_chat, "===========================");
new Float:Origin[3], Float:Mins[3], Float:Max[3], szFormat[128];
pev(gEntity, pev_origin, Origin);
pev(gEntity, pev_mins, Mins);
pev(gEntity, pev_maxs, Max);
formatex(szFormat, charsmax(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(id, print_chat, szFormat);
client_print(id, print_console, szFormat);
client_print(id, print_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