Small problem!
#1

pawn Код:
stock IsHouseOwner(playerid, h)
{
    new szName[32];
    GetPlayerName(playerid, szName, 32);
    if(!strcmp(HouseInfo[h][h_Owner], szName))
    {
        return 1;
    }
    else SendClientMessage(playerid, COLOR_GREY, "{D10D0D}[ERROR]: {FFFFFF}You are not the owner of this house.");
    return 0;
}
Basically, I use this function in my house commands. (eg. if(IsHouseOwner(playerid, h)) { // continues code })
But, if I am not the house owner it sends me the client message but it also allows me to continue the command

Thanks in advance. ;3
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)