Why is this happanening?
#1

For some reason, whenever a player registers, some of its variables are set to some random values.
I have searched the script, and I didn't find anything near to those values. Also, it happens randomly, its not for every player.
Reply
#2

Are you resetting the variables when the player connects or disconnects?
Reply
#3

can you show the codes of onplayerconnect and onplayerdisconnect?

would be helpful.
Reply
#4

Quote:
Originally Posted by Stinged
Посмотреть сообщение
Are you resetting the variables when the player connects or disconnects?
Yes I am.
Reply
#5

I've had this issue before too. I never pinpointed the exact cause but my friend mentioned something about timers. Do you heavily rely on timers in your gamemode?
Reply
#6

Variables being overwritten may be related to stack overflow. Run crashdetect.
Reply
#7

wow nice info
we can do something with this

.
Reply
#8

Quote:
Originally Posted by justjamie
Посмотреть сообщение
wow nice info
we can do something with this

.
If I knew what the problem was or where it could be, I could probably give you some code.
But right now, I can't. Isn't that logical?
Reply
#9

Can you set manually a value for all the variables on register? pVar1] = yourvalue etc.?
Reply
#10

Quote:
Originally Posted by Nin9r
Посмотреть сообщение
Can you set manually a value for all the variables on register? pVar1] = yourvalue etc.?
I have the function ResetPlayerVariables wich set's the variables to it's default values.
This function is called when the player connects.
I could add it to the registration but I don't know, I'm afraid that it will do some harm.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)