Player freezing everytime they walk, cannot enter cars, jump etc
#1

Hey, I have a little problem. This wasn't happening on the script before but for some reason now it is. Everytime someone tries to walk it freezes them for like a milisecond so they cannot run. If they try to jump it freezes them for a milisecond so they cant jump. If they try to enter a car, they can't because it freezes them for a milisecond and it resets them to the position they were in when they pressed enter to enter the car. It didnt freeze before I added alot of code, now it is.

Any ideas why this is happening??

BTW sorry I accidentally posted this in server support when its most likely a scripting problem
Reply
#2

you're probably returning 0 some where in onplayerupdate
Reply
#3

Post your onplayerupdate callback here
Reply
#4

Press your Ctrl + F Button, and search for this: "TogglePlayerControllable".
Reply
#5

Quote:
Originally Posted by Deskoft
Посмотреть сообщение
Press your Ctrl + F Button, and search for this: "TogglePlayerControllable".
Well what to do with it when i see it, It is used over 10 times, You also didn't state where in the script to search for it, Like a command/callback? I need more details please

thanks
Reply
#6

Post every single time you use it here between [PAWN] /PAWN] brackets, state in what callback / function it's inside.
Reply
#7

so much of code under onplayerupdate?? Or maybe ur using fuel/veh health/lock system?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)