25.02.2013, 07:21
try with this
Use this func like this
Код:
stock IsHouseOwner(playerid, h) { new szName[32]; GetPlayerName(playerid, szName, 32); if(strcmp(HouseInfo[h][h_Owner], szName) == 0) return 1; return 0; }
Код:
if(!IsHouseOwner(ID ,HOUSE)) return SendClientMessage(playerid, COLOR_GREY, "{D10D0D}[ERROR]: {FFFFFF}You are not the owner of this house."); // rest of your code