22.02.2017, 09:51
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
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.
Код HTML:
SetPlayerSkin(playerid, PlayerInfo[playerid][pSkinID]);
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.