player id 0 problem :confused: - 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: player id 0 problem :confused: (
/showthread.php?tid=161773)
player id 0 problem :confused: -
Rocky Balboa - 21.07.2010
look always when someone has id 0 he gets bugged and not all the commands work for him .. in other words he gets desynced ... is there a way to not let anyone get id 0 ? or will an nps solve the problem ?
Re: player id 0 problem :confused: -
DarkClone - 21.07.2010
A npc will solve the problem.
Re: player id 0 problem :confused: -
John_F - 21.07.2010
There is already a topic about this, recent too, you should skim through the boards before posting something to make sure your topic/something similar hasn't already been posted.
Re: player id 0 problem :confused: -
ikey07 - 21.07.2010
Quote:
Originally Posted by Rocky Balboa
look always when someone has id 0 he gets bugged and not all the commands work for him .. in other words he gets desynced ... is there a way to not let anyone get id 0 ? or will an nps solve the problem ?
|
OnPlayerConnect I guess you set all values to 0, right ?
so if you have for example /accept command, where someone offer to other something,
Than if somone want accept something, but he already have offer giver == 0.
if you didn't get what I mean, just overview all values at OnPlayerConnect, maybe there is some values what need to be NONE, I mean 999 (I use this diigt ), so 999 is not a valid id, but if you use 0, than some offers, is allready offered to others from id 0.
I hope you got it what I mean.
Re: player id 0 problem :confused: -
Jakku - 21.07.2010
Indeed.
If you have MAX_PLAYERS- variables, set them to 0 under OnPlayerConnect
Re: player id 0 problem :confused: -
Rocky Balboa - 22.07.2010
i will just create an npc and thats it , thanks guys
Re: player id 0 problem :confused: -
(SF)Noobanatior - 22.07.2010
i guess some of your loops start at 1 and not 0 just putting it out there