Reset Variables
#2

Quote:
Originally Posted by Nin9r
Посмотреть сообщение
Hello ! I don't know when / how, but for a part of players some variables are reseted. Sometimes, the job / skin / radioID and others variables get a wrong value (random). For example, i have 9 jobs on my server (max pJob] = 9). Sometime, a player has pJob] > 9 ( random: pJob] = 82, 101,110 ) but i dont know why. I used ctrl+f and find ' pJob] = ' on the entire GM and i didn't find anything like that. Also, pSkinID] gets another value. Sometime in ONPLAYERSPAWN the skin are changed without /buyskin or something. There I use just
Код HTML:
SetPlayerSkin(playerid, PlayerInfo[playerid][pSkinID]);
RadioID gets a value when a player is listening a RADIO from /radio. I use it for counting how many listeners are for each radio station. After few time, the RadioID is random or set on 0.

This problem appears for many variables. I tried to fix it but i have no idea anymore.

For what reason? Any ideas?

PS: This is not happen when a few players are connected (max 10-15).
I am not using #define MAX_PLAYERS 100 because if I put it all the queries(savedata) will be damaged.
Why would the queries be damaged if you redefine the server's MAX_PLAYERS. It shouldn't affect anything. Also are you resetting the player variables on connection?
Reply


Messages In This Thread
Reset Variables - by Nin9r - 22.02.2017, 09:51
Re: Reset Variables - by Cypress - 22.02.2017, 12:09
Re: Reset Variables - by Nin9r - 22.02.2017, 12:17
Re: Reset Variables - by Yousha - 22.02.2017, 12:55
Re: Reset Variables - by Mic_H - 22.02.2017, 14:10
Re: Reset Variables - by Nin9r - 25.02.2017, 18:57

Forum Jump:


Users browsing this thread: 1 Guest(s)