03.12.2011, 13:15
Try this sir:
pawn Код:
if(strcmp(HouseOwner[x],"Nobody",true,5)) // This will check if it's not Nobody, but if it was, it would be if(!strcmp.
{
OwnedString[x] = format(string, sizeof(string), "~g~Address:~w~ %s ~n~ ~g~Owner:~w~ %s", HouseName[x], HouseOwner[x]);
}
else
{
UnOwnedString[x] = format(string, sizeof(string), "~r~For Sale : %s~n~~w~Price: $%d~n~~b~Type '/buyhouse' to purchase.", HouseName[x], HousePrice[x]);
}