02.04.2013, 12:53
Salut , deci la case dau /buyhouse imi apare casa la /stats etc.. ma spawneaza in ea dar dupa restart la server casa apare din nou la buy...
IS inca ceva , tot cu casele
am adaugat 3dtext la case si ar trebui sa apara House is for sale
Pe server apare doar House is fo ...
Cine ma ajuta are +rep
IS inca ceva , tot cu casele
am adaugat 3dtext la case si ar trebui sa apara House is for sale
Pe server apare doar House is fo ...
Код:
for(new h = 0; h < sizeof(HouseInfo); h++) { if(HouseInfo[h][hOwned] == 1) { if(HouseInfo[h][hRentabil] == 0) { format(string, sizeof(string), ""color_cyan"Owned"wh": "color_yellow"%s\n"color_cyan"Level"wh": %d",HouseInfo[h][hOwner],HouseInfo[h][hLevel]); house1[h] = Create3DTextLabel(string,COLOR_YELLOW, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], 0.8+HouseInfo[h][hEntrancez],10.0,0); } if(HouseInfo[h][hRentabil] == 1) { format(string, sizeof(string), ""color_cyan"Owned"wh": "color_yellow"%s\n"color_cyan"Rent"wh": "color_green"%d$ \n"color_cyan"Level"wh": %d\n"color_cyan"Type "color_yellow"/rentroom\n"color_cyan"To rent a room",HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hLevel]); house1[h] = Create3DTextLabel(string,COLOR_YELLOW, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], 0.8+HouseInfo[h][hEntrancez],10.0,0); } } if(HouseInfo[h][hOwned] == 0) { format(string, sizeof(string), ""color_cyan"House is for sale !\n"color_cyan"Discription"wh": %s\n"color_cyan"Cost"wh": "color_green"%d$\n"color_cyan"Level"wh": %d\n"color_cyan"To buy this house\ntype "color_yellow"/buyhouse",HouseInfo[h][hDiscription],HouseInfo[h][hValue],HouseInfo[h][hLevel]); house1[h] = Create3DTextLabel(string,COLOR_YELLOW, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], 0.8+HouseInfo[h][hEntrancez],10.0,0); } }