SA-MP Forums Archive
TogglePlayerControllable bugging out? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: TogglePlayerControllable bugging out? (/showthread.php?tid=384311)



[SOLVED] - Vexus - 11.10.2012

[SOLVED]


Re: TogglePlayerControllable bugging out? - M3mPHi$_S3 - 11.10.2012

Show us the codes.We cannnot do any thing untill the codes presentation !!!!


Re: TogglePlayerControllable bugging out? - Roel - 11.10.2012

Well, I might know the problem, if you use /engine does it also 'restart' the vehicle if it is already started?
If you get out the vehicle does the engine stay one?
Because maybe the player get freezed even if the engine is already started when he enter the vehicle.
And because it is already started he won't get unfreezed because the /engine cmd thinks it is already started.

Things you can do,
At the script where the player get freezed (when he enter the vehicle) check if the vehicle is already started.
Or edit the /engine cmd so it will restart when it is already started.

Might you already got this and the problem is caused by something else, but this is just when I think.


Re: TogglePlayerControllable bugging out? - Vexus - 11.10.2012

Quote:
Originally Posted by ******
Посмотреть сообщение
Just because your code COMPILES, doesn't mean it is CORRECT:

PHP код:
stock MakeMeTea()
{
    
// Make me a cup of tea.
    
for (new 0!= 10; ++iprintf("%d"i);

That compiles, but isn't correct! The compiler only checks that you told the PC how to do something correctly, it doesn't check that what you told it to do is correct. And as both you and мυ∂υℓ_вacнα pointed out, the only way for us to try and confirm that you are trying to tell the computer the right thing is with your code.
The only reason I don't want to show my code, is because it's quite large. I will try and attempt a few more things before going that far. If I am completely lost, I will then post the script on this thread. <3