Does somebody know an handy option to solve this bug?
#2

Quote:
Originally Posted by MyName?
Hey.
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;
				}
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.
The only solution I can see is using a timer. Using one timer isn't going to affect your CPU ... using 100 timers may affect it slightly.. but this is one.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)