SA-MP Forums Archive
Spawn problems - 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: Spawn problems (/showthread.php?tid=86385)



Spawn problems - hanzen - 13.07.2009

in OnPlayerUpdate() it saves the current location of the player. When the player login, I want it to spawn where it spawned before logging out.
Код:
		new spawnx;
		new spawny;
		new spawnz;

		spawnx = PlayerInfo[playerid][pPos_x];
		spawny = PlayerInfo[playerid][pPos_y];
		spawnz = PlayerInfo[playerid][pPos_z];
This gives me a warning about tag mismatch? and when I log in it goes crazy.


Re: Spawn problems - arnutisz - 13.07.2009

Should be:
pawn Код:
new Float:spawnx;
new Float:spawny;
new Float:spawnz;



Re: Spawn problems - hanzen - 13.07.2009

Quote:
Originally Posted by Scott[LT
]
Should be:
pawn Код:
new Float:spawnx;
new Float:spawny;
new Float:spawnz;
Thx, that sorted actually everything.