Spawn problems
#1

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.
Reply
#2

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)