28.12.2015, 15:03
(
Последний раз редактировалось Maximun; 28.12.2015 в 22:10.
)
Hello everyone, so everything was working good but from addded 'doorExitX' - 'doorExitY' - 'doorExitZ' , the command doesn't work, i'm trying to solve this problem from yesterday all day without result I don't know really what's problem here I see everything clear, so if someone have a idea with this hoping you help me and thanks.
Problem solved by Jeff
The problem was Wrong usage IsPlayerInRangeOfPoint
PHP код:
CMD:mint(playerid,params[])
{
new level,price,interior,Float:X,Float:Y,Float:Z;
if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid,COLOR_RED,"[Error]: Only Admins Can Use This Command!");
if(sscanf(params,"iiifff",price,level,interior,X,Y,Z)) SendClientMessage(playerid, -1,"Usage: /mint [Price] [Lvl] [Intr] [PosIntX] [PosIntY] [PosIntZ]");
else
for(new i = 0; i < sizeof(HIntInfo); i++)
{
if (IsPlayerInRangeOfPoint(2, playerid,HIntInfo[i][doorEntranceX], HIntInfo[i][doorEntranceY], HIntInfo[i][doorEntranceZ]))
{
HIntInfo[i][doorBuyPrice] = price; //PRICE HOUSE
HIntInfo[i][doorLevelRequired] = level; //LEVEL HOUSE
HIntInfo[i][doorInterior] = interior; //INTERIOR HOUSE
HIntInfo[i][doorExitX] = X; //POS INTERIOR
HIntInfo[i][doorExitY] = Y; //POS INTERIOR
HIntInfo[i][doorExitZ] = Z; //POS INTERIOR
OnPropUpdate();
}
}
return 1;
}
The problem was Wrong usage IsPlayerInRangeOfPoint