15.03.2012, 11:56
hello! Thanks for your quick reaction! =] But,
When i enter a house icon, i get the info:
That is correct, but when i buy the house, i will get this:
And when i reconnect the server, i see nothing.
This is my script code:
When i enter a house icon, i get the info:
That is correct, but when i buy the house, i will get this:
And when i reconnect the server, i see nothing.
This is my script code:
Код:
public UpdatePlayerInfo() { for(new i=0; i<MAX_SLOTS; i++) { // House shit: for(new h = 0; h <MAX_HOUSES; h++) { if(PlayerToPoint(2, i, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez])) { if(HouseInfo[h][hOwned] == 1) { if(HouseInfo[h][hRentabil] == 0) { format(house_string, sizeof(house_string), "~w~De eigenaar van dit huis is ~n~%s~n~Level: %d", HouseInfo[h][hOwner], HouseInfo[h][hLevel]); //format(house_string, sizeof(house_string), "~w~%s~n~Owned by: ~r~%s", HouseInfo[h][hDescription], HouseInfo[h][hOwner]); Update3DTextLabelText(Houselabel,0x2CDBDEFF,house_string); return 1; } else { format(house_string, sizeof(house_string), "~w~De eigenaar van dit huis is ~n~%s~n~Level: %d~n~Rent: ~g~$%d ~w~level: %d~n~Typ /rentroom om een kamer te huren.", HouseInfo[h][hOwner], HouseInfo[h][hLevel], HouseInfo[h][hRent], HouseInfo[h][hLevel]); //format(house_string, sizeof(house_string), "~w~%s~n~Owned by: ~r~%s~n~~w~(Rentable for ~g~$%d~w~)", HouseInfo[h][hDescription], HouseInfo[h][hOwner], HouseInfo[h][hRent]); Update3DTextLabelText(Houselabel,0x2CDBDEFF,house_string); return 1; } } else { format(house_string, sizeof(house_string), "Dit huis is te koop!\nDiscription: %s\nCost: $%d\nLevel: %d\nto buy this house type /buyhouse", HouseInfo[h][hDescription], HouseInfo[h][hValue], HouseInfo[h][hLevel]); //format(house_string, sizeof(house_string), "~w~%s~n~For sale, Cost: ~g~$%d~n~~w~Level: %d", HouseInfo[h][hDescription], HouseInfo[h][hValue], HouseInfo[h][hLevel]); Houselabel = Create3DTextLabel(house_string,0x2CDBDEFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,15,0,1); return 1; } } }