30.12.2017, 13:33
I'm using
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:
Both dHouseID and HouseID (in seperate files) match, but it does not work.
Код:
#include <YSI\y_ini>
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; }