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

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

Do you think it isn't. Well it is. Not much but it use something.
There is a 0.2 sec timer needed for this.
And if I think like that by everything, my CPU will go up fastly.
My server is running on 4.9 % CPU with 30-40 players and 5000 Objects.
So I gues I know this.
I already did it in a timer. But now I only got 3 of those scripts in that timer.
When I get new maps it will get up untill i have 20 maps.
So then it will damage my CPU.
I can run it for a while with this now. But I hope SA-MP is going to do something on this.
Something like a Sleep fuction.
So I doesn't have to use a timer and all that crap.
Reply
#4

Omg noes! 4.9%?! The world will end at 5.0!!!11111


ONE timer will not affect anything at all... I've seen gamemodes with many * player dependant * variables .. meaning a timer for each player; and still not have a great CPU loss. Jesus .. 4.9% is nothing dude.
Reply
#5

Quote:
Originally Posted by _❼_
Omg noes! 4.9%?! The world will end at 5.0!!!11111


ONE timer will not affect anything at all... I've seen gamemodes with many * player dependant * variables .. meaning a timer for each player; and still not have a great CPU loss. Jesus .. 4.9% is nothing dude.
Dude you don't even know were I'm talking about. Go try to help somebody else. I didn't ask for a timer. I already suggested that for myself.
I asked another way. Might somebody else know another way. Not you i see.
Reply
#6

Quote:
Originally Posted by MyName?
Quote:
Originally Posted by _❼_
Omg noes! 4.9%?! The world will end at 5.0!!!11111


ONE timer will not affect anything at all... I've seen gamemodes with many * player dependant * variables .. meaning a timer for each player; and still not have a great CPU loss. Jesus .. 4.9% is nothing dude.
Dude you don't even know were I'm talking about. Go try to help somebody else. I didn't ask for a timer. I already suggested that for myself.
I asked another way. Might somebody else know another way. Not you i see.
There is no 'other way'. Foolish mortal.
Reply
#7

Quote:
Originally Posted by _❼_
Quote:
Originally Posted by MyName?
Quote:
Originally Posted by _❼_
Omg noes! 4.9%?! The world will end at 5.0!!!11111


ONE timer will not affect anything at all... I've seen gamemodes with many * player dependant * variables .. meaning a timer for each player; and still not have a great CPU loss. Jesus .. 4.9% is nothing dude.
Dude you don't even know were I'm talking about. Go try to help somebody else. I didn't ask for a timer. I already suggested that for myself.
I asked another way. Might somebody else know another way. Not you i see.
There is no 'other way'. Foolish mortal.
Dude why are your posting?
Did I asked you for uneless answers? No so fuck off.
Reply
#8

Quote:
Originally Posted by MyName?
Dude why are your posting?
Did I asked you for uneless answers? No so fuck off.
Because you clearly know nothing about the subject ... I hope you solve your problem, but unless you use a timer..

Plus with an attitude like yours I'd be surprised if anyone else tries to help you

I wish I never
Reply
#9

I just post my problems here when I'm bored and pissed.
I know I never get useful answers. But who cares.
I getting more and more bored by Pawno.
Reply
#10

Lol ..

.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)