Small problem!
#10

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

}
Maybe that? I also removed return 0; you can put it back maybe...

EDIT: You used detter's suggestion on your command or stock? If you did it on stock, I'd suggest you use it on commands.
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: 1 Guest(s)