10.03.2017, 16:09
Try to figure how to fix this since 1 month.
Issue:
Enum datas are getting mixed up together or simply assigning random values.
Examples:
- Password variable mixing up with Zone[100] variables. Thus, from debugging, i found out why the password weren't matching. Found out that it was setting the password typed to "Blueberry Acres".
- readcmds value auto-sets to true when a player logs.
What i tried to fix the issue:
- Resetting all the variables when the player logs in/out.
- Used a seperate enums for other datas (E_PLAYERDATA enum for basic vars and E_OtherInfos for other infos for decreasing the variables on E_PLAYERDATA)
__________________________________________________ _______________________________________________
Nothing worked, i thank you in advance if you found a fix for it. Code is below!
Issue:
Enum datas are getting mixed up together or simply assigning random values.
Examples:
- Password variable mixing up with Zone[100] variables. Thus, from debugging, i found out why the password weren't matching. Found out that it was setting the password typed to "Blueberry Acres".
- readcmds value auto-sets to true when a player logs.
What i tried to fix the issue:
- Resetting all the variables when the player logs in/out.
- Used a seperate enums for other datas (E_PLAYERDATA enum for basic vars and E_OtherInfos for other infos for decreasing the variables on E_PLAYERDATA)
__________________________________________________ _______________________________________________
Nothing worked, i thank you in advance if you found a fix for it. Code is below!
PHP код:
enum E_PLAYERDATA
{
ID,
Password[65],
Salt[15],
VIP,
Kills,
Deaths,
aDate,
bool:UnderCover = false,
bool:readcmds = false,
bool:readpms = false,
Zone[100],
LoggedIn,
BankCash,
BribesAccepted
};
new pInfo[MAX_PLAYERS][E_PLAYERDATA];