22.07.2015, 14:23
Код:
new labelstring[200]; switch(houseStuff[i][house_bought]) { case 0: // For Sale { houseStuff[i][label] = Create3DTextLabel("{58D3F7}[FOR SALE]", COLOR_WHITE, houseStuff[i][houseX], houseStuff[i][houseY], houseStuff[i][houseZ] + 0.2, 25.0, 0, 1); format(labelstring, sizeof(labelstring), "{FFFFFF}/buyhouse {FFDC2E}%i {FFFFFF}\nPrice: {FFDC2E}$%i", houseStuff[i][house_id], houseStuff[i][house_price]); } case 1: // Owned { houseStuff[i][label] = Create3DTextLabel("{58D3F7}[ALT TO ENTER]", COLOR_WHITE, houseStuff[i][houseX], houseStuff[i][houseY], houseStuff[i][houseZ] + 0.2, 25.0, 0, 1); format(labelstring, sizeof(labelstring), "{FFFFFF}Owner: {FFDC2E}%s\n{FFFFFF}House ID: {FFDC2E}%i\n{FFFFFF}Price: {FFDC2E}$%i", houseStuff[i][house_owner], houseStuff[i][house_id], houseStuff[i][house_price]); } }