Seriously the weirdest bug ever
#1

Dear community,

I have written about 5000 lines of code during the last week, I started testing it today and after some more scripting something very odd occurred.

After restarting the gamemode with "gmx", all players are glitched. Read carefully now because this gets confusing:
  • ID 0 sees everyone. When they are inside a vehicle, the script doesn't recognize it.
  • Any other ID can see other players, but not ID 0.
  • When ID 0 reconnects everything works until next gmx
NOTE: When I refer to anyone seeing someone, I mean that they flicker while moving. As soon as they stop moving, they disappear completely off the screen from everyone else.


Does anyone have a clue why this occurs?
Reply
#2

does your OnPlayerUpate(player) contain a return 1; at its very end?
theres a common issue with that sort of problem aswell, known as "id 0-bug". check your loops for accesing wrong playerid's or using a variable pointing to 0 in this loop...
Reply
#3

Yes, it only contains "return 1".

I've looked but I can't find any OOB loops
Reply
#4

Quote:
Originally Posted by Lenny the Cup
Посмотреть сообщение
Could it have something to do with MAX_PLAYERS being redefined?
To what have you redefined it? The only thing that can go wrong then is if your MAX_PLAYERS is less than your server slots.
Reply
#5

I made it 50, the server limit is 50. I raised it back to 500 and it actually seems it helped.
Reply
#6

oh i never would have guessed that.. thx! this tip should get added to the wiki.
Reply
#7

Sorry, no, it didn't help :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)