26.11.2016, 20:53
Fixed..
Instead of
I was using strmid function to declare type to house
Instead of
PHP код:
HouseType(id)
{
new string[17];
switch(id)
{
case TYPE_CAMP: string = "Camp House";
case TYPE_SMALL: string = "Small House";
case TYPE_MEDIUM: string = "Medium House";
case TYPE_BIG: string = "Big House";
case TYPE_VILLA: string = "Villa";
default: string = "Unknown";
}
return string;
}