Saving pos failure
#1

Hey guys,

Please help me with the following:

Sometimes I get tp'd to the right cords when I spawn, but most of the times I get tp'd to 0.00.
My pX, pY and pZ are not at 0.00 in my file though.

This is the onlplayerspawn:

Код:
    SetTimerEx("LoginTimer",2000,false,"d",playerid);
    SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
 	SetTimerEx("SaveData",10000,true,"d",playerid);
And this is the logintimer:
Код:
forward LoginTimer(playerid);
public LoginTimer(playerid)
{
	ResetPlayerMoney(playerid);
	TogglePlayerControllable(playerid, 1);
	SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
	SetPlayerPos(playerid, PlayerInfo[playerid][pX],PlayerInfo[playerid][pY],PlayerInfo[playerid][pZ]);
	GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
	return 1;
}
Please help me!
Reply


Messages In This Thread
Saving pos failure - by Devix - 29.10.2012, 16:13
Re: Saving pos failure - by Abhishek. - 29.10.2012, 16:19
Re: Saving pos failure - by [HK]Ryder[AN] - 29.10.2012, 16:55
Re: Saving pos failure - by Abhishek. - 29.10.2012, 17:04
Re: Saving pos failure - by Devix - 29.10.2012, 17:14
Re: Saving pos failure - by Devix - 29.10.2012, 21:39

Forum Jump:


Users browsing this thread: 1 Guest(s)