22.02.2015, 23:46
I don't see anything related to saving the passwords.
Also, you don't seem to clear data when someone disconnects.
Your PlayerInfo array is still filled with information about the last player who connected if you don't clear those variables.
When another player connects, that other player will get info from the previous player.
The pMoney variable for instance.
Player A logs in, he plays a bit, earns money, say 10k and he logs out.
His data is saved but not cleared.
Player B logs in and because you didn't clear data, he'll have the same amount of money as player A.
Can we also see your loading functions?
It's hard to see where it goes wrong if you only show saving functions.
Also, you don't seem to clear data when someone disconnects.
Your PlayerInfo array is still filled with information about the last player who connected if you don't clear those variables.
When another player connects, that other player will get info from the previous player.
The pMoney variable for instance.
Player A logs in, he plays a bit, earns money, say 10k and he logs out.
His data is saved but not cleared.
Player B logs in and because you didn't clear data, he'll have the same amount of money as player A.
Can we also see your loading functions?
It's hard to see where it goes wrong if you only show saving functions.