31.07.2011, 14:12
pawn Код:
for(new h = 0; h < sizeof(HouseSystem); h++) // error 039: constant symbol has no size
{
if(HouseSystem[h][hOwned] == 0) //invalid subscript (not an array or too many subscripts): "HouseSystem" | rror 001: expected token: ";", but found "]"
{
if(HouseSystem[h][hSetted] == 1)
{
format(PropertyString,sizeof(PropertyString),"House is UNOWNED! \n House ID: %d \n Price: $%d \n Description: %s \n Level Needed: %d",HouseSystem[h][hWorld], HouseSystem[h][hValue],HouseSystem[h][hDiscription], HouseSystem[h][hLevel]);
HouseLabel[h] = Create3DTextLabel(PropertyString ,0x00FF00AA,HouseSystem[h][hEntrancex], HouseSystem[h][hEntrancey], HouseSystem[h][hEntrancez],25, 0, 1);
}
}
else if(HouseSystem[h][hOwned] == 1)
{
format(PropertyString,sizeof(PropertyString),"House is Owned by %s \n House ID: %d \n Rent Price: $%d \n Description: %s \n To Rent Type /rentroom", HouseSystem[h][hOwner],HouseSystem[h][hWorld], HouseSystem[h][hRent], HouseSystem[h][hDiscription]);
HouseLabel[h] = Create3DTextLabel(PropertyString ,0x00FFFFAA,HouseSystem[h][hEntrancex], HouseSystem[h][hEntrancey], HouseSystem[h][hEntrancez],25, 0, 1);
}
}
Im trying to make a 3dtextlabels on houses, but get errors... whats wrong?