Small problem!
#8

try with this

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

// rest of your code
Reply


Messages In This Thread
Small problem! - by MattSlater - 25.02.2013, 03:16
Re: Small problem! - by jiwan - 25.02.2013, 03:48
Re: Small problem! - by MattSlater - 25.02.2013, 03:50
Re: Small problem! - by AlphaPac - 25.02.2013, 04:03
Re: Small problem! - by MattSlater - 25.02.2013, 04:12
Re: Small problem! - by AlphaPac - 25.02.2013, 04:14
Re: Small problem! - by MattSlater - 25.02.2013, 04:23
Re: Small problem! - by detter - 25.02.2013, 07:21
Re: Small problem! - by MattSlater - 26.02.2013, 20:21
Re: Small problem! - by Blast3r - 26.02.2013, 20:27

Forum Jump:


Users browsing this thread: 2 Guest(s)