15.11.2011, 16:46
when you do
make sure that the rent = HouseInfo[key][hRent]; value is loaded do a test
like
put that here
pawn Код:
rent = HouseInfo[key][hRent];
like
pawn Код:
new Str[100];format(Str,100,"Loaded Rent: %d ||Server Rent %d",HouseInfo[key][hRent],rent);
SendClientMessage(playerid,COLOR,Str);
pawn Код:
else if(rent > GetPlayerMoney(i))
{
PlayerInfo[i][pPhousekey] = 255;
SendClientMessage(i, COLOR_WHITE, "You have been evicted.");
rent = 0;
}
HouseInfo[key][hTakings] = HouseInfo[key][hTakings]+rent;
//HERE so we can see whats going on :X
new Str[100];format(Str,100,"Loaded Rent: %d ||Server Rent %d",HouseInfo[key][hRent],rent);
SendClientMessage(playerid,COLOR,Str);