Ownership
#1

pawn Код:
if(PlayerInfo[playerid][pHouse] >= 0)
    {
        for(new idx = 0; idx < MAX_HOUSES; idx++)
        {
            if(!strcmp(Player(playerid), HouseInfo[idx][hOwner], false))
            {
                PlayerInfo[playerid][pHouse] = HouseInfo[idx][hHouseID];
            }
            else
            {
                SendClientMessage(playerid, -1, "You have been removed as ownership from your house.");
            }
        }
    }
Fixed everything else but one last problem.
Why does this send me the message that I've been removed as ownership even if I do have a house in my name?
When I remove the else part, the if part works fine..
Reply


Messages In This Thread
Ownership - by AphexCCFC - 29.04.2014, 22:38
Re: Ownership - by Calgon - 29.04.2014, 23:53
Re: Ownership - by AphexCCFC - 30.04.2014, 00:00
Re: Ownership - by Calgon - 30.04.2014, 00:04
Re: Ownership - by AphexCCFC - 30.04.2014, 00:14
Re: Ownership - by Calgon - 30.04.2014, 10:06
Re: Ownership - by AphexCCFC - 30.04.2014, 16:56
Re: Ownership - by Calgon - 30.04.2014, 16:58
Re: Ownership - by AphexCCFC - 30.04.2014, 17:04

Forum Jump:


Users browsing this thread: 1 Guest(s)