20.02.2014, 18:51
As long as it doesn't contain both AND (&&) and OR (||) in the same statement, it's fine.
I believe that hOwned is not 1 so even if the owner's name matches with the player's, it will fail.
Do a better debugging:
PS: idx stands for index so idz makes no-sense.
I believe that hOwned is not 1 so even if the owner's name matches with the player's, it will fail.
Do a better debugging:
pawn Код:
printf("idz: %i & hOwned: %i & hOwner: \"%s\" & playername: \"%s\"", idz, HouseInfo[idz][hOwned], HouseInfo[idz][hOwner], playername);
if(HouseInfo[idz][hOwned] == 1 && strcmp(HouseInfo[idz][hOwner], playername) == 0)