SA-MP Forums Archive
Seriously the weirdest bug ever - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Seriously the weirdest bug ever (/showthread.php?tid=257084)



Seriously the weirdest bug ever - Lenny the Cup - 23.05.2011

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: 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?


Re: Seriously the weirdest bug ever - Babul - 23.05.2011

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...


Re: Seriously the weirdest bug ever - Lenny the Cup - 23.05.2011

Yes, it only contains "return 1".

I've looked but I can't find any OOB loops


Re: Seriously the weirdest bug ever - Hiddos - 26.05.2011

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.


Re: Seriously the weirdest bug ever - Lenny the Cup - 26.05.2011

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


Re: Seriously the weirdest bug ever - Babul - 26.05.2011

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


Re: Seriously the weirdest bug ever - Lenny the Cup - 26.05.2011

Sorry, no, it didn't help :/