15.03.2012, 10:58
Hello, Thanks for your reaction. but.
When i do this, i will get warnings:
Код:
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(MAX_HOUSES,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(MAX_HOUSES,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; } } }
Код:
C:\Users\jeroen hulshof\Desktop\Secondlife-RPG Dutch version\gamemodes\CLRPG.pwn(13370) : warning 213: tag mismatch C:\Users\jeroen hulshof\Desktop\Secondlife-RPG Dutch version\gamemodes\CLRPG.pwn(13377) : warning 213: tag mismatch