SA-MP Forums Archive
Non logical coords - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Non logical coords (/showthread.php?tid=324128)



Non logical coords - Rac3r - 08.03.2012

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


Re: Non logical coords - Vince - 08.03.2012

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.


Re: Non logical coords - Rac3r - 08.03.2012

Thanks for confirmation and an good explanation Vince.