13.07.2014, 13:52
[QUOTE=Konstantinos;3119503]If HouseInfo[i][hOwner] is NULL/empty, strcmp will return 0 (that they're equal) so check it with isnull.
I kinda suspected that, but still, strcmp should compare the strings, if HouseInfo[i][hOwner] does not equal the Player's Name then probably it should return -1 or 1 and not 0. But at equal probability u seem right too :P
pawn Код:
if (!isnull(HouseInfo[i][hOwner]) && !strcmp(HouseInfo[i][hOwner], PlayerInfo[playerid][Name], true, MAX_PLAYER_NAME))