26.04.2010, 19:35
Hey.
When I want to do the follow thing it doesn't work:
The problem is:
When I set him to the position, SetPlayerCameraPos and SetPlayerCameraLookAt loads faster then the SetVehiclePos.
So when I test this, The camera pos doesn't load.
When I only use SetplayerPos, it doesn't work if you test this fuction with a vehicle.
I'm not going to put it timer for it. It fucks up the low CPU or cuase bugs.
When I want to do the follow thing it doesn't work:
Код:
if(listitem == 0)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) SetVehiclePos(GetPlayerVehicleID(playerid),2067.6138,-3502.7935,3.4221);
SetPlayerPos(playerid,2067.6138,-3502.7935,3.4221);
SetPlayerFacingAngle(playerid,223.6082);
SetPlayerCameraPos(playerid,2062.8479,-3489.2097,25.7335);
SetPlayerCameraLookAt(playerid,2090.0256,-3524.1340,11.6295);
ShowPlayerDialog(playerid,TeleDialog+10,DIALOG_STYLE_MSGBOX,"Unlock Monster Parcour","Do you want to unlock Monster Parcour for 650 Points?","Yes","No");
pStats[playerid][BuyStunt] = 0;
}
When I set him to the position, SetPlayerCameraPos and SetPlayerCameraLookAt loads faster then the SetVehiclePos.
So when I test this, The camera pos doesn't load.
When I only use SetplayerPos, it doesn't work if you test this fuction with a vehicle.
I'm not going to put it timer for it. It fucks up the low CPU or cuase bugs.

