Memory? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Memory? (
/showthread.php?tid=85387)
Memory? -
CBFASI - 07.07.2009
This maybe a stupid question.
We have a command (/area) that fills xx, xy, xz with data.
Now xx, xy, xz are all set up in advance as floats.
Код:
xx=dUserFLOAT(PlayerName(giveid)).("RealWorldX");
xy=dUserFLOAT(PlayerName(giveid)).("RealWorldY");
xz=dUserFLOAT(PlayerName(giveid)).("RealWorldZ");
Big question, if 4 people run this command at same time, do they each get their own XX, XY, XZ values or does the script overwrite? and if its the latter does this give potential for a crash??
Would it be better to have xx(playerid) etc...
and tie it to that player while they are on server?
Re: Memory? -
Correlli - 07.07.2009
They'll get their own x, y, z position.