15.08.2016, 03:20
I have put crashdetect on compiler debug and it showed me the line. It was not what you said but thanks for trying to help. It was
if(PlayerInfo[i][pAluguer] >= 1)
{
new PDAC = PlayerInfo[i][pAluguer];
new CDCA = PlayerInfo[i][pHouseKey];
PlayerInfo[i][pBank] -= PDAC;
Houses[CDCA][Money] = Houses[CDCA][Money] + PDAC;
}
it should look for a player key first and it did not. So house limit is 254 and many have 255 in house key that means they dont have any house. Thats what was causing the problem
its fixed now. Thanks everyone for helping
if(PlayerInfo[i][pAluguer] >= 1)
{
new PDAC = PlayerInfo[i][pAluguer];
new CDCA = PlayerInfo[i][pHouseKey];
PlayerInfo[i][pBank] -= PDAC;
Houses[CDCA][Money] = Houses[CDCA][Money] + PDAC;
}
it should look for a player key first and it did not. So house limit is 254 and many have 255 in house key that means they dont have any house. Thats what was causing the problem
its fixed now. Thanks everyone for helping