Non logical coords
#1

When I print, it prints:
Quote:

[MAF]Rac3r Price 65000 Pos 2406.02 -1672.81 13.59 0.0 Name No.12 Grove Street

When I match variables:
Quote:

2406.024414 -1672.815917 13.592597 = 2406.024414 -1672.815917 13.592597

But when I teleport to:
Код:
SetPlayerPos(playerid, PROPERTY_Location[propertyid][0], PROPERTY_Location[propertyid][1], PROPERTY_Location[propertyid][2]);
SetPlayerFacingAngle(playerid, PROPERTY_Location[propertyid][3]);
SetPlayerInterior(playerid, 0);
It sends to Out Of Bounds. On disconnect, it saves as bugged 12812881212.0332 for example. How is this possible

Does this cause these kind of problems:
Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion?


I'm baffled, clueless on why a float prints normally, yet sends to a silly float value... Please help
Reply
#2

Yes, if the code size thingy appears during compilation (without -d3 flag enabled) then there is a chance that data on the stack or heap might be overwritten during runtime; that might eventually make the server crash as well.
Reply
#3

Thanks for confirmation and an good explanation Vince.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)