15.06.2011, 13:58
I want to make just like this, but I make something wrong. Please help me.
Код:
for(new h = 0; h < sizeof(HouseInfo); h++) { if(IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez])) { if(strcmp(playername, HouseInfo[h][hOwner], true) == 0) { new Level = HouseInfo[h][hLevel]; if(HouseInfo[h][hLock] == 1 && strcmp(HouseInfo[h][hOwner],PlayerName(playerid), true ) != 0) return SendClientMessage(playerid, COLOR_WHITE, "[HOUSE]: This house has been locked by the owner."); Pause(playerid); SetPlayerPos(playerid, HousesCoords[Level][0], HousesCoords[Level][1], HousesCoords[Level][2]); SetPlayerInterior(playerid, HousesLevels[Level][0]); SetPlayerVirtualWorld(playerid, HouseInfo[h][hWorld]); HouseEntered[playerid] = h; } else { GameTextForPlayer(playerid, "~r~Locked", 5000, 1); } } }