House owner check
#1

I'm using
Код:
#include <YSI\y_ini>
to store player and house data. I have two folders in scriptfiles - Users, Houses.

My issue is that I do not know how to check if a player owns a specific house. I've tried this:

Код:
for(new b = 0; b < sizeof(hHouse); b++){
        if(hHouse[b][dHouseID] == PlayerInfo[playerid][HouseID]){
            SendClientMessage(playerid, -1, "This is your house.");
            return 1;
        }
        SendClientMessage(playerid, -1, "This is not your house.");
        return 1;
    }
Both dHouseID and HouseID (in seperate files) match, but it does not work.
Reply


Messages In This Thread
House owner check - by matje - 30.12.2017, 13:33
Re: House owner check - by Zeth - 30.12.2017, 13:48
Re: House owner check - by matje - 30.12.2017, 13:53
Re: House owner check - by Zeth - 30.12.2017, 14:05
Re: House owner check - by matje - 03.01.2018, 12:21
Re: House owner check - by CodeStyle175 - 03.01.2018, 12:38
Re: House owner check - by matje - 03.01.2018, 12:58

Forum Jump:


Users browsing this thread: 1 Guest(s)